Moved the first couple of files from 'geos-cbm' to 'geos-common' which are believed to work as-is on Apple GEOS too.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5435 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
d5fa3e3153
commit
2bf9cd2ee1
13 changed files with 53 additions and 2 deletions
|
@ -16,6 +16,7 @@ LD = ../../src/ld65/ld65
|
|||
# List of shared directories
|
||||
SHAREDDIRS = cbm \
|
||||
common \
|
||||
geos-common \
|
||||
conio \
|
||||
dbg \
|
||||
em \
|
||||
|
@ -250,7 +251,7 @@ cbm610lib:
|
|||
|
||||
.PHONY: geos-cbmlib
|
||||
geos-cbmlib:
|
||||
for i in runtime geos-cbm common conio em joystick tgi zlib; do \
|
||||
for i in runtime geos-cbm geos-common common conio em joystick tgi zlib; do \
|
||||
$(MAKE) SYS=geos-cbm -C $$i || exit 1; \
|
||||
$(AR) a geos-cbm.lib $$i/*.o || exit 1; \
|
||||
done
|
||||
|
|
|
@ -48,7 +48,6 @@ DIRS = common \
|
|||
conio \
|
||||
devel \
|
||||
disk \
|
||||
dlgbox \
|
||||
file \
|
||||
graph \
|
||||
menuicon \
|
||||
|
|
51
libsrc/geos-common/Makefile
Normal file
51
libsrc/geos-common/Makefile
Normal file
|
@ -0,0 +1,51 @@
|
|||
#
|
||||
# makefile for CC65 runtime library
|
||||
#
|
||||
|
||||
.SUFFIXES: .o .s .c
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
# Programs and flags
|
||||
|
||||
SYS = geos-cbm
|
||||
|
||||
AS = ../../src/ca65/ca65
|
||||
CC = ../../src/cc65/cc65
|
||||
LD = ../../src/ld65/ld65
|
||||
|
||||
AFLAGS = -t $(SYS) --forget-inc-paths -I../$(SYS) -I../../asminc
|
||||
CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
# Rules
|
||||
|
||||
%.o: %.c
|
||||
@$(CC) -o $(notdir $(*).s) $(CFLAGS) $<
|
||||
@$(AS) -o $@ $(AFLAGS) $(*).s
|
||||
|
||||
%.o: %.s
|
||||
@$(AS) -g -o $@ $(AFLAGS) $<
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
# Directories
|
||||
|
||||
DIRS = dlgbox
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
# Directives
|
||||
|
||||
include $(addsuffix /Makefile, $(DIRS))
|
||||
vpath %.c $(DIRS)
|
||||
vpath %.s $(DIRS)
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
# Targets
|
||||
|
||||
.PHONY: all clean zap
|
||||
|
||||
all: $(C_OBJS) $(S_OBJS)
|
||||
|
||||
clean:
|
||||
@$(RM) $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
|
||||
|
||||
zap: clean
|
Loading…
Add table
Reference in a new issue