use NULL to load plugins from default plugin directory
[strongswan.git] / src / scepclient / Makefile.am
1 ipsec_PROGRAMS = scepclient
2 scepclient_SOURCES = scepclient.c 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=\"${sysconfdir}\" \
20 -DPLUGINS=\""${pluto_plugins}\"" \
21 -DSTRONGSWAN_CONF=\"${strongswan_conf}\" \
22 -DDEBUG -DNO_PLUTO
23
24 LIBSTRONGSWANBUILDDIR=$(top_builddir)/src/libstrongswan
25 LIBFREESWANBUILDDIR=$(top_builddir)/src/libfreeswan
26
27 scepclient_LDADD = \
28 ca.o crl.o certs.o constants.o defs.o fetch.o id.o keys.o lex.o \
29 ocsp.o pgpcert.o pkcs7.o smartcard.o x509.o \
30 $(LIBSTRONGSWANBUILDDIR)/libstrongswan.la \
31 $(LIBFREESWANBUILDDIR)/libfreeswan.a
32
33 # This compile option activates smartcard support
34 if USE_SMARTCARD
35   AM_CFLAGS += -DSMARTCARD
36   scepclient_LDADD += $(DLLIB)
37 endif
38
39 dist_man_MANS = scepclient.8
40
41 ca.o :          $(PLUTODIR)/ca.c $(PLUTODIR)/ca.h
42                 $(COMPILE) $(INCLUDES) -c -o $@ $<
43
44 certs.o :       $(PLUTODIR)/certs.c $(PLUTODIR)/certs.h
45                 $(COMPILE) $(INCLUDES) -c -o $@ $<
46
47 constants.o :   $(PLUTODIR)/constants.c $(PLUTODIR)/constants.h
48                 $(COMPILE) $(INCLUDES) -c -o $@ $<
49
50 crl.o :         $(PLUTODIR)/crl.c $(PLUTODIR)/crl.h
51                 $(COMPILE) $(INCLUDES) -c -o $@ $<
52
53 defs.o :        $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
54                 $(COMPILE) $(INCLUDES) -c -o $@ $<
55
56 fetch.o :       $(PLUTODIR)/fetch.c $(PLUTODIR)/fetch.h
57                 $(COMPILE) $(INCLUDES) -c -o $@ $<
58
59 id.o :          $(PLUTODIR)/id.c $(PLUTODIR)/id.h
60                 $(COMPILE) $(INCLUDES) -c -o $@ $<
61
62 keys.o :        $(PLUTODIR)/keys.c $(PLUTODIR)/keys.h
63                 $(COMPILE) $(INCLUDES) -c -o $@ $<
64
65 lex.o :         $(PLUTODIR)/lex.c $(PLUTODIR)/lex.h
66                 $(COMPILE) $(INCLUDES) -c -o $@ $<
67
68 ocsp.o :        $(PLUTODIR)/ocsp.c $(PLUTODIR)/ocsp.h
69                 $(COMPILE) $(INCLUDES) -c -o $@ $<
70
71 pgpcert.o :             $(PLUTODIR)/pgpcert.c $(PLUTODIR)/pgpcert.h
72                 $(COMPILE) $(INCLUDES) -c -o $@ $<
73
74 pkcs7.o :       $(PLUTODIR)/pkcs7.c $(PLUTODIR)/pkcs7.h
75                 $(COMPILE) $(INCLUDES) -c -o $@ $<
76
77 smartcard.o :   $(PLUTODIR)/smartcard.c $(PLUTODIR)/smartcard.h
78                 $(COMPILE) $(INCLUDES) -c -o $@ $<
79
80 x509.o :        $(PLUTODIR)/x509.c $(PLUTODIR)/x509.h
81                 $(COMPILE) $(INCLUDES) -c -o $@ $<