]>
Commit | Line | Data |
---|---|---|
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 | ||
18 | include ../Makefile.inc | |
19 | include ../Makefile.ver | |
20 | ||
21 | ||
22 | ||
23 | ifndef TOPDIR | |
24 | TOPDIR := /usr/src/linux | |
25 | endif | |
26 | ||
27 | L_TARGET := libkernel.a | |
28 | ||
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 | |
33 | ||
34 | HDRS=freeswan.h internal.h | |
35 | ||
36 | EXTRA_CFLAGS += -I. $(KLIPSCOMPILE) | |
37 | ||
38 | EXTRA_CFLAGS += -Wall | |
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 | |
46 | #EXTRA_CFLAGS += -W | |
47 | #EXTRA_CFLAGS += -Wwrite-strings | |
48 | #EXTRA_CFLAGS += -Wbad-function-cast | |
49 | ||
50 | active-objs := $(sort $(obj-y) $(obj-m)) | |
51 | L_OBJS := $(obj-y) | |
52 | M_OBJS := $(obj-m) | |
53 | MIX_OBJS := $(filter $(export-objs), $(active-objs)) | |
54 | ||
55 | include $(TOPDIR)/Rules.make | |
56 | ||
57 | $(obj-y): $(HDRS) | |
58 | ||
59 | # build version.c using version number from Makefile.ver | |
60 | version.c: version.in.c | |
61 | sed '/"/s/xxx/$(IPSECVERSION)/' version.in.c >$@ | |
62 | ||
63 | clean: | |
64 | rm -f $(L_TARGET) *.o try* core *.core version.c | |
65 | ( cd des && $(MAKE) clean ) |