Moved the target configurations into separate files
git-svn-id: svn://svn.cc65.org/cc65/trunk@416 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -11,6 +11,12 @@ CFLAGS = -g -O2 -Wall -I$(COMMON) $(CDEFS)
|
||||
CC=gcc
|
||||
LDFLAGS=
|
||||
|
||||
# Perl script for config file conversion
|
||||
CVT=cfg/cvt-cfg.pl
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# List of all object files
|
||||
|
||||
OBJS = bin.o \
|
||||
binfmt.o \
|
||||
config.o \
|
||||
@@ -29,7 +35,23 @@ OBJS = bin.o \
|
||||
objfile.o \
|
||||
scanner.o \
|
||||
segments.o \
|
||||
tgtcfg.o
|
||||
tgtcfg.o
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# List of all config includes
|
||||
|
||||
INCS = apple2.inc \
|
||||
atari.inc \
|
||||
c64.inc \
|
||||
c128.inc \
|
||||
cbm610.inc \
|
||||
geos.inc \
|
||||
none.inc \
|
||||
pet.inc \
|
||||
plus4.inc
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
LIBS = $(COMMON)/common.a
|
||||
|
||||
@@ -47,14 +69,14 @@ endif
|
||||
|
||||
|
||||
|
||||
ld65: $(OBJS) $(LIBS)
|
||||
ld65: $(INCS) $(OBJS) $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *~ core *.map
|
||||
|
||||
zap: clean
|
||||
rm -f *.o $(EXECS) .depend
|
||||
zap: clean
|
||||
rm -f *.o $(INCS) $(EXECS) .depend
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
@@ -63,6 +85,36 @@ zap: clean
|
||||
.PHONY: depend dep
|
||||
depend dep: $(OBJS:.o=.c)
|
||||
@echo "Creating dependency information"
|
||||
$(CC) -I$(COMMON) -MM $^ > .depend
|
||||
$(CC) -I$(COMMON) -MM -MG $^ > .depend
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Rules to make config includes
|
||||
|
||||
apple2.inc: cfg/apple2.cfg
|
||||
@$(CVT) $< $@ CfgApple2
|
||||
|
||||
atari.inc: cfg/atari.cfg
|
||||
@$(CVT) $< $@ CfgAtari
|
||||
|
||||
c64.inc: cfg/c64.cfg
|
||||
@$(CVT) $< $@ CfgC64
|
||||
|
||||
c128.inc: cfg/c128.cfg
|
||||
@$(CVT) $< $@ CfgC128
|
||||
|
||||
cbm610.inc: cfg/cbm610.cfg
|
||||
@$(CVT) $< $@ CfgCBM610
|
||||
|
||||
geos.inc: cfg/geos.cfg
|
||||
@$(CVT) $< $@ CfgGeos
|
||||
|
||||
none.inc: cfg/none.cfg
|
||||
@$(CVT) $< $@ CfgNone
|
||||
|
||||
pet.inc: cfg/pet.cfg
|
||||
@$(CVT) $< $@ CfgPET
|
||||
|
||||
plus4.inc: cfg/plus4.cfg
|
||||
@$(CVT) $< $@ CfgPlus4
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user