mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-15 13:04:40 +00:00
32 lines
997 B
Makefile
32 lines
997 B
Makefile
#
|
|
# (c) 2005 Laurent Vivier <Laurent@lvivier.info>
|
|
#
|
|
|
|
TOP = $(shell pwd)
|
|
VPATH=$(TOP)
|
|
|
|
CFLAGS += -nostdlib -nodefaultlibs -Wall -Werror -Wno-multichar -fpic -g -O2 -Os
|
|
#-m68000 -Wa,-m68000
|
|
CPPFLAGS = -I$(TOP)/../libmacos -I$(TOP) -I$(TOP)/../libgzip
|
|
|
|
LIBRARIES = hard/libstream.a floppy/libstream.a
|
|
|
|
SOURCES = stream_close.c stream_open.c stream_read.c stream_lseek.c \
|
|
stream_uncompress.c gzio.c stream_fstat.c
|
|
|
|
HEADERS = libstream.h
|
|
|
|
all: $(LIBRARIES)
|
|
|
|
hard/libstream.a::
|
|
test -e hard || mkdir hard
|
|
$(MAKE) -C hard -f $(TOP)/Makefile TOP=$(TOP) LIBRARY=libstream.a CPPFLAGS="$(CPPFLAGS) \
|
|
-DSCSI_SUPPORT -DISO9660_SUPPORT -I$(TOP)/../libscsi -I$(TOP)/../libiso9660 \
|
|
-DCONTAINER_SUPPORT -I$(TOP)/../libcontainer" libstream.a
|
|
|
|
floppy/libstream.a::
|
|
test -e floppy || mkdir floppy
|
|
$(MAKE) -C floppy -f $(TOP)/Makefile TOP=$(TOP) LIBRARY=libstream.a CPPFLAGS="$(CPPFLAGS) -DFLOPPY_SUPPORT -DBLOCK_SUPPORT -I$(TOP)/../libfloppy -I$(TOP)/../libblock" libstream.a
|
|
|
|
include $(TOP)/../Rules.mk
|