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

Annotation of /trunk/Makefiles/gnupg.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: 1349 byte(s)
WinPT initial checkin.


1 twoaday 2 # Makefile - gnupg.dsp
2    
3     ifndef CFG
4     CFG=gnupg - Win32 Debug
5     endif
6     CC=gcc
7     CFLAGS=
8     CXX=g++
9     CXXFLAGS=$(CFLAGS)
10     RC=windres -O COFF
11     ifeq "$(CFG)" "gnupg - Win32 Release"
12     CFLAGS+=-W -fexceptions -O2 -DWIN32 -DNDEBUG -D_MBCS -D_LIB
13     AR=ar
14     ARFLAGS=rus
15     else
16     ifeq "$(CFG)" "gnupg - Win32 Debug"
17     CFLAGS+=-W -fexceptions -g -O0 -DWIN32 -D_DEBUG -D_MBCS -D_LIB
18     AR=ar
19     ARFLAGS=rus
20     endif
21     endif
22    
23     ifndef TARGET
24     TARGET=libgnupg.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     armor.c \
47     iobuf.c \
48     kbnode.c \
49     md.c \
50     md.h \
51     md5.c \
52     openpgp.h \
53     packet.h \
54     parse-packet.c \
55     random.c \
56     rmd160.c \
57     rndw32.c \
58     sha1.c \
59     sha512.c
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     $(AR) $(ARFLAGS) $@ $(OBJS)
65    
66     .PHONY: clean
67     clean:
68     -rm -f $(OBJS) $(TARGET) gnupg.dep
69    
70     .PHONY: depends
71     depends:
72     -$(CXX) $(CXXFLAGS) $(CPPFLAGS) -MM $(filter %.c %.cc %.cpp %.cxx,$(SRCS)) > gnupg.dep
73    
74     -include gnupg.dep
75    

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26