23e35344cdf237b39a4c6a249b9ed01d7660cc71
[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 LIBHYDRADIR=$(top_srcdir)/src/libhydra
10 LIBCRYPTODIR=$(top_srcdir)/src/libcrypto
11
12 INCLUDES = \
13 -I$(LIBFREESWANDIR) \
14 -I$(LIBSTRONGSWANDIR) \
15 -I$(LIBHYDRADIR) \
16 -I$(PLUTODIR) \
17 -I$(LIBCRYPTODIR) \
18 -I$(WHACKDIR)
19
20 AM_CFLAGS = \
21 -DIPSEC_CONFDIR=\"${sysconfdir}\" \
22 -DPLUGINS=\""${pluto_plugins}\"" \
23 -DDEBUG -DNO_PLUTO
24
25 LIBSTRONGSWANBUILDDIR=$(top_builddir)/src/libstrongswan
26 LIBFREESWANBUILDDIR=$(top_builddir)/src/libfreeswan
27
28 scepclient_LDADD = \
29 constants.o defs.o lex.o pkcs7.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 constants.o :   $(PLUTODIR)/constants.c $(PLUTODIR)/constants.h
42                 $(COMPILE) $(INCLUDES) -c -o $@ $<
43
44 defs.o :        $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
45                 $(COMPILE) $(INCLUDES) -c -o $@ $<
46
47 lex.o :         $(PLUTODIR)/lex.c $(PLUTODIR)/lex.h
48                 $(COMPILE) $(INCLUDES) -c -o $@ $<
49
50 pkcs7.o :       $(PLUTODIR)/pkcs7.c $(PLUTODIR)/pkcs7.h
51                 $(COMPILE) $(INCLUDES) -c -o $@ $<
52