1 # (kernel) Makefile for IPCOMP zlib deflate code
2 # Copyright (C) 1998, 1999, 2000, 2001 Richard Guy Briggs.
3 # Copyright (C) 2000 Svenning Soerensen
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2 of the License, or (at your
8 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 # RCSID $Id: Makefile,v 1.7 2002/03/27 23:34:35 mcr Exp $
20 include $(ROOTDIR)/freeswan/Makefile.inc
25 TOPDIR := /usr/src/linux
30 obj-y := adler32.o deflate.o infblock.o infcodes.o inffast.o inflate.o inftrees.o infutil.o trees.o zutil.o
32 EXTRA_CFLAGS += $(KLIPSCOMPILE)
35 #EXTRA_CFLAGS += -Wconversion
36 #EXTRA_CFLAGS += -Wmissing-prototypes
37 EXTRA_CFLAGS += -Wpointer-arith
38 #EXTRA_CFLAGS += -Wcast-qual
39 #EXTRA_CFLAGS += -Wmissing-declarations
40 EXTRA_CFLAGS += -Wstrict-prototypes
41 #EXTRA_CFLAGS += -pedantic
43 #EXTRA_CFLAGS += -Wwrite-strings
44 EXTRA_CFLAGS += -Wbad-function-cast
45 EXTRA_CFLAGS += -DIPCOMP_PREFIX
48 $(CC) -D__ASSEMBLY__ -DNO_UNDERLINE -traditional -c $< -o $*.o
50 asm-obj-$(CONFIG_M586) += match586.o
51 asm-obj-$(CONFIG_M586TSC) += match586.o
52 asm-obj-$(CONFIG_M586MMX) += match586.o
53 asm-obj-$(CONFIG_M686) += match686.o
54 asm-obj-$(CONFIG_MPENTIUMIII) += match686.o
55 asm-obj-$(CONFIG_MPENTIUM4) += match686.o
56 asm-obj-$(CONFIG_MK6) += match586.o
57 asm-obj-$(CONFIG_MK7) += match686.o
58 asm-obj-$(CONFIG_MCRUSOE) += match586.o
59 asm-obj-$(CONFIG_MWINCHIPC6) += match586.o
60 asm-obj-$(CONFIG_MWINCHIP2) += match686.o
61 asm-obj-$(CONFIG_MWINCHIP3D) += match686.o
64 ifneq ($(strip $(asm-obj-y)),)
65 EXTRA_CFLAGS += -DASMV
68 active-objs := $(sort $(obj-y) $(obj-m))
71 MIX_OBJS := $(filter $(export-objs), $(active-objs))
73 include $(TOPDIR)/Rules.make
75 $(obj-y) : $(TOPDIR)/include/linux/config.h $(TOPDIR)/include/linux/autoconf.h
86 # Revision 1.7 2002/03/27 23:34:35 mcr
87 # added programs: target
89 # Revision 1.6 2001/12/05 20:19:08 henry
90 # use new compile-control variable
92 # Revision 1.5 2001/11/27 16:38:08 mcr
93 # added new "checkprograms" target to deal with programs that
94 # are required for "make check", but that may not be ready to
95 # build for every user due to external dependancies.
97 # Revision 1.4 2001/10/24 14:46:24 henry
100 # Revision 1.3 2001/04/21 23:05:24 rgb
101 # Update asm directives for 2.4 style makefiles.
103 # Revision 1.2 2001/01/29 22:22:00 rgb
104 # Convert to 2.4 new style with back compat.
106 # Revision 1.1.1.1 2000/09/29 18:51:33 rgb