/[winpt]/trunk/Makefiles/WinPT.mak
ViewVC logotype

Annotation of /trunk/Makefiles/WinPT.mak

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations)
Mon Jan 31 11:02:21 2005 UTC (20 years, 1 month ago) by twoaday
File size: 4559 byte(s)
WinPT initial checkin.


1 twoaday 2 # Makefile - WinPT.dsp
2    
3     ifndef CFG
4     CFG=WinPT - Win32 Debug
5     endif
6     CC=gcc
7     CFLAGS=
8     CXX=g++
9     CXXFLAGS=$(CFLAGS)
10     RC=windres -O COFF
11     ifeq "$(CFG)" "WinPT - Win32 Release"
12     CFLAGS+=-ULANG_DE -W -UAFX_TARG_DEU -fexceptions -O2 -ISrc -IMyGPGME -IInclude -IGnupg -IPTD -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -DHAVE_DOSISH_SYSTEM
13     LD=$(CXX) $(CXXFLAGS)
14     LDFLAGS=
15     LDFLAGS+=-Wl,--subsystem,windows -LPTD -LMyGPGME -LGnupg
16     LIBS+=-lPTD -lmygpgme -lcomctl32 -lws2_32 -lkernel32 -luser32 -lcomdlg32 -ladvapi32 -lshell32 -lgdi32 -lgnupg
17     else
18     ifeq "$(CFG)" "WinPT - Win32 Debug"
19     CFLAGS+=-D_MBCS -W -DHAVE_DOSISH_SYSTEM -fexceptions -g -O0 -ISrc -IMyGPGME -IInclude -IGnupg -IPTD -DWIN32 -D_DEBUG -D_WINDOWS
20     LD=$(CXX) $(CXXFLAGS)
21     LDFLAGS=
22     LDFLAGS+=-Wl,--subsystem,windows -LPTD -LMyGPGME -LGnupg
23     LIBS+=-lkernel32 -luser32 -lgdi32 -lcomdlg32 -lcomctl32 -ladvapi32 -lshell32 -lws2_32 -lwldap32 -lPTD -lmygpgme -lgnupg
24     endif
25     endif
26    
27     ifndef TARGET
28     TARGET=WinPT.exe
29     endif
30    
31     .PHONY: all
32     all: $(TARGET)
33    
34     %.o: %.c
35     $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
36    
37     %.o: %.cc
38     $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $<
39    
40     %.o: %.cpp
41     $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $<
42    
43     %.o: %.cxx
44     $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $<
45    
46     %.res: %.rc
47     $(RC) $(CPPFLAGS) -o $@ -i $<
48    
49     RESOURCEN= \
50     Src/ChangeLog \
51     resource.h \
52     Safe.ico \
53     Sign.ico \
54     WinPT-en.rc \
55     winpt2.ico \
56     winpt_km.bmp
57    
58     DIALOGS= \
59     Src/wptAboutDlgs.cpp \
60     Src/wptCardDlg.cpp \
61     Src/wptClipDecryptDlg.cpp \
62     Src/wptClipEditDlg.cpp \
63     Src/wptClipEncryptDlg.cpp \
64     Src/wptClipImportDlg.cpp \
65     Src/wptClipSignDlg.cpp \
66     Src/wptClipSignEncDlg.cpp \
67     Src/wptClipVerifyDlg.cpp \
68     Src/wptCommonDlg.cpp \
69     Src/wptDateDlg.cpp \
70     Src/wptFileManagerDlg.cpp \
71     Src/wptFileSaveDlg.cpp \
72     Src/wptFileStatDlg.cpp \
73     Src/wptFileVerifyDlg.cpp \
74     Src/wptFirstRunDlg.cpp \
75     Src/wptGPGOptDlg.cpp \
76     Src/wptGPGPrefsDlg.cpp \
77     Src/wptGroupsDlg.cpp \
78     Src/wptKeyCacheDlg.cpp \
79     Src/wptKeyEditDlgs.cpp \
80     Src/wptKeyEditOwnertrustDlg.cpp \
81     Src/wptKeyeditSetPrefDlg.cpp \
82     Src/wptKeygenCBDlg.cpp \
83     Src/wptKeygenDlg.cpp \
84     Src/wptKeyImportStatusDlg.cpp \
85     Src/wptKeyManagerDlg.cpp \
86     Src/wptKeyPropsDlg.cpp \
87     Src/wptKeyRevokeDlg.cpp \
88     Src/wptKeyRevokersDlg.cpp \
89     Src/wptKeyserverDlg.cpp \
90     Src/wptKeyserverSearchDlg.cpp \
91     Src/wptKeysigDlg.cpp \
92     Src/wptKeysignDlg.cpp \
93     Src/wptKeyTrustPathDlg.cpp \
94     Src/wptMDSumDlg.cpp \
95     Src/wptOwnertrustDlg.cpp \
96     Src/wptPassphraseDlg.cpp \
97     Src/wptPINDlg.cpp \
98     Src/wptPreferencesDlg.cpp \
99     Src/wptProgressDlg.cpp \
100     Src/wptProxySettingsDlg.cpp \
101     Src/wptTextInputDlg.cpp
102    
103     HEADERFILES= \
104     Include/wptAgent.h \
105     Include/wptCard.h \
106     Include/wptCommonCtl.h \
107     Include/wptContext.h \
108     Include/wptCryptdisk.h \
109     Include/wptDlgs.h \
110     Include/wptErrors.h \
111     Include/wptFileManager.h \
112     Include/wptGPG.h \
113     Include/wptGpgCmds.h \
114     Include/WptGPGOptSkel.h \
115     Include/wptHotkey.h \
116     Include/wptHTTP.h \
117     Include/wptKeyEdit.h \
118     Include/wptKeylist.h \
119     Include/wptKeyManager.h \
120     Include/wptKeyserver.h \
121     Include/wptNLS.h \
122     Include/wptRegistry.h \
123     Include/wptTypes.h \
124     Include/wptUTF8.h \
125     Include/wptVersion.h \
126     Include/wptW32API.h
127    
128     ICONS= \
129     icons/key_delete.ico \
130     icons/key_export.ico \
131     icons/key_import.ico \
132     icons/key_props.ico \
133     icons/key_sign.ico \
134     icons/sort_downarrow.ico \
135     icons/sort_uparrow.ico
136    
137     SRCS=$(RESOURCEN) $(DIALOGS) $(HEADERFILES) $(ICONS) \
138     Src/WinPT.cpp \
139     Src/wptCardManager.cpp \
140     Src/wptCardPCSC.c \
141     Src/wptCryptdisk.cpp \
142     Src/wptCurrWnd.cpp \
143     Src/wptErrors.cpp \
144     Src/wptFileManager.cpp \
145     Src/wptGPG.cpp \
146     Src/wptGPGME.cpp \
147     Src/wptGPGParser.cpp \
148     Src/wptHotkey.cpp \
149     Src/wptHTTP.c \
150     Src/wptImagelist.cpp \
151     Src/wptImportList.cpp \
152     Src/wptKeylist.cpp \
153     Src/wptKeyManager.cpp \
154     Src/wptKeyserver.cpp \
155     Src/wptListView.cpp \
156     Src/wptMainProc.cpp \
157     Src/wptMAPI.cpp \
158     Src/wptNLS.c \
159     Src/wptPassCache.cpp \
160     Src/wptPassphraseCB.cpp \
161     Src/wptRegistry.cpp \
162     Src/wptSigList.cpp \
163     Src/wptSymEnc.cpp \
164     Src/wptTrayPop.cpp \
165     Src/wptUTF8.cpp \
166     Src/wptVerifyList.cpp \
167     Src/wptW32API.cpp
168    
169     OBJS=$(patsubst %.rc,%.res,$(patsubst %.cxx,%.o,$(patsubst %.cpp,%.o,$(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(filter %.c %.cc %.cpp %.cxx %.rc,$(SRCS)))))))
170    
171     $(TARGET): $(OBJS)
172     $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
173    
174     .PHONY: clean
175     clean:
176     -rm -f $(OBJS) $(TARGET) WinPT.dep
177    
178     .PHONY: depends
179     depends:
180     -$(CXX) $(CXXFLAGS) $(CPPFLAGS) -MM $(filter %.c %.cc %.cpp %.cxx,$(SRCS)) > WinPT.dep
181    
182     -include WinPT.dep
183    

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26