mirror of
https://github.com/cc65/cc65.git
synced 2025-02-26 23:30:03 +00:00
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
@ -16,6 +16,7 @@ LD = ../../src/ld65/ld65
|
|||||||
# List of shared directories
|
# List of shared directories
|
||||||
SHAREDDIRS = cbm \
|
SHAREDDIRS = cbm \
|
||||||
common \
|
common \
|
||||||
|
geos-common \
|
||||||
conio \
|
conio \
|
||||||
dbg \
|
dbg \
|
||||||
em \
|
em \
|
||||||
@ -250,7 +251,7 @@ cbm610lib:
|
|||||||
|
|
||||||
.PHONY: geos-cbmlib
|
.PHONY: geos-cbmlib
|
||||||
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; \
|
$(MAKE) SYS=geos-cbm -C $$i || exit 1; \
|
||||||
$(AR) a geos-cbm.lib $$i/*.o || exit 1; \
|
$(AR) a geos-cbm.lib $$i/*.o || exit 1; \
|
||||||
done
|
done
|
||||||
|
@ -48,7 +48,6 @@ DIRS = common \
|
|||||||
conio \
|
conio \
|
||||||
devel \
|
devel \
|
||||||
disk \
|
disk \
|
||||||
dlgbox \
|
|
||||||
file \
|
file \
|
||||||
graph \
|
graph \
|
||||||
menuicon \
|
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…
x
Reference in New Issue
Block a user