mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-08 04:54:25 +00:00
45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
#
|
|
# (c) 2005-2007 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 = scsi/libstream.a floppy/libstream.a full/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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
include $(TOP)/../tools.mk
|
|
include $(TOP)/../Rules.mk
|