replaced struct id by identification_t
[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 constants.o defs.o lex.o pkcs7.o \
28 $(LIBSTRONGSWANBUILDDIR)/libstrongswan.la \
29 $(LIBFREESWANBUILDDIR)/libfreeswan.a
30
31 # This compile option activates smartcard support
32 if USE_SMARTCARD
33   AM_CFLAGS += -DSMARTCARD
34   scepclient_LDADD += $(DLLIB)
35 endif
36
37 dist_man_MANS = scepclient.8
38
39 constants.o :   $(PLUTODIR)/constants.c $(PLUTODIR)/constants.h
40                 $(COMPILE) $(INCLUDES) -c -o $@ $<
41
42 defs.o :        $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
43                 $(COMPILE) $(INCLUDES) -c -o $@ $<
44
45 lex.o :         $(PLUTODIR)/lex.c $(PLUTODIR)/lex.h
46                 $(COMPILE) $(INCLUDES) -c -o $@ $<
47
48 pkcs7.o :       $(PLUTODIR)/pkcs7.c $(PLUTODIR)/pkcs7.h
49                 $(COMPILE) $(INCLUDES) -c -o $@ $<
50