else # TARGET
-CFLAGS += -t $(TARGET) -Osir --create-dep $(@:.o=.d)
+CFLAGS += -Osir
EXTZP = cbm510 \
cbm610 \
$$($1_STCPAT): $$($1_DRVPAT)
$$(CO) -o $$(@:.o=.s) --code-label _$$(subst -,_,$$(subst .,_,$$(<F))) $$<
- $$(CC) -c -t $$(TARGET) -o $$@ $$(@:.o=.s)
+ @$$(CA) -t $$(TARGET) -o $$@ $$(@:.o=.s)
OBJS += $$($1_STCS)
ifdef CC65_HOME
AR = $(CC65_HOME)/bin/ar65
- CC = $(CC65_HOME)/bin/cl65
+ CA = $(CC65_HOME)/bin/ca65
+ CC = $(CC65_HOME)/bin/cc65
CO = $(CC65_HOME)/bin/co65
LD = $(CC65_HOME)/bin/ld65
else
AR = ../bin/ar65
- CC = ../bin/cl65
+ CA = ../bin/ca65
+ CC = ../bin/cc65
CO = ../bin/co65
LD = ../bin/ld65
endif
../wrk/$(TARGET)/%.o: %.s | ../wrk/$(TARGET)
- $(CC) -c $(CFLAGS) -o $@ $<
+ $(CA) -t $(TARGET) $(AFLAGS) --create-dep $(@:.o=.d) -o $@ $<
../wrk/$(TARGET)/%.o: %.c | ../wrk/$(TARGET)
- $(CC) -c $(CFLAGS) -o $@ $<
+ $(CC) -t $(TARGET) $(CFLAGS) --create-dep $(@:.o=.d) -o $(@:.o=.s) $<
+ @$(CA) -t $(TARGET) -o $@ $(@:.o=.s)
../wrk/$(TARGET):
mkdir -p $@
# DYNAMIC_DD - determine default disk device at runtime (SpartaDOS only)
# needs DEFAULT_DEVICE to be defined, otherwise no effect
-CFLAGS += -Wa -DNUMDRVS=4,-DLINEBUF=80,-DUCASE_FILENAME=1,-DDEFAULT_DEVICE=1,-DDYNAMIC_DD=1
+AFLAGS += -D NUMDRVS=4 -D LINEBUF=80 -D UCASE_FILENAME=1 -D DEFAULT_DEVICE=1 -D DYNAMIC_DD=1