📄 makefile
字号:
# ipsec starter Makefile# Copyright (C) 2001 Mathieu Lafon - Arkoon Network Security## This program is free software; you can redistribute it and/or modify it# under the terms of the GNU General Public License as published by the# Free Software Foundation; either version 2 of the License, or (at your# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.## This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License# for more details.## RCSID $Id: Makefile,v 1.15 2004/12/18 18:13:44 mcr Exp $OPENSWANSRCDIR?=$(shell cd ../..; pwd)include ${OPENSWANSRCDIR}/Makefile.incLD=$(CC)RM=rmLEX=lexBISON=bisonOPENSWANDIR=../..OPENSWANLIB=$(OPENSWANDIR)/lib/libopenswan/libopenswan.aifeq ($(USE_NAT_TRAVERSAL),true)DEFINES+=-DNAT_TRAVERSAL -DVIRTUAL_IP endifINCLUDES=-I${OPENSWANDIR}/linux/include ${srcdir}..$(OPENSWANDIR)/lib -I.. -I../..CFLAGS=$(DEFINES) $(INCLUDES)CFLAGS+=-DIPSEC_EXECDIR=\"${FINALLIBEXECDIR}\" -DIPSEC_CONFDDIR=\"${FINALCONFDDIR}\"CFLAGS+=-DIPSEC_CONFDIR=\"${FINALCONFDIR}\"LDFLAGS=OBJS=starter.o parser.tab.o lex.yy.o confread.o confwrite.o invokepluto.o starterwhack.o starterlog.o klips.o netkey.o \ interfaces.o exec.o cmp.o keywords.o alloc.oDISTSRC=$(OBJS:.o=.c)DISTSRC+=cmp.h confread.h confwrite.h exec.h files.h interfaces.h klips.h netkey.h starterlog.hDISTSRC+=parser.h pluto.h starterwhack.h keywords.hLIBS=../pluto/whacklib.o $(OPENSWANLIB)PROGRAM=starterall: starterstarter: $(OBJS) $(OPENSWANLIB) $(LD) $(LDFLAGS) -o starter $(OBJS) $(LIBS)lex.yy.c: parser.tab.c parser.l parser.y parser.h $(LEX) parser.lparser.tab.c: parser.l parser.y parser.h $(BISON) -v -d parser.y.c.o: $(CC) $(CFLAGS) -c -o $@ $<clean:: $(RM) -f starter $(OBJS) parser.tab.* lex.yy.*# Stolen from pluto/Makefilegatherdeps: @ls | grep '\.c$$' | sed -e 's/\(.*\)\.c$$/\1.o: \1.c/' @echo @ls | grep '\.c$$' | xargs grep '^#[ ]*include[ ]*"' | \ sed -e 's/\.c:#[ ]*include[ ]*"/.o: /' -e 's/".*//'include ${srcdir}../Makefile.programTAGS: $(DISTSRC) LC_ALL=C etags $(ETAGSFLAGS) $(DISTSRC) $(LIBOPENSWANDIR)/*.[ch]## gatherdepscmp.o: cmp.cconfread.o: confread.cexec.o: exec.cfoo1.o: foo1.cinterfaces.o: interfaces.cinvokepluto.o: invokepluto.ckeywords.o: keywords.cklips.o: klips.cnetkey.o: netkey.clex.yy.o: lex.yy.cstarterlog.o: starterlog.cparser.tab.o: parser.tab.cstarter.o: starter.cstarterwhack.o: starterwhack.ccmp.o: keywords.hcmp.o: confread.hcmp.o: cmp.hconfread.o: parser.hconfread.o: confread.hconfread.o: interfaces.hconfread.o: starterlog.hconfwrite.o: parser.hconfwrite.o: confread.hconfwrite.o: confwrite.hconfwrite.o: keywords.hexec.o: exec.hexec.o: starterlog.hinterfaces.o: interfaces.hinterfaces.o: exec.hinterfaces.o: files.hinterfaces.o: starterlog.hinvokepluto.o: confread.hinvokepluto.o: pluto.hinvokepluto.o: files.hinvokepluto.o: starterwhack.hinvokepluto.o: starterlog.hkeywords.o: parser.hkeywords.o: keywords.hkeywords.o: parser.tab.hkeywords.o: parserlast.hklips.o: confread.hklips.o: klips.hklips.o: files.hklips.o: starterlog.hklips.o: exec.hnetkey.o: confread.hnetkey.o: klips.hnetkey.o: files.hnetkey.o: starterlog.hnetkey.o: exec.hlex.yy.o: keywords.hlex.yy.o: parser.hlex.yy.o: parser.tab.hlex.yy.o: parserlast.hstarterlog.o: starterlog.hparser.tab.o: keywords.hparser.tab.o: parser.hstarter.o: confread.hstarter.o: starterlog.hstarter.o: files.hstarter.o: starterwhack.hstarter.o: pluto.hstarter.o: klips.hstarter.o: netkey.hstarter.o: cmp.hstarter.o: interfaces.hstarter.o: keywords.hstarterwhack.o: ../pluto/defs.hstarterwhack.o: ../pluto/whack.hstarterwhack.o: starterwhack.hstarterwhack.o: confread.hstarterwhack.o: files.hstarterwhack.o: starterlog.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -