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