# FreeS/WAN library # Copyright (C) 1998, 1999 Henry Spencer. # # 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 . # # 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.kernel,v 1.5 2000/06/16 03:09:17 rgb Exp $ ifndef TOPDIR TOPDIR := /usr/src/linux endif L_TARGET := libkernel.a L_OBJS := ultoa.o addrtoa.o subnettoa.o subnetof.o goodmask.o datatoa.o \ rangetoa.o satoa.o pfkey_v2_parse.o pfkey_v2_build.o pfkey_v2_ext_bits.o HDRS=freeswan.h internal.h override CFLAGS += -I. ifeq ($(DEBUG_IPSEC),y) override CFLAGS += -g endif override CFLAGS += -Wall #override CFLAGS += -Wconversion #override CFLAGS += -Wmissing-prototypes override CFLAGS += -Wpointer-arith #override CFLAGS += -Wcast-qual #override CFLAGS += -Wmissing-declarations override CFLAGS += -Wstrict-prototypes #override CFLAGS += -pedantic #override CFLAGS += -O3 #override CFLAGS += -W #override CFLAGS += -Wwrite-strings override CFLAGS += -Wbad-function-cast include $(TOPDIR)/Rules.make $(L_OBJS): $(HDRS) clean: rm -f $(L_TARGET) *.o try* core *.core ( cd des && $(MAKE) clean )