716f01f0992abc4e511009293a5c575ce5cb4b3c
[strongswan.git] / src / scepclient / Makefile.am
1 ipsec_PROGRAMS = scepclient
2 scepclient_SOURCES = scepclient.c rsakey.c rsakey.h pkcs10.c pkcs10.h scep.c scep.h loglite.c 
3
4 PLUTODIR=$(top_srcdir)/src/pluto
5 OPENACDIR=$(top_srcdir)/src/openac
6 WHACKDIR=$(top_srcdir)/src/whack
7 LIBFREESWANDIR=$(top_srcdir)/src/libfreeswan
8 LIBSTRONGSWANDIR=$(top_srcdir)/src/libstrongswan
9 LIBCRYPTODIR=$(top_srcdir)/src/libcrypto
10
11 INCLUDES = \
12 -I$(LIBFREESWANDIR) \
13 -I$(LIBSTRONGSWANDIR) \
14 -I$(PLUTODIR) \
15 -I$(LIBCRYPTODIR) \
16 -I$(WHACKDIR)
17
18 AM_CFLAGS = \
19 -DIPSEC_CONFDIR=\"${confdir}\" \
20 -DSTRONGSWAN_CONF=\"${strongswan_conf}\" \
21 -DDEBUG -DNO_PLUTO \
22 -Wformat=0
23
24 LIBSTRONGSWANBUILDDIR=$(top_builddir)/src/libstrongswan
25 LIBFREESWANBUILDDIR=$(top_builddir)/src/libfreeswan
26 LIBCRYPTOBUILDDIR=$(top_builddir)/src/libcrypto
27
28 scepclient_LDADD = \
29 ca.o crl.o certs.o constants.o defs.o fetch.o id.o keys.o lex.o library.o \
30 md2.o md5.o mp_defs.o ocsp.o pem.o pgp.o pkcs1.o pkcs7.o rnd.o sha1.o \
31 smartcard.o x509.o \
32 $(LIBSTRONGSWANBUILDDIR)/libstrongswan.la \
33 $(LIBFREESWANBUILDDIR)/libfreeswan.a \
34 $(LIBCRYPTOBUILDDIR)/libcrypto.a \
35 -lgmp
36
37 # This compile option activates the memory leak detective
38 if USE_LEAK_DETECTIVE
39   AM_CFLAGS += -DLEAK_DETECTIVE
40 endif
41
42 # This compile option activates smartcard support
43 if USE_SMARTCARD
44   AM_CFLAGS += -DSMARTCARD
45   scepclient_LDADD += -ldl
46 endif
47
48 # This compile option activates dynamic URL fetching using libcurl
49 if USE_CURL
50   AM_CFLAGS += -DLIBCURL
51   scepclient_LDADD += -lcurl
52 endif
53
54 dist_man_MANS = scepclient.8
55
56 ca.o :          $(PLUTODIR)/ca.c $(PLUTODIR)/ca.h
57                 $(COMPILE) $(INCLUDES) -c -o $@ $<
58
59 certs.o :       $(PLUTODIR)/certs.c $(PLUTODIR)/certs.h
60                 $(COMPILE) $(INCLUDES) -c -o $@ $<
61
62 constants.o :   $(PLUTODIR)/constants.c $(PLUTODIR)/constants.h
63                 $(COMPILE) $(INCLUDES) -c -o $@ $<
64
65 crl.o :         $(PLUTODIR)/crl.c $(PLUTODIR)/crl.h
66                 $(COMPILE) $(INCLUDES) -c -o $@ $<
67
68 defs.o :        $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
69                 $(COMPILE) $(INCLUDES) -c -o $@ $<
70
71 mp_defs.o :     $(PLUTODIR)/mp_defs.c $(PLUTODIR)/mp_defs.h
72                 $(COMPILE) $(INCLUDES) -c -o $@ $<
73
74 fetch.o :       $(PLUTODIR)/fetch.c $(PLUTODIR)/fetch.h
75                 $(COMPILE) $(INCLUDES) -c -o $@ $<
76
77 id.o :          $(PLUTODIR)/id.c $(PLUTODIR)/id.h
78                 $(COMPILE) $(INCLUDES) -c -o $@ $<
79
80 keys.o :        $(PLUTODIR)/keys.c $(PLUTODIR)/keys.h
81                 $(COMPILE) $(INCLUDES) -c -o $@ $<
82
83 lex.o :         $(PLUTODIR)/lex.c $(PLUTODIR)/lex.h
84                 $(COMPILE) $(INCLUDES) -c -o $@ $<
85
86 library.o :     $(PLUTODIR)/library.c $(PLUTODIR)/library.h
87                 $(COMPILE) $(INCLUDES) -c -o $@ $<
88
89 md2.o :         $(PLUTODIR)/md2.c $(PLUTODIR)/md2.h
90                 $(COMPILE) $(INCLUDES) -c -o $@ $<
91
92 md5.o :         $(PLUTODIR)/md5.c $(PLUTODIR)/md5.h
93                 $(COMPILE) $(INCLUDES) -c -o $@ $<
94
95 ocsp.o :        $(PLUTODIR)/ocsp.c $(PLUTODIR)/ocsp.h
96                 $(COMPILE) $(INCLUDES) -c -o $@ $<
97
98 pem.o :         $(PLUTODIR)/pem.c $(PLUTODIR)/pem.h
99                 $(COMPILE) $(INCLUDES) -c -o $@ $<
100
101 pgp.o :         $(PLUTODIR)/pgp.c $(PLUTODIR)/pgp.h
102                 $(COMPILE) $(INCLUDES) -c -o $@ $<
103
104 pkcs1.o :       $(PLUTODIR)/pkcs1.c $(PLUTODIR)/pkcs1.h
105                 $(COMPILE) $(INCLUDES) -c -o $@ $<
106
107 pkcs7.o :       $(PLUTODIR)/pkcs7.c $(PLUTODIR)/pkcs7.h
108                 $(COMPILE) $(INCLUDES) -c -o $@ $<
109
110 rnd.o :         $(PLUTODIR)/rnd.c $(PLUTODIR)/rnd.h
111                 $(COMPILE) $(INCLUDES) -c -o $@ $<
112
113 sha1.o :        $(PLUTODIR)/sha1.c $(PLUTODIR)/sha1.h
114                 $(COMPILE) $(INCLUDES) -c -o $@ $<
115
116 smartcard.o :   $(PLUTODIR)/smartcard.c $(PLUTODIR)/smartcard.h
117                 $(COMPILE) $(INCLUDES) -c -o $@ $<
118
119 x509.o :        $(PLUTODIR)/x509.c $(PLUTODIR)/x509.h
120                 $(COMPILE) $(INCLUDES) -c -o $@ $<