92d271ce02d0e7a094b5ca29ee0b39d71ce320f7
[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 LIBFREESWANBUILDDIR=$(top_builddir)/src/libfreeswan
25 LIBCRYPTOBUILDDIR=$(top_builddir)/src/libcrypto
26
27 scepclient_LDADD = \
28 ca.o crl.o certs.o constants.o defs.o fetch.o id.o keys.o lex.o library.o \
29 md2.o md5.o mp_defs.o ocsp.o pem.o pgp.o pkcs1.o pkcs7.o rnd.o sha1.o \
30 smartcard.o x509.o \
31 $(LIBSTRONGSWANDIR)/libstrongswan.la \
32 $(LIBFREESWANBUILDDIR)/libfreeswan.a \
33 $(LIBCRYPTOBUILDDIR)/libcrypto.a \
34 -lgmp
35
36 # This compile option activates the memory leak detective
37 if USE_LEAK_DETECTIVE
38   AM_CFLAGS += -DLEAK_DETECTIVE
39 endif
40
41 # This compile option activates smartcard support
42 if USE_SMARTCARD
43   AM_CFLAGS += -DSMARTCARD
44   scepclient_LDADD += -ldl
45 endif
46
47 # This compile option activates dynamic URL fetching using libcurl
48 if USE_CURL
49   AM_CFLAGS += -DLIBCURL
50   scepclient_LDADD += -lcurl
51 endif
52
53 dist_man_MANS = scepclient.8
54
55 ca.o :          $(PLUTODIR)/ca.c $(PLUTODIR)/ca.h
56                 $(COMPILE) $(INCLUDES) -c -o $@ $<
57
58 certs.o :       $(PLUTODIR)/certs.c $(PLUTODIR)/certs.h
59                 $(COMPILE) $(INCLUDES) -c -o $@ $<
60
61 constants.o :   $(PLUTODIR)/constants.c $(PLUTODIR)/constants.h
62                 $(COMPILE) $(INCLUDES) -c -o $@ $<
63
64 crl.o :         $(PLUTODIR)/crl.c $(PLUTODIR)/crl.h
65                 $(COMPILE) $(INCLUDES) -c -o $@ $<
66
67 defs.o :        $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
68                 $(COMPILE) $(INCLUDES) -c -o $@ $<
69
70 mp_defs.o :     $(PLUTODIR)/mp_defs.c $(PLUTODIR)/mp_defs.h
71                 $(COMPILE) $(INCLUDES) -c -o $@ $<
72
73 fetch.o :       $(PLUTODIR)/fetch.c $(PLUTODIR)/fetch.h
74                 $(COMPILE) $(INCLUDES) -c -o $@ $<
75
76 id.o :          $(PLUTODIR)/id.c $(PLUTODIR)/id.h
77                 $(COMPILE) $(INCLUDES) -c -o $@ $<
78
79 keys.o :        $(PLUTODIR)/keys.c $(PLUTODIR)/keys.h
80                 $(COMPILE) $(INCLUDES) -c -o $@ $<
81
82 lex.o :         $(PLUTODIR)/lex.c $(PLUTODIR)/lex.h
83                 $(COMPILE) $(INCLUDES) -c -o $@ $<
84
85 library.o :     $(PLUTODIR)/library.c $(PLUTODIR)/library.h
86                 $(COMPILE) $(INCLUDES) -c -o $@ $<
87
88 md2.o :         $(PLUTODIR)/md2.c $(PLUTODIR)/md2.h
89                 $(COMPILE) $(INCLUDES) -c -o $@ $<
90
91 md5.o :         $(PLUTODIR)/md5.c $(PLUTODIR)/md5.h
92                 $(COMPILE) $(INCLUDES) -c -o $@ $<
93
94 ocsp.o :        $(PLUTODIR)/ocsp.c $(PLUTODIR)/ocsp.h
95                 $(COMPILE) $(INCLUDES) -c -o $@ $<
96
97 pem.o :         $(PLUTODIR)/pem.c $(PLUTODIR)/pem.h
98                 $(COMPILE) $(INCLUDES) -c -o $@ $<
99
100 pgp.o :         $(PLUTODIR)/pgp.c $(PLUTODIR)/pgp.h
101                 $(COMPILE) $(INCLUDES) -c -o $@ $<
102
103 pkcs1.o :       $(PLUTODIR)/pkcs1.c $(PLUTODIR)/pkcs1.h
104                 $(COMPILE) $(INCLUDES) -c -o $@ $<
105
106 pkcs7.o :       $(PLUTODIR)/pkcs7.c $(PLUTODIR)/pkcs7.h
107                 $(COMPILE) $(INCLUDES) -c -o $@ $<
108
109 rnd.o :         $(PLUTODIR)/rnd.c $(PLUTODIR)/rnd.h
110                 $(COMPILE) $(INCLUDES) -c -o $@ $<
111
112 sha1.o :        $(PLUTODIR)/sha1.c $(PLUTODIR)/sha1.h
113                 $(COMPILE) $(INCLUDES) -c -o $@ $<
114
115 smartcard.o :   $(PLUTODIR)/smartcard.c $(PLUTODIR)/smartcard.h
116                 $(COMPILE) $(INCLUDES) -c -o $@ $<
117
118 x509.o :        $(PLUTODIR)/x509.c $(PLUTODIR)/x509.h
119                 $(COMPILE) $(INCLUDES) -c -o $@ $<