📄 makefile
字号:
# Pluto Makefile# Copyright (C) 2001 Michael Richardson## 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.2 2002/11/05 01:51:44 ken Exp $include ../../../Makefile.incFMANDIR=$(MANTREE)/man5PMANDIR=$(MANTREE)/man8FREESWANSRCDIR=../../..FREESWANLIBDIR=${FREESWANSRCDIR}/libFREESWANINCLS= -I$(FREESWANLIBDIR) -I${FREESWANSRCDIR}FREESWANLIB=$(FREESWANLIBDIR)/libfreeswan.aCFLAGS = -g -Wall -W -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast \ -Wcast-qual -Wmissing-declarations -Wwrite-strings CFLAGS+= -Wstrict-prototypes CFLAGS+= -Werror#CFLAGS+= -WundefHDRDIRS = $(FREESWANINCLS)CPPFLAGS = $(HDRDIRS) $(BYTE_ORDER) -DDEBUG ALLFLAGS = $(CPPFLAGS) $(CFLAGS)LIBSWHACK =BINNAMEPING = ikepingRM = /bin/rmRMFLAGS = -f.SUFFIXES:.SUFFIXES: .c .o# files for a (source) distributionOBJSPING = ikeping.o $(FREESWANLIB)all: $(BINNAMEPING)install: all $(INSTALL) $(INSTBINFLAGS) $(BINNAMEPING) $(BINDIR) $(INSTALL) $(INSTMANFLAGS) ikeping.8 $(PMANDIR)/ipsec_ikeping.8$(BINNAMEPING): $(OBJSPING) $(CC) -o $(BINNAMEPING) $(LDFLAGS) $(OBJSPING) $(LIBSPING)distlist: @echo $(DIST)# Exuberant Ctags doesn't work if LC_ALL is set to something other than CCTAGSFLAGS = -N --format=1 # fishy options required for Exuberant Ctagstags: $(DISTSRC) LC_ALL=C ctags $(CTAGSFLAGS) $(DISTSRC)cleanall: cleandistclean: cleanmostlyclean: cleanrealclean: cleanclean: $(RM) $(RMFLAGS) $(OBJSPING) *.core core *~ a.out ktrace.out $(RM) $(RMFLAGS) $(BINNAMEPING) check: echo no checks in lib right now..c.o: $(CC) $(COPTS) $(ALLFLAGS) -c $<# These rules are not for production use$(FREESWANLIB): cd $(FREESWANLIBDIR) ; $(MAKE)programs: ikepingcheckprograms: ikepingcheck: ikeping.o: ${FREESWANSRCDIR}/pluto/constants.hikeping.o: ${FREESWANSRCDIR}/pluto/packet.hikeping.o: ${FREESWANSRCDIR}/lib/freeswan.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -