mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
Added make rules that build the overlay sample programs.
Fixes half of bug issue 178 (on GitHub).
This commit is contained in:
parent
a79b17515e
commit
25cf239d80
@ -44,7 +44,7 @@ endif
|
|||||||
C1541 = c1541
|
C1541 = c1541
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# System dependent settings
|
# System-dependent settings
|
||||||
|
|
||||||
# The Apple machines need the start address adjusted when using TGI
|
# The Apple machines need the start address adjusted when using TGI
|
||||||
LDFLAGS_mandelbrot_apple2 = --start-addr 0x4000
|
LDFLAGS_mandelbrot_apple2 = --start-addr 0x4000
|
||||||
@ -81,10 +81,10 @@ LDFLAGS_tgidemo_atari = -D __RESERVED_MEMORY__=0x2000
|
|||||||
.PRECIOUS: %.o
|
.PRECIOUS: %.o
|
||||||
|
|
||||||
.o:
|
.o:
|
||||||
@$(LD) $(LDFLAGS_$(basename $@)_$(SYS)) -o $@ -t $(SYS) -m $@.map $^ $(CLIB)
|
@$(LD) $(LDFLAGS_$(@F)_$(SYS)) -o $@ -t $(SYS) -m $@.map $^ $(CLIB)
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# List of executables. This list could be made target dependent by checking
|
# List of executables. This list could be made target-dependent by checking
|
||||||
# $(SYS).
|
# $(SYS).
|
||||||
|
|
||||||
EXELIST = ascii \
|
EXELIST = ascii \
|
||||||
@ -103,13 +103,23 @@ EXELIST = ascii \
|
|||||||
tgidemo
|
tgidemo
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Rules how to make each one of the binaries
|
# Rules to make the binaries
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(EXELIST)
|
all: $(EXELIST)
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Rule to make a disk with all samples. Needs the c1541 program that comes
|
# Overlay rules. Overlays need special ld65 configuration files. Also, the
|
||||||
|
# overlay file-names are shortenned to fit the Atari's 8.3-character limit.
|
||||||
|
|
||||||
|
multdemo: multidemo.o
|
||||||
|
@$(LD) -o $@ -C $(SYS)-overlay.cfg -m $@.map $^ $(CLIB)
|
||||||
|
|
||||||
|
ovrldemo: overlaydemo.o
|
||||||
|
@$(LD) -o $@ -C $(SYS)-overlay.cfg -m $@.map $^ $(CLIB)
|
||||||
|
|
||||||
|
# --------------------------------------------------------------------------
|
||||||
|
# Rule to make a CBM disk with all samples. Needs the c1541 program that comes
|
||||||
# with the VICE emulator.
|
# with the VICE emulator.
|
||||||
|
|
||||||
.PHONY: disk
|
.PHONY: disk
|
||||||
@ -125,7 +135,7 @@ samples.d64: all
|
|||||||
done
|
done
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Cleanup rules
|
# Clean-up rules
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
@ -134,3 +144,4 @@ clean:
|
|||||||
.PHONY: zap
|
.PHONY: zap
|
||||||
zap: clean
|
zap: clean
|
||||||
$(RM) $(EXELIST) samples.d64
|
$(RM) $(EXELIST) samples.d64
|
||||||
|
$(RM) multdemo.? ovrldemo.?
|
||||||
|
@ -11,6 +11,7 @@ Please note:
|
|||||||
the programs manually.
|
the programs manually.
|
||||||
|
|
||||||
* The makefile specifies the C64 as the default target platform, because all
|
* The makefile specifies the C64 as the default target platform, because all
|
||||||
|
but one
|
||||||
of the programs run on this platform. When compiling for another platform,
|
of the programs run on this platform. When compiling for another platform,
|
||||||
you will have to change the line that specifies the target system at the
|
you will have to change the line that specifies the target system at the
|
||||||
top of the makefile.
|
top of the makefile.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user