1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
# (kernel) Makefile for IPCOMP zlib deflate code
# Copyright (C) 1998, 1999, 2000, 2001 Richard Guy Briggs.
# Copyright (C) 2000 Svenning Soerensen
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# RCSID $Id: Makefile,v 1.9 2002/04/24 07:55:32 mcr Exp $
#
include ../Makefile.inc
ifndef TOPDIR
TOPDIR := /usr/src/linux
endif
L_TARGET := zlib.a
obj-y :=
include Makefile.objs
EXTRA_CFLAGS += $(KLIPSCOMPILE)
EXTRA_CFLAGS += -Wall
#EXTRA_CFLAGS += -Wconversion
#EXTRA_CFLAGS += -Wmissing-prototypes
EXTRA_CFLAGS += -Wpointer-arith
#EXTRA_CFLAGS += -Wcast-qual
#EXTRA_CFLAGS += -Wmissing-declarations
EXTRA_CFLAGS += -Wstrict-prototypes
#EXTRA_CFLAGS += -pedantic
#EXTRA_CFLAGS += -W
#EXTRA_CFLAGS += -Wwrite-strings
EXTRA_CFLAGS += -Wbad-function-cast
EXTRA_CFLAGS += -DIPCOMP_PREFIX
.S.o:
$(CC) -D__ASSEMBLY__ -DNO_UNDERLINE -traditional -c $< -o $*.o
asm-obj-$(CONFIG_M586) += match586.o
asm-obj-$(CONFIG_M586TSC) += match586.o
asm-obj-$(CONFIG_M586MMX) += match586.o
asm-obj-$(CONFIG_M686) += match686.o
asm-obj-$(CONFIG_MPENTIUMIII) += match686.o
asm-obj-$(CONFIG_MPENTIUM4) += match686.o
asm-obj-$(CONFIG_MK6) += match586.o
asm-obj-$(CONFIG_MK7) += match686.o
asm-obj-$(CONFIG_MCRUSOE) += match586.o
asm-obj-$(CONFIG_MWINCHIPC6) += match586.o
asm-obj-$(CONFIG_MWINCHIP2) += match686.o
asm-obj-$(CONFIG_MWINCHIP3D) += match686.o
obj-y += $(asm-obj-y)
ifneq ($(strip $(asm-obj-y)),)
EXTRA_CFLAGS += -DASMV
endif
active-objs := $(sort $(obj-y) $(obj-m))
L_OBJS := $(obj-y)
M_OBJS := $(obj-m)
MIX_OBJS := $(filter $(export-objs), $(active-objs))
include $(TOPDIR)/Rules.make
$(obj-y) : $(TOPDIR)/include/linux/config.h $(TOPDIR)/include/linux/autoconf.h
clean:
-rm -f *.o *.a
checkprograms:
programs: $(L_TARGET)
#
# $Log: Makefile,v $
# Revision 1.9 2002/04/24 07:55:32 mcr
# #include patches and Makefiles for post-reorg compilation.
#
# Revision 1.8 2002/04/24 07:36:44 mcr
# Moved from ./zlib/Makefile,v
#
# Revision 1.7 2002/03/27 23:34:35 mcr
# added programs: target
#
# Revision 1.6 2001/12/05 20:19:08 henry
# use new compile-control variable
#
# Revision 1.5 2001/11/27 16:38:08 mcr
# added new "checkprograms" target to deal with programs that
# are required for "make check", but that may not be ready to
# build for every user due to external dependancies.
#
# Revision 1.4 2001/10/24 14:46:24 henry
# Makefile.inc
#
# Revision 1.3 2001/04/21 23:05:24 rgb
# Update asm directives for 2.4 style makefiles.
#
# Revision 1.2 2001/01/29 22:22:00 rgb
# Convert to 2.4 new style with back compat.
#
# Revision 1.1.1.1 2000/09/29 18:51:33 rgb
# zlib_beginnings
#
#
|