]> git.ipfire.org Git - people/ms/strongswan.git/blame - lib/Makefile.kernel
- import of strongswan-2.7.0
[people/ms/strongswan.git] / lib / Makefile.kernel
CommitLineData
997358a6
MW
1# FreeS/WAN library
2# Copyright (C) 1998-2002 Henry Spencer.
3#
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>.
8#
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
12# for more details.
13#
14# RCSID $Id: Makefile.kernel,v 1.1 2004/03/15 20:35:24 as Exp $
15
16
17
18include ../Makefile.inc
19include ../Makefile.ver
20
21
22
23ifndef TOPDIR
24TOPDIR := /usr/src/linux
25endif
26
27L_TARGET := libkernel.a
28
29obj-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
33
34HDRS=freeswan.h internal.h
35
36EXTRA_CFLAGS += -I. $(KLIPSCOMPILE)
37
38EXTRA_CFLAGS += -Wall
39#EXTRA_CFLAGS += -Wconversion
40#EXTRA_CFLAGS += -Wmissing-prototypes
41EXTRA_CFLAGS += -Wpointer-arith
42#EXTRA_CFLAGS += -Wcast-qual
43#EXTRA_CFLAGS += -Wmissing-declarations
44EXTRA_CFLAGS += -Wstrict-prototypes
45#EXTRA_CFLAGS += -pedantic
46#EXTRA_CFLAGS += -W
47#EXTRA_CFLAGS += -Wwrite-strings
48#EXTRA_CFLAGS += -Wbad-function-cast
49
50active-objs := $(sort $(obj-y) $(obj-m))
51L_OBJS := $(obj-y)
52M_OBJS := $(obj-m)
53MIX_OBJS := $(filter $(export-objs), $(active-objs))
54
55include $(TOPDIR)/Rules.make
56
57$(obj-y): $(HDRS)
58
59# build version.c using version number from Makefile.ver
60version.c: version.in.c
61 sed '/"/s/xxx/$(IPSECVERSION)/' version.in.c >$@
62
63clean:
64 rm -f $(L_TARGET) *.o try* core *.core version.c
65 ( cd des && $(MAKE) clean )