OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / zlib / Makefile
1 # (kernel) Makefile for IPCOMP zlib deflate code
2 # Copyright (C) 1998, 1999, 2000, 2001  Richard Guy Briggs.
3 # Copyright (C) 2000  Svenning Soerensen
4
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>.
9
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
13 # for more details.
14 #
15 # RCSID $Id: Makefile,v 1.7 2002/03/27 23:34:35 mcr Exp $
16 #
17
18
19
20 include $(ROOTDIR)/freeswan/Makefile.inc
21
22
23
24 ifndef TOPDIR
25 TOPDIR  := /usr/src/linux
26 endif
27
28
29 L_TARGET := zlib.a
30 obj-y := adler32.o deflate.o infblock.o infcodes.o inffast.o inflate.o inftrees.o infutil.o trees.o zutil.o
31
32 EXTRA_CFLAGS += $(KLIPSCOMPILE)
33
34 EXTRA_CFLAGS += -Wall 
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
42 #EXTRA_CFLAGS += -W
43 #EXTRA_CFLAGS += -Wwrite-strings 
44 EXTRA_CFLAGS += -Wbad-function-cast 
45 EXTRA_CFLAGS += -DIPCOMP_PREFIX
46
47 .S.o:
48         $(CC) -D__ASSEMBLY__ -DNO_UNDERLINE -traditional -c $< -o $*.o
49
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
62
63 obj-y += $(asm-obj-y)
64 ifneq ($(strip $(asm-obj-y)),)
65   EXTRA_CFLAGS += -DASMV
66 endif
67
68 active-objs     := $(sort $(obj-y) $(obj-m))
69 L_OBJS          := $(obj-y)
70 M_OBJS          := $(obj-m)
71 MIX_OBJS        := $(filter $(export-objs), $(active-objs))
72
73 include $(TOPDIR)/Rules.make
74
75 $(obj-y) :  $(TOPDIR)/include/linux/config.h $(TOPDIR)/include/linux/autoconf.h
76
77
78 clean:
79         -rm -f *.o *.a
80
81 checkprograms:
82 programs: $(L_TARGET)
83
84 #
85 # $Log: Makefile,v $
86 # Revision 1.7  2002/03/27 23:34:35  mcr
87 #       added programs: target
88 #
89 # Revision 1.6  2001/12/05 20:19:08  henry
90 # use new compile-control variable
91 #
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.
96 #
97 # Revision 1.4  2001/10/24 14:46:24  henry
98 # Makefile.inc
99 #
100 # Revision 1.3  2001/04/21 23:05:24  rgb
101 # Update asm directives for 2.4 style makefiles.
102 #
103 # Revision 1.2  2001/01/29 22:22:00  rgb
104 # Convert to 2.4 new style with back compat.
105 #
106 # Revision 1.1.1.1  2000/09/29 18:51:33  rgb
107 # zlib_beginnings
108 #
109 #