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

Contents of /trunk/Makefiles/PTD.mak

Parent Directory Parent Directory | Revision Log Revision Log


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


1 # Makefile - PTD.dsp
2
3 ifndef CFG
4 CFG=PTD - Win32 Debug
5 endif
6 CC=gcc
7 CFLAGS=
8 CXX=g++
9 CXXFLAGS=$(CFLAGS)
10 RC=windres -O COFF
11 ifeq "$(CFG)" "PTD - Win32 Release"
12 CFLAGS+=-W -fexceptions -O2 -I../gnupg -I. -I../include -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL -DPTD_EXPORTS -DHAVE_DOSISH_SYSTEM
13 LD=dllwrap
14 LDFLAGS=
15 LDFLAGS+=-L../Gnupg
16 LIBS+=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lgnupg -lstdc++
17 else
18 ifeq "$(CFG)" "PTD - Win32 Debug"
19 CFLAGS+=-D_MBCS -W -D_USRDLL -DPTD_EXPORTS -fexceptions -g -O0 -I../Src -I../MyGPGME -I../Include -I../Gnupg -I../PTD -DWIN32 -D_DEBUG -D_WINDOWS
20 LD=dllwrap
21 LDFLAGS=
22 LDFLAGS+=-L../Gnupg
23 LIBS+=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lgnupg -lstdc++
24 endif
25 endif
26
27 ifndef TARGET
28 TARGET=PTD.dll
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 PTD.def \
51 PTD.rc \
52 resource.h
53
54 SRCS=$(RESOURCEN) \
55 PTD.cpp \
56 wptFileDisk.cpp \
57 wptGPGZIP.cpp \
58 wptGPGZIP.h \
59 wptWipeFile.cpp
60
61 OBJS=$(patsubst %.rc,%.res,$(patsubst %.cxx,%.o,$(patsubst %.cpp,%.o,$(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(filter %.c %.cc %.cpp %.cxx %.rc,$(SRCS)))))))
62
63 $(TARGET): $(OBJS)
64 $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
65
66 .PHONY: clean
67 clean:
68 -rm -f $(OBJS) $(TARGET) PTD.dep
69
70 .PHONY: depends
71 depends:
72 -$(CXX) $(CXXFLAGS) $(CPPFLAGS) -MM $(filter %.c %.cc %.cpp %.cxx,$(SRCS)) > PTD.dep
73
74 -include PTD.dep
75

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26