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