prepared lib makefile. skip building the library while compiler support is not there

This commit is contained in:
mrdudz
2025-06-22 21:43:21 +02:00
parent f6a3f66f0b
commit 44672e6281

View File

@@ -21,6 +21,7 @@ CBMS = c128 \
GEOS = geos-apple \ GEOS = geos-apple \
geos-cbm geos-cbm
# FIXME: c65 (and perhaps mega65?) should be moved up to CBMS maybe
TARGETS = agat \ TARGETS = agat \
apple2 \ apple2 \
apple2enh \ apple2enh \
@@ -30,6 +31,7 @@ TARGETS = agat \
atari5200 \ atari5200 \
atari7800 \ atari7800 \
atmos \ atmos \
c65 \
creativision \ creativision \
$(CBMS) \ $(CBMS) \
$(GEOS) \ $(GEOS) \
@@ -45,7 +47,8 @@ TARGETS = agat \
sim65c02 \ sim65c02 \
supervision \ supervision \
sym1 \ sym1 \
telestrat telestrat \
mega65
TARGETTEST = none \ TARGETTEST = none \
sim6502 \ sim6502 \
@@ -193,6 +196,11 @@ ifeq ($(TARGET),$(filter $(TARGET),$(GEOS)))
SRCDIRS += $(addprefix geos-common/,$(GEOSDIRS)) SRCDIRS += $(addprefix geos-common/,$(GEOSDIRS))
endif endif
ifeq ($(TARGET),c65)
# FIXME: the compiler does not work for 4510 yet
else ifeq ($(TARGET),mega65)
# FIXME: the compiler does not work for 45GS02 yet
else
SRCDIRS += common \ SRCDIRS += common \
conio \ conio \
dbg \ dbg \
@@ -203,6 +211,7 @@ SRCDIRS += common \
serial \ serial \
tgi \ tgi \
zlib zlib
endif
vpath %.s $(SRCDIRS) vpath %.s $(SRCDIRS)
vpath %.c $(SRCDIRS) vpath %.c $(SRCDIRS)