mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-15 13:04:40 +00:00
35 lines
733 B
Makefile
35 lines
733 B
Makefile
#
|
|
# (c) 2005 Laurent Vivier <Laurent@lvivier.info>
|
|
#
|
|
|
|
TOP = $(shell pwd)
|
|
|
|
VPATH=$(TOP)
|
|
|
|
TARGET = native
|
|
|
|
AS=$(CROSS_COMPILE)as
|
|
CC=$(CROSS_COMPILE)gcc
|
|
LD=$(CROSS_COMPILE)ld
|
|
AR=$(CROSS_COMPILE)ar
|
|
|
|
CFLAGS += -nostdlib -nodefaultlibs -Wall -Werror -Wno-multichar
|
|
ifeq ($(TARGET), m68k-linux)
|
|
68000FLAGS = -m68000 -Wa,-m68000
|
|
CFLAGS += -fpic -O2 -Os
|
|
endif
|
|
|
|
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)
|
|
cd $(TARGET) && make -f $(TOP)/Makefile $(LIBRARY) TOP=$(TOP)
|
|
|
|
include $(TOP)/../Rules.mk
|