EMILE/libstream/Makefile

32 lines
996 B
Makefile
Raw Normal View History

2005-11-21 23:55:56 +00:00
#
# (c) 2005 Laurent Vivier <Laurent@lvivier.info>
2005-11-21 23:55:56 +00:00
#
TOP = $(shell pwd)
VPATH=$(TOP)
2005-11-27 22:37:01 +00:00
CFLAGS = -nostdlib -nodefaultlibs -Wall -Werror -Wno-multichar -fpic -g -O2 -Os
#-m68000 -Wa,-m68000
2005-11-26 08:53:39 +00:00
CPPFLAGS = -I$(TOP)/../libmacos -I$(TOP) -I$(TOP)/../libgzip
2005-11-21 23:55:56 +00:00
2005-11-26 08:53:39 +00:00
LIBRARIES = hard/libstream.a floppy/libstream.a
2005-11-21 23:55:56 +00:00
2005-11-22 23:14:55 +00:00
SOURCES = stream_close.c stream_open.c stream_read.c stream_lseek.c \
2005-11-23 00:09:00 +00:00
stream_uncompress.c gzio.c stream_fstat.c
2005-11-21 23:55:56 +00:00
HEADERS = libstream.h
2005-11-26 08:53:39 +00:00
all: $(LIBRARIES)
hard/libstream.a::
test -e hard || mkdir hard
2005-12-01 22:16:34 +00:00
$(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
2005-11-26 08:53:39 +00:00
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
2005-11-21 23:55:56 +00:00
include $(TOP)/../Rules.mk