found libraries are not appended to LIBS anymore
[strongswan.git] / src / scepclient / Makefile.am
1 ipsec_PROGRAMS = scepclient
2 scepclient_SOURCES = rsakey.c rsakey.h pkcs10.c pkcs10.h scep.c scep.h scepclient.c
3
4 INCLUDES = -I$(top_srcdir)/src/libfreeswan -I$(top_srcdir)/src/pluto -I$(top_srcdir)/src/whack -I$(top_srcdir)/src/libcrypto
5 AM_CFLAGS = -DDEBUG -DNO_PLUTO -DIPSEC_CONFDIR=\"${confdir}\"
6 scepclient_LDADD = asn1.o ca.o crl.o certs.o constants.o defs.o fetch.o id.o \
7                    keys.o lex.o md2.o md5.o mp_defs.o ocsp.o oid.o pem.o pgp.o \
8                    pkcs1.o pkcs7.o rnd.o sha1.o smartcard.o x509.o loglite.o \
9                    $(top_srcdir)/src/libfreeswan/libfreeswan.a $(top_srcdir)/src/libcrypto/libcrypto.a \
10                    -lgmp
11
12 # This compile option activates smartcard support
13 if USE_SMARTCARD
14   scepclient_LDADD += -ldl
15 endif
16
17 dist_man_MANS = scepclient.8
18
19 PLUTODIR=$(top_srcdir)/src/pluto
20 OPENACDIR=$(top_srcdir)/src/openac
21
22
23 loglite.o:      $(OPENACDIR)/loglite.c $(PLUTODIR)/log.h
24                 $(COMPILE) $(INCLUDES) -c -o $@ $<
25
26 asn1.o :        $(PLUTODIR)/asn1.c $(PLUTODIR)/asn1.h
27                 $(COMPILE) $(INCLUDES) -c -o $@ $<
28
29 ca.o :          $(PLUTODIR)/ca.c $(PLUTODIR)/ca.h
30                 $(COMPILE) $(INCLUDES) -c -o $@ $<
31
32 certs.o :       $(PLUTODIR)/certs.c $(PLUTODIR)/certs.h
33                 $(COMPILE) $(INCLUDES) -c -o $@ $<
34
35 constants.o :   $(PLUTODIR)/constants.c $(PLUTODIR)/constants.h
36                 $(COMPILE) $(INCLUDES) -c -o $@ $<
37
38 crl.o :         $(PLUTODIR)/crl.c $(PLUTODIR)/crl.h
39                 $(COMPILE) $(INCLUDES) -c -o $@ $<
40
41 defs.o :        $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
42                 $(COMPILE) $(INCLUDES) -c -o $@ $<
43
44 mp_defs.o :     $(PLUTODIR)/mp_defs.c $(PLUTODIR)/mp_defs.h
45                 $(COMPILE) $(INCLUDES) -c -o $@ $<
46
47 fetch.o :       $(PLUTODIR)/fetch.c $(PLUTODIR)/fetch.h
48                 $(COMPILE) $(INCLUDES) -c -o $@ $<
49
50 id.o :          $(PLUTODIR)/id.c $(PLUTODIR)/id.h
51                 $(COMPILE) $(INCLUDES) -c -o $@ $<
52
53 keys.o :        $(PLUTODIR)/keys.c $(PLUTODIR)/keys.h
54                 $(COMPILE) $(INCLUDES) -c -o $@ $<
55
56 lex.o :         $(PLUTODIR)/lex.c $(PLUTODIR)/lex.h
57                 $(COMPILE) $(INCLUDES) -c -o $@ $<
58
59 md2.o :         $(PLUTODIR)/md2.c $(PLUTODIR)/md2.h
60                 $(COMPILE) $(INCLUDES) -c -o $@ $<
61
62 md5.o :         $(PLUTODIR)/md5.c $(PLUTODIR)/md5.h
63                 $(COMPILE) $(INCLUDES) -c -o $@ $<
64
65 ocsp.o :        $(PLUTODIR)/ocsp.c $(PLUTODIR)/ocsp.h
66                 $(COMPILE) $(INCLUDES) -c -o $@ $<
67
68 oid.o :         $(PLUTODIR)/oid.c $(PLUTODIR)/oid.h
69                 $(COMPILE) $(INCLUDES) -c -o $@ $<
70
71 pem.o :         $(PLUTODIR)/pem.c $(PLUTODIR)/pem.h
72                 $(COMPILE) $(INCLUDES) -c -o $@ $<
73
74 pgp.o :         $(PLUTODIR)/pgp.c $(PLUTODIR)/pgp.h
75                 $(COMPILE) $(INCLUDES) -c -o $@ $<
76
77 pkcs1.o :       $(PLUTODIR)/pkcs1.c $(PLUTODIR)/pkcs1.h
78                 $(COMPILE) $(INCLUDES) -c -o $@ $<
79
80 pkcs7.o :       $(PLUTODIR)/pkcs7.c $(PLUTODIR)/pkcs7.h
81                 $(COMPILE) $(INCLUDES) -c -o $@ $<
82
83 rnd.o :         $(PLUTODIR)/rnd.c $(PLUTODIR)/rnd.h
84                 $(COMPILE) $(INCLUDES) -c -o $@ $<
85
86 sha1.o :        $(PLUTODIR)/sha1.c $(PLUTODIR)/sha1.h
87                 $(COMPILE) $(INCLUDES) -c -o $@ $<
88
89 smartcard.o :   $(PLUTODIR)/smartcard.c $(PLUTODIR)/smartcard.h
90                 $(COMPILE) $(INCLUDES) -c -o $@ $<
91
92 x509.o :        $(PLUTODIR)/x509.c $(PLUTODIR)/x509.h
93                 $(COMPILE) $(INCLUDES) -c -o $@ $<
94
95 # This compile option activates dynamic URL fetching using libcurl
96 if USE_LIBCURL
97   scepclient_LDADD += -lcurl
98 endif