NetBSD/crypto/dist/kame/racoon/Makefile.in

111 lines
3.2 KiB
Makefile

# $KAME: Makefile.in,v 1.39 2002/09/27 06:04:59 itojun Exp $
@SET_MAKE@
srcdir= @srcdir@
VPATH= @srcdir@
CC= @CC@
LDFLAGS=@LDFLAGS@
CPPFLAGS= @CPPFLAGS@
OPTFLAG=@OPTFLAG@
CFLAGS= @CFLAGS@ $(CPPFLAGS) @DEFS@ $(CPPFLAGS) $(OPTFLAG) -DIPSEC -I. -I$(srcdir) -DSYSCONFDIR=\"${sysconfdir}\"
CFLAGS+=-DYY_NO_UNPUT
CFLAGS+=-I${srcdir}/../libipsec
LIBS= @LIBS@
YFLAGS+=-d
prefix= @prefix@
bindir= @bindir@
mandir= @mandir@
exec_prefix= @exec_prefix@
sysconfdir= @sysconfdir@
INSTALL=@INSTALL@
PROG= racoon racoonctl eaytest
#PROG+= pfkey
OBJS= main.o session.o isakmp.o handler.o \
isakmp_ident.o isakmp_agg.o isakmp_base.o \
isakmp_quick.o isakmp_inf.o isakmp_newg.o \
gssapi.o dnssec.o getcertsbyname.o \
pfkey.o admin.o ipsec_doi.o oakley.o grabmyaddr.o vendorid.o \
policy.o localconf.o remoteconf.o crypto_openssl.o algorithm.o \
proposal.o sainfo.o cfparse.o cftoken.o strnames.o \
vmbuf.o plog.o logger.o schedule.o str2val.o misc.o sockmisc.o \
safefile.o backupsa.o @LIBOBJS@ @CRYPTOBJS@ @DEBUGRMOBJS@
# under samples
CONF= psk.txt racoon.conf
all: $(PROG)
racoon: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
racoonctl: kmpstat.o misc_noplog.o vmbuf.o str2val.o
$(CC) $(LDFLAGS) -o $@ kmpstat.o misc_noplog.o vmbuf.o str2val.o \
$(LIBS) @DEBUGRMOBJS@
pfkey: dummy.o
$(CC) $(LDFLAGS) -o $@ dummy.o
eaytest: eaytest.o crypto_openssl_test.o misc_noplog.o vmbuf.o str2val.o
$(CC) $(LDFLAGS) -o $@ eaytest.o crypto_openssl_test.o misc_noplog.o \
vmbuf.o str2val.o $(LIBS) @CRYPTOBJS@ @DEBUGRMOBJS@
# special object rules
crypto_openssl_test.o: crypto_openssl.c
$(CC) $(CFLAGS) -DEAYDEBUG -o crypto_openssl_test.o -c crypto_openssl.c
misc_noplog.o: misc.c
$(CC) -DNOUSE_PLOG -o misc_noplog.o -c misc.c
# extra
print-isakmp.o: $(srcdir)/../tcpdump/print-isakmp.c
$(CC) $(CFLAGS) -c $(srcdir)/../tcpdump/$*.c
# missing/*.c
strdup.o: $(srcdir)/missing/strdup.c
$(CC) $(CFLAGS) -c $(srcdir)/missing/$*.c
getaddrinfo.o: $(srcdir)/missing/getaddrinfo.c
$(CC) $(CFLAGS) -c $(srcdir)/missing/$*.c
getnameinfo.o: $(srcdir)/missing/getnameinfo.c
$(CC) $(CFLAGS) -c $(srcdir)/missing/$*.c
rijndael-api-fst.o: $(srcdir)/missing/crypto/rijndael/$*.c
$(CC) $(CFLAGS) -c $(srcdir)/missing/crypto/rijndael/$*.c
rijndael-alg-fst.o: $(srcdir)/missing/crypto/rijndael/$*.c
$(CC) $(CFLAGS) -c $(srcdir)/missing/crypto/rijndael/$*.c
sha2.o: $(srcdir)/missing/crypto/sha2/$*.c
$(CC) $(CFLAGS) -c $(srcdir)/missing/crypto/sha2/$*.c
arc4random.o: $(srcdir)/missing/$*.c
$(CC) $(CFLAGS) -c $(srcdir)/missing/$*.c
.c.o:
$(CC) $(CFLAGS) -c $<
tag:
ctags -dtw $(srcdir)/*.[chly]
install:
$(INSTALL) -s -o bin -g bin -m 555 racoon $(prefix)/sbin
$(INSTALL) -o bin -g bin -m 444 racoon.8 $(mandir)/man8
$(INSTALL) -o bin -g bin -m 444 racoon.conf.5 $(mandir)/man5
-mkdir -p ${sysconfdir}/racoon
for i in $(CONF); do \
if test ! -f ${sysconfdir}/racoon/$$i; then \
$(INSTALL) -o bin -g bin -m 444 samples/$$i \
${sysconfdir}/racoon; \
fi; \
$(INSTALL) -o bin -g bin -m 444 samples/$$i \
${sysconfdir}/racoon/$$i.dist; \
done
clean:
-rm -f $(PROG) *.o *.core y.tab.h cftoken.c cfparse.c cftoken.h cfparse.h
distclean: clean
-rm -f Makefile config.cache config.status config.log
-for i in $(CONF); do \
rm -f samples/$$i; \
done
depend:
mkdep ${CFLAGS:M-[ID]*} $(srcdir)/*.c