The cc65 library build system is designed to call sub-makes in direct sub-directories of 'libsrc' only (meaning that sub-sub-directories are not supported). The GEOSLib source files however are organized in sub-directories of the 'libsrc/geos-cbm'. This mismatch was up to now handled by replicating the cc65 library build system functionality to allow for individal sub-makes in each 'libsrc/geos-cbm' sub-directory. This is unnecessarily hard understand and causes additional maintainance effort.
Now the whole GEOSLib is built in a single make instance running in 'libsrc/geos-cbm' - which is just what the cc65 library build system can handle. The 'libsrc/geos-cbm' sub-directories still contain Makefiles. However those files only define the set of object files to create from their sub-directory and get included into the 'libsrc/geos-cbm' Makefile. git-svn-id: svn://svn.cc65.org/cc65/trunk@5429 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1,21 +1,40 @@
|
||||
#
|
||||
# Makefile for GEOS lib
|
||||
# for cc65
|
||||
# makefile for CC65 runtime library
|
||||
#
|
||||
|
||||
%.o: %.s
|
||||
@$(AS) -o $@ $(AFLAGS) $<
|
||||
#--------------------------------------------------------------------------
|
||||
# Object files
|
||||
|
||||
|
||||
S_OBJS = blkalloc.o calcblksfree.o changediskdevice.o chkdkgeos.o enterturbo.o exitturbo.o\
|
||||
findbambit.o freeblock.o getblock.o getdirhead.o getptrcurdknm.o newdisk.o\
|
||||
nxtblkalloc.o opendisk.o purgeturbo.o putblock.o putdirhead.o readblock.o\
|
||||
readbuff.o setnextfree.o setgeosdisk.o writeblock.o writebuff.o verwriteblock.o\
|
||||
gettrse.o setoserror.o\
|
||||
dio_openclose.o dio_cts.o dio_stc.o dio_read.o dio_write.o dio_writev.o\
|
||||
dio_params.o
|
||||
|
||||
all: $(S_OBJS)
|
||||
|
||||
clean:
|
||||
@$(RM) *.~ $(S_OBJS) core
|
||||
S_OBJS += blkalloc.o \
|
||||
calcblksfree.o \
|
||||
changediskdevice.o \
|
||||
chkdkgeos.o \
|
||||
dio_openclose.o \
|
||||
dio_cts.o \
|
||||
dio_params.o \
|
||||
dio_stc.o \
|
||||
dio_read.o \
|
||||
dio_write.o \
|
||||
dio_writev.o \
|
||||
enterturbo.o \
|
||||
exitturbo.o \
|
||||
findbambit.o \
|
||||
freeblock.o \
|
||||
getblock.o \
|
||||
getdirhead.o \
|
||||
getptrcurdknm.o \
|
||||
gettrse.o \
|
||||
newdisk.o \
|
||||
nxtblkalloc.o \
|
||||
opendisk.o \
|
||||
purgeturbo.o \
|
||||
putblock.o \
|
||||
putdirhead.o \
|
||||
readblock.o \
|
||||
readbuff.o \
|
||||
setnextfree.o \
|
||||
setgeosdisk.o \
|
||||
setoserror.o \
|
||||
writeblock.o \
|
||||
writebuff.o \
|
||||
verwriteblock.o
|
||||
|
||||
Reference in New Issue
Block a user