1 |
twoaday |
2 |
# Makefile - MyGPGME.dsp |
2 |
|
|
|
3 |
|
|
ifndef CFG |
4 |
|
|
CFG=MyGPGME - Win32 Debug |
5 |
|
|
endif |
6 |
|
|
CC=gcc |
7 |
|
|
CFLAGS= |
8 |
|
|
CXX=g++ |
9 |
|
|
CXXFLAGS=$(CFLAGS) |
10 |
|
|
RC=windres -O COFF |
11 |
|
|
ifeq "$(CFG)" "MyGPGME - Win32 Release" |
12 |
|
|
CFLAGS+=-W -fexceptions -O2 -I../gnupg -I../ptd -DWIN32 -DNDEBUG -D_MBCS -D_LIB |
13 |
|
|
AR=ar |
14 |
|
|
ARFLAGS=rus |
15 |
|
|
else |
16 |
|
|
ifeq "$(CFG)" "MyGPGME - Win32 Debug" |
17 |
|
|
CFLAGS+=-W -fexceptions -g -O0 -I../gnupg -I../ptd -DWIN32 -D_DEBUG -D_MBCS -D_LIB |
18 |
|
|
AR=ar |
19 |
|
|
ARFLAGS=rus |
20 |
|
|
endif |
21 |
|
|
endif |
22 |
|
|
|
23 |
|
|
ifndef TARGET |
24 |
|
|
TARGET=libMyGPGME.a |
25 |
|
|
endif |
26 |
|
|
|
27 |
|
|
.PHONY: all |
28 |
|
|
all: $(TARGET) |
29 |
|
|
|
30 |
|
|
%.o: %.c |
31 |
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< |
32 |
|
|
|
33 |
|
|
%.o: %.cc |
34 |
|
|
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $< |
35 |
|
|
|
36 |
|
|
%.o: %.cpp |
37 |
|
|
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $< |
38 |
|
|
|
39 |
|
|
%.o: %.cxx |
40 |
|
|
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $< |
41 |
|
|
|
42 |
|
|
%.res: %.rc |
43 |
|
|
$(RC) $(CPPFLAGS) -o $@ -i $< |
44 |
|
|
|
45 |
|
|
SRCS= \ |
46 |
|
|
ChangeLog \ |
47 |
|
|
clip.c \ |
48 |
|
|
common-status.c \ |
49 |
|
|
common-status.h \ |
50 |
|
|
context.h \ |
51 |
|
|
data.c \ |
52 |
|
|
debug.c \ |
53 |
|
|
decrypt.c \ |
54 |
|
|
delete.c \ |
55 |
|
|
editcard.c \ |
56 |
|
|
editkey-util.c \ |
57 |
|
|
editkey.c \ |
58 |
|
|
encrypt.c \ |
59 |
|
|
errors.c \ |
60 |
|
|
export.c \ |
61 |
|
|
genkey.c \ |
62 |
|
|
getkey-openpgp.c \ |
63 |
|
|
gpgme-config.h \ |
64 |
|
|
gpgme-io.h \ |
65 |
|
|
gpgme.c \ |
66 |
|
|
gpgme.h \ |
67 |
|
|
implist.c \ |
68 |
|
|
import.c \ |
69 |
|
|
key.c \ |
70 |
|
|
key.h \ |
71 |
|
|
keycache-openpgp.c \ |
72 |
|
|
keycache.c \ |
73 |
|
|
keylist.c \ |
74 |
|
|
ops.h \ |
75 |
|
|
ownertrust.c \ |
76 |
|
|
recipient.c \ |
77 |
|
|
revoke.c \ |
78 |
|
|
rungpg.c \ |
79 |
|
|
rungpg.h \ |
80 |
|
|
sema.h \ |
81 |
|
|
sig.c \ |
82 |
|
|
sign-encrypt.c \ |
83 |
|
|
sign.c \ |
84 |
|
|
signers.c \ |
85 |
|
|
status-table.h \ |
86 |
|
|
sym-encrypt.c \ |
87 |
|
|
trustlist.c \ |
88 |
|
|
types.h \ |
89 |
|
|
util.h \ |
90 |
|
|
verify.c \ |
91 |
|
|
version.c \ |
92 |
|
|
w32-clip.c \ |
93 |
|
|
w32-glibc.c \ |
94 |
|
|
w32-io.c \ |
95 |
|
|
w32-sema.c \ |
96 |
|
|
w32-util.c \ |
97 |
|
|
wait.c \ |
98 |
|
|
wait.h |
99 |
|
|
|
100 |
|
|
OBJS=$(patsubst %.rc,%.res,$(patsubst %.cxx,%.o,$(patsubst %.cpp,%.o,$(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(filter %.c %.cc %.cpp %.cxx %.rc,$(SRCS))))))) |
101 |
|
|
|
102 |
|
|
$(TARGET): $(OBJS) |
103 |
|
|
$(AR) $(ARFLAGS) $@ $(OBJS) |
104 |
|
|
|
105 |
|
|
.PHONY: clean |
106 |
|
|
clean: |
107 |
|
|
-rm -f $(OBJS) $(TARGET) MyGPGME.dep |
108 |
|
|
|
109 |
|
|
.PHONY: depends |
110 |
|
|
depends: |
111 |
|
|
-$(CXX) $(CXXFLAGS) $(CPPFLAGS) -MM $(filter %.c %.cc %.cpp %.cxx,$(SRCS)) > MyGPGME.dep |
112 |
|
|
|
113 |
|
|
-include MyGPGME.dep |
114 |
|
|
|