EMILE/libstream/Makefile

44 lines
1.4 KiB
Makefile
Raw Normal View History

2005-11-21 23:55:56 +00:00
#
# (c) 2005,2007 Laurent Vivier <Laurent@lvivier.info>
2005-11-21 23:55:56 +00:00
#
TOP = $(shell pwd)
VPATH=$(TOP)
2006-11-01 19:48:51 +00:00
CFLAGS += -nostdlib -nodefaultlibs -Wall -Werror -Wno-multichar -fpic -g -O2 -Os
2005-11-27 22:37:01 +00:00
#-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
LIBRARIES = scsi/libstream.a floppy/libstream.a full/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
SCSI_FLAGS = -DSCSI_SUPPORT -I$(TOP)/../libscsi
ISO9660_FLAGS = -DISO9660_SUPPORT -I$(TOP)/../libiso9660
CONTAINER_FLAGS = -DCONTAINER_SUPPORT -I$(TOP)/../libcontainer
FLOPPY_FLAGS = -DFLOPPY_SUPPORT -I$(TOP)/../libfloppy
BLOCK_FLAGS = -DBLOCK_SUPPORT -I$(TOP)/../libblock
2005-11-26 08:53:39 +00:00
all: $(LIBRARIES)
scsi/libstream.a::
test -e scsi || mkdir scsi
$(MAKE) -C scsi -f $(TOP)/Makefile TOP=$(TOP) LIBRARY=libstream.a CPPFLAGS="$(CPPFLAGS) \
$(SCSI_FLAGS) $(CONTAINER_FLAGS) $(ISO9660_FLAGS)" 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) $(FLOPPY_FLAGS) $(BLOCK_FLAGS)" libstream.a
full/libstream.a::
test -e full || mkdir full
$(MAKE) -C full -f $(TOP)/Makefile TOP=$(TOP) LIBRARY=libstream.a \
CPPFLAGS="$(CPPFLAGS) $(SCSI_FLAGS) $(CONTAINER_FLAGS) \
$(ISO9660_FLAGS) $(FLOPPY_FLAGS) $(BLOCK_FLAGS)" libstream.a
2005-11-21 23:55:56 +00:00
include $(TOP)/../Rules.mk