# FreeS/WAN library # Copyright (C) 1998, 1999, 2000 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.8 2001/01/29 22:21:04 rgb Exp $ ifndef TOPDIR TOPDIR := /usr/src/linux endif L_TARGET := libkernel.a obj-y := ultoa.o addrtoa.o subnettoa.o subnetof.o goodmask.o datatot.o \ rangetoa.o satoa.o pfkey_v2_parse.o pfkey_v2_build.o pfkey_v2_ext_bits.o HDRS=freeswan.h internal.h EXTRA_CFLAGS += -I. ifeq ($(CONFIG_IPSEC_DEBUG),y) EXTRA_CFLAGS += -g endif EXTRA_CFLAGS += -Wall #EXTRA_CFLAGS += -Wconversion #EXTRA_CFLAGS += -Wmissing-prototypes EXTRA_CFLAGS += -Wpointer-arith #EXTRA_CFLAGS += -Wcast-qual #EXTRA_CFLAGS += -Wmissing-declarations EXTRA_CFLAGS += -Wstrict-prototypes #EXTRA_CFLAGS += -pedantic #EXTRA_CFLAGS += -O3 #EXTRA_CFLAGS += -W #EXTRA_CFLAGS += -Wwrite-strings EXTRA_CFLAGS += -Wbad-function-cast active-objs := $(sort $(obj-y) $(obj-m)) L_OBJS := $(obj-y) M_OBJS := $(obj-m) MIX_OBJS := $(filter $(export-objs), $(active-objs)) include $(TOPDIR)/Rules.make $(obj-y): $(HDRS) clean: rm -f $(L_TARGET) *.o try* core *.core ( cd des && $(MAKE) clean )