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

103 lines
2.8 KiB
Makefile

# $KAME: Makefile.in,v 1.31 2001/01/31 05:32:55 sakane 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) -Dss_family=__ss_family -Dss_len=__ss_len -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 eaytest
#PROG+= kmpstat
#PROG+= pfkey
OBJS= main.o session.o isakmp.o handler.o random.o \
isakmp_ident.o isakmp_agg.o isakmp_base.o \
isakmp_quick.o isakmp_inf.o isakmp_newg.o \
gssapi.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@
# under samples
CONF= psk.txt racoon.conf
all: $(PROG)
racoon: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
kmpstat: kmpstat.o misc_noplog.o vmbuf.o str2val.o
$(CC) $(LDFLAGS) -o $@ kmpstat.o misc_noplog.o vmbuf.o str2val.o $(LIBS)
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)
# 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
.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
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