2 # Copyright (C) 1998-2002 Henry Spencer.
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2 of the License, or (at your
7 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # RCSID $Id: Makefile.kernel,v 1.1 2004/03/15 20:35:24 as Exp $
18 include ../Makefile.inc
19 include ../Makefile.ver
24 TOPDIR := /usr/src/linux
27 L_TARGET := libkernel.a
29 obj-y := addrtoa.o datatot.o goodmask.o \
30 pfkey_v2_build.o pfkey_v2_debug.o pfkey_v2_ext_bits.o pfkey_v2_parse.o \
31 prng.o rangetoa.o satoa.o \
32 subnetof.o subnettoa.o ultoa.o version.o
34 HDRS=freeswan.h internal.h
36 EXTRA_CFLAGS += -I. $(KLIPSCOMPILE)
39 #EXTRA_CFLAGS += -Wconversion
40 #EXTRA_CFLAGS += -Wmissing-prototypes
41 EXTRA_CFLAGS += -Wpointer-arith
42 #EXTRA_CFLAGS += -Wcast-qual
43 #EXTRA_CFLAGS += -Wmissing-declarations
44 EXTRA_CFLAGS += -Wstrict-prototypes
45 #EXTRA_CFLAGS += -pedantic
47 #EXTRA_CFLAGS += -Wwrite-strings
48 #EXTRA_CFLAGS += -Wbad-function-cast
50 active-objs := $(sort $(obj-y) $(obj-m))
53 MIX_OBJS := $(filter $(export-objs), $(active-objs))
55 include $(TOPDIR)/Rules.make
59 # build version.c using version number from Makefile.ver
60 version.c: version.in.c
61 sed '/"/s/xxx/$(IPSECVERSION)/' version.in.c >$@
64 rm -f $(L_TARGET) *.o try* core *.core version.c
65 ( cd des && $(MAKE) clean )