# Makefile for IPCOMP zlib deflate code
# Copyright (C) 1998, 1999, 2000  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.1.1.1 2000/09/29 18:51:33 rgb Exp $
#

ifndef TOPDIR
TOPDIR  := /usr/src/linux
endif


L_TARGET := zlib.a
L_OBJS := adler32.o deflate.o infblock.o infcodes.o inffast.o inflate.o inftrees.o infutil.o trees.o zutil.o


ifeq ($(CONFIG_IPSEC_DEBUG),y)
override CFLAGS += -g
endif

override CFLAGS += -Wall 
#override CFLAGS += -Wconversion 
#override CFLAGS += -Wmissing-prototypes 
override CFLAGS += -Wpointer-arith 
#override CFLAGS += -Wcast-qual 
#override CFLAGS += -Wmissing-declarations 
override CFLAGS += -Wstrict-prototypes
#override CFLAGS += -pedantic
#override CFLAGS += -O3
#override CFLAGS += -W
#override CFLAGS += -Wwrite-strings 
override CFLAGS += -Wbad-function-cast 
override CFLAGS += -DIPCOMP_PREFIX

.S.o:
	$(CC) -D__ASSEMBLY__ -DNO_UNDERLINE -traditional -c $< -o $*.o

ifdef CONFIG_M586
  L_OBJS += match586.o
  override CFLAGS += -DASMV
endif
ifdef CONFIG_M586TSC
  L_OBJS += match586.o
  override CFLAGS += -DASMV
endif
ifdef CONFIG_M686
  L_OBJS += match686.o
  override CFLAGS += -DASMV
endif


include $(TOPDIR)/Rules.make

$(L_OBJS):  $(TOPDIR)/include/linux/config.h $(TOPDIR)/include/linux/autoconf.h

clean:
	-rm -f *.o *.a

#
# $Log: Makefile,v $
# Revision 1.1.1.1  2000/09/29 18:51:33  rgb
# zlib_beginnings
#
#
