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