1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-11 05:29:33 +00:00

redirect c64 to geos-cbm and apple2enh to geos-apple when given with SYS= on the command line, as suggested by oliver

This commit is contained in:
mrdudz 2021-05-16 18:23:23 +02:00
parent 53f0552fe7
commit 4ba3ff3048

View File

@ -3,6 +3,17 @@
# var. to build for another target system.
SYS ?= geos-cbm
# If SYS was given on the commandline, redirect "c64" to "geos-cbm" and
# "apple2enh" to "geos-apple"
ifeq "$(origin SYS)" "command line"
ifeq "$(SYS)" "c64"
override SYS = geos-cbm
endif
ifeq "$(SYS)" "apple2enh"
override SYS = geos-apple
endif
endif
# Just the usual way to find out if we're
# using cmd.exe to execute make rules.
ifneq ($(shell echo),)