1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

Avoid usage of cl65 for library build as it requires 'install'.

This commit is contained in:
Oliver Schmidt 2013-05-04 23:38:05 +02:00
parent 0e1d376305
commit 88648ce717
4 changed files with 12 additions and 9 deletions

View File

@ -54,7 +54,7 @@ clean: mostlyclean
else # TARGET
CFLAGS += -t $(TARGET) -Osir --create-dep $(@:.o=.d)
CFLAGS += -Osir
EXTZP = cbm510 \
cbm610 \
@ -157,7 +157,7 @@ $(TARGET): $$($1_DRVS)
$$($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)
@ -171,21 +171,24 @@ $(foreach drvtype,$(DRVTYPES),$(eval $(call DRVTYPE_template,$(drvtype))))
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 $@

View File

@ -13,4 +13,4 @@
# 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

View File

@ -1 +1 @@
CFLAGS += -Wa -Igeos-apple,-Igeos-common
AFLAGS += -I geos-apple -I geos-common

View File

@ -1 +1 @@
CFLAGS += -Wa -Igeos-cbm,-Igeos-common
AFLAGS += -I geos-cbm -I geos-common