1 # Id: Makefile.am,v 1.23 2005/07/01 08:57:50 manubsd Exp
3 sbin_PROGRAMS = racoon racoonctl plainrsa-gen
4 noinst_PROGRAMS = eaytest
5 include_racoon_HEADERS = racoonctl.h var.h vmbuf.h misc.h gcmalloc.h admin.h \
6 schedule.h sockmisc.h isakmp_var.h isakmp.h isakmp_xauth.h \
7 isakmp_cfg.h isakmp_unity.h ipsec_doi.h evt.h
8 lib_LTLIBRARIES = libracoon.la
10 adminsockdir=${localstatedir}/racoon
12 BUILT_SOURCES = cfparse.h prsa_par.h
13 INCLUDES = -I${srcdir}/../libipsec
14 AM_CFLAGS = -D_GNU_SOURCE @GLIBC_BUGS@ -DSYSCONFDIR=\"${sysconfdir}\" \
15 -DADMINPORTDIR=\"${adminsockdir}\"
16 AM_LDFLAGS = @EXTRA_CRYPTO@ -lcrypto
17 AM_YFLAGS = -d ${$*_YFLAGS}
18 AM_LFLAGS = ${$*_LFLAGS}
20 prsa_par_YFLAGS = -p prsa
21 prsa_tok_LFLAGS = -Pprsa -olex.yy.c
24 missing/crypto/sha2/sha2.c \
25 missing/crypto/rijndael/rijndael-api-fst.c \
26 missing/crypto/rijndael/rijndael-alg-fst.c
29 main.c session.c isakmp.c handler.c \
30 isakmp_ident.c isakmp_agg.c isakmp_base.c \
31 isakmp_quick.c isakmp_inf.c isakmp_newg.c \
32 gssapi.c dnssec.c getcertsbyname.c privsep.c \
33 pfkey.c admin.c evt.c ipsec_doi.c oakley.c grabmyaddr.c vendorid.c \
34 policy.c localconf.c remoteconf.c crypto_openssl.c algorithm.c \
35 proposal.c sainfo.c strnames.c \
36 plog.c logger.c schedule.c str2val.c \
37 safefile.c backupsa.c genlist.c rsalist.c \
38 cftoken.l cfparse.y prsa_tok.l prsa_par.y
39 EXTRA_racoon_SOURCES = isakmp_xauth.c isakmp_cfg.c isakmp_unity.c throttle.c \
40 isakmp_frag.c nattraversal.c security.c $(MISSING_ALGOS)
41 racoon_LDADD = $(CRYPTOBJS) $(HYBRID_OBJS) $(NATT_OBJS) $(FRAG_OBJS) $(LEXLIB) \
42 $(SECCTX_OBJS) vmbuf.o sockmisc.o misc.o ../libipsec/libipsec.la
43 racoon_DEPENDENCIES = \
44 $(CRYPTOBJS) $(HYBRID_OBJS) $(NATT_OBJS) $(FRAG_OBJS) $(SECCTX_OBJS) \
45 vmbuf.o sockmisc.o misc.o
47 racoonctl_SOURCES = racoonctl.c str2val.c
48 racoonctl_LDADD = libracoon.la ../libipsec/libipsec.la
50 libracoon_la_SOURCES = kmpstat.c vmbuf.c sockmisc.c misc.c
51 libracoon_la_CFLAGS = -DNOUSE_PRIVSEP $(AM_CFLAGS)
53 plainrsa_gen_SOURCES = plainrsa-gen.c plog.c \
54 crypto_openssl.c logger.c
55 EXTRA_plainrsa_gen_SOURCES = $(MISSING_ALGOS)
56 plainrsa_gen_LDADD = $(CRYPTOBJS) vmbuf.o misc.o
57 plainrsa_gen_DEPENDENCIES = $(CRYPTOBJS) vmbuf.o misc.o
59 eaytest_SOURCES = eaytest.c plog.c logger.c
60 EXTRA_eaytest_SOURCES = missing/crypto/sha2/sha2.c
61 eaytest_LDADD = crypto_openssl_test.o vmbuf.o str2val.o misc_noplog.o \
63 eaytest_DEPENDENCIES = crypto_openssl_test.o vmbuf.o str2val.o \
64 misc_noplog.o $(CRYPTOBJS)
67 admin.h dnssec.h isakmp_base.h oakley.h session.h \
68 admin_var.h dump.h isakmp_ident.h pfkey.h sockmisc.h \
69 algorithm.h gcmalloc.h isakmp_inf.h plog.h str2val.h \
70 backupsa.h gnuc.h isakmp_newg.h policy.h strnames.h \
71 grabmyaddr.h isakmp_quick.h proposal.h var.h evt.h \
72 gssapi.h isakmp_var.h vendorid.h nattraversal.h\
73 crypto_openssl.h handler.h localconf.h remoteconf.h vmbuf.h \
74 debug.h ipsec_doi.h logger.h safefile.h \
75 debugrm.h isakmp.h misc.h sainfo.h \
76 dhgroup.h isakmp_agg.h netdb_dnssec.h schedule.h \
77 isakmp_cfg.h isakmp_xauth.h isakmp_unity.h isakmp_frag.h \
78 throttle.h privsep.h \
79 cfparse_proto.h cftoken_proto.h genlist.h rsalist.h \
80 missing/crypto/sha2/sha2.h missing/crypto/rijndael/rijndael_local.h \
81 missing/crypto/rijndael/rijndael-api-fst.h \
82 missing/crypto/rijndael/rijndael-alg-fst.h \
83 missing/crypto/rijndael/rijndael.h
85 man5_MANS = racoon.conf.5
86 man8_MANS = racoon.8 racoonctl.8 plainrsa-gen.8
89 ${man5_MANS} ${man8_MANS} \
90 missing/crypto/rijndael/boxes-fst.dat \
91 doc/FAQ doc/README.certificate doc/README.gssapi doc/README.plainrsa \
93 contrib/sp.pl stats.pl \
94 samples/psk.txt.sample samples/racoon.conf.sample \
95 samples/psk.txt.in samples/racoon.conf.in \
96 samples/racoon.conf.sample-gssapi samples/racoon.conf.sample-natt \
97 samples/racoon.conf.sample-inherit samples/racoon.conf.sample-plainrsa \
98 samples/roadwarrior/README \
99 samples/roadwarrior/client/phase1-down.sh \
100 samples/roadwarrior/client/phase1-up.sh \
101 samples/roadwarrior/client/racoon.conf \
102 samples/roadwarrior/server/racoon.conf \
103 samples/roadwarrior/server/racoon.conf-radius
108 ${mkinstalldirs} $(DESTDIR)${adminsockdir}
110 # special object rules
111 crypto_openssl_test.o: crypto_openssl.c
112 $(COMPILE) -DEAYDEBUG -o crypto_openssl_test.o -c $(srcdir)/crypto_openssl.c
114 misc_noplog.o: misc.c
115 $(COMPILE) -DNOUSE_PLOG -o misc_noplog.o -c $(srcdir)/misc.c
118 strdup.o: $(srcdir)/missing/strdup.c
119 $(COMPILE) -c $(srcdir)/missing/$*.c
120 getaddrinfo.o: $(srcdir)/missing/getaddrinfo.c
121 $(COMPILE) -c $(srcdir)/missing/$*.c
122 getnameinfo.o: $(srcdir)/missing/getnameinfo.c
123 $(COMPILE) -c $(srcdir)/missing/$*.c
124 rijndael-api-fst.o: $(srcdir)/missing/crypto/rijndael/rijndael-api-fst.c
125 $(COMPILE) -c $(srcdir)/missing/crypto/rijndael/$*.c
126 rijndael-alg-fst.o: $(srcdir)/missing/crypto/rijndael/rijndael-alg-fst.c
127 $(COMPILE) -c $(srcdir)/missing/crypto/rijndael/$*.c
128 sha2.o: $(srcdir)/missing/crypto/sha2/sha2.c
129 $(COMPILE) -c $(srcdir)/missing/crypto/sha2/$*.c