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