2005-11-14 23:15:54 +00:00
|
|
|
#
|
|
|
|
# (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
|
|
#
|
|
|
|
|
|
|
|
TOP = $(shell pwd)
|
2005-11-16 14:00:27 +00:00
|
|
|
|
|
|
|
VPATH=$(TOP)
|
|
|
|
|
2005-11-14 23:15:54 +00:00
|
|
|
TARGET = native
|
2005-11-16 14:00:27 +00:00
|
|
|
|
2005-11-30 00:54:04 +00:00
|
|
|
AS=$(CROSS_COMPILE)as
|
|
|
|
CC=$(CROSS_COMPILE)gcc
|
|
|
|
LD=$(CROSS_COMPILE)ld
|
|
|
|
AR=$(CROSS_COMPILE)ar
|
|
|
|
|
2005-11-26 18:28:05 +00:00
|
|
|
CFLAGS = -nostdlib -nodefaultlibs -Wall -Werror -Wno-multichar
|
|
|
|
ifeq ($(TARGET), m68k-linux)
|
2006-01-24 12:25:27 +00:00
|
|
|
68000FLAGS = -m68000 -Wa,-m68000
|
|
|
|
CFLAGS += -fpic -O2 -Os
|
2005-11-26 18:28:05 +00:00
|
|
|
endif
|
|
|
|
|
2005-11-14 23:15:54 +00:00
|
|
|
CPPFLAGS = -DFATFREE -DNOBYFOUR -DBUILDFIXED -DNO_GZCOMPRESS -DDYNAMIC_CRC_TABLE
|
|
|
|
|
|
|
|
LIBRARY = libgzip.a
|
|
|
|
|
|
|
|
SOURCES = inflate.c adler32.c inftrees.c zutil.c inffast.c crc32.c
|
|
|
|
|
|
|
|
HEADERS = deflate.h inffast.h inflate.h inftrees.h zconf.h zlib.h zutil.h
|
|
|
|
|
|
|
|
all:
|
|
|
|
test -d $(TARGET) || mkdir $(TARGET)
|
2005-11-16 14:00:27 +00:00
|
|
|
cd $(TARGET) && make -f $(TOP)/Makefile $(LIBRARY) TOP=$(TOP)
|
|
|
|
|
|
|
|
include $(TOP)/../Rules.mk
|