Build dedicated plugin lists for each strongSwan component
[strongswan.git] / src / scepclient / Makefile.am
1 ipsec_PROGRAMS = scepclient
2 scepclient_SOURCES = scepclient.c scep.c scep.h loglite.c
3
4 scepclient.o :  $(top_builddir)/config.status
5
6 PLUTODIR=$(top_srcdir)/src/pluto
7 OPENACDIR=$(top_srcdir)/src/openac
8 WHACKDIR=$(top_srcdir)/src/whack
9 LIBFREESWANDIR=$(top_srcdir)/src/libfreeswan
10 LIBSTRONGSWANDIR=$(top_srcdir)/src/libstrongswan
11 LIBHYDRADIR=$(top_srcdir)/src/libhydra
12 LIBCRYPTODIR=$(top_srcdir)/src/libcrypto
13
14 INCLUDES = \
15 -I$(LIBFREESWANDIR) \
16 -I$(LIBSTRONGSWANDIR) \
17 -I$(LIBHYDRADIR) \
18 -I$(PLUTODIR) \
19 -I$(LIBCRYPTODIR) \
20 -I$(WHACKDIR)
21
22 AM_CFLAGS = \
23 -DIPSEC_CONFDIR=\"${sysconfdir}\" \
24 -DPLUGINS=\""${scepclient_plugins}\"" \
25 -DDEBUG -DNO_PLUTO
26
27 LIBSTRONGSWANBUILDDIR=$(top_builddir)/src/libstrongswan
28 LIBFREESWANBUILDDIR=$(top_builddir)/src/libfreeswan
29
30 scepclient_LDADD = \
31 constants.o defs.o lex.o pkcs7.o \
32 $(LIBSTRONGSWANBUILDDIR)/libstrongswan.la \
33 $(LIBFREESWANBUILDDIR)/libfreeswan.a
34
35 # This compile option activates smartcard support
36 if USE_SMARTCARD
37   AM_CFLAGS += -DSMARTCARD
38   scepclient_LDADD += $(DLLIB)
39 endif
40
41 dist_man_MANS = scepclient.8
42
43 constants.o :   $(PLUTODIR)/constants.c $(PLUTODIR)/constants.h
44                 $(COMPILE) $(INCLUDES) -c -o $@ $<
45
46 defs.o :        $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
47                 $(COMPILE) $(INCLUDES) -c -o $@ $<
48
49 lex.o :         $(PLUTODIR)/lex.c $(PLUTODIR)/lex.h
50                 $(COMPILE) $(INCLUDES) -c -o $@ $<
51
52 pkcs7.o :       $(PLUTODIR)/pkcs7.c $(PLUTODIR)/pkcs7.h
53                 $(COMPILE) $(INCLUDES) -c -o $@ $<
54