.c.o:
@echo $<
- @$(CC) -Oirs -T --codesize 500 -g -t $(SYS) -I../include/ $<
+ @$(CC) -Oirs -T --forget-inc-paths --codesize 500 -g -t $(SYS) -I../include/ $<
@$(AS) $(basename $<).s
.s.o:
# --------------------------------------------------------------------------
# Rules how to make each one of the binaries
-EXELIST=ascii fire hello mousedemo nachtm plasma sieve tgidemo
+EXELIST=ascii fire gunzip65 hello mousedemo nachtm plasma sieve tgidemo
.PHONY: all
all: $(EXELIST)
-ascii: $(CRT0) ascii.o $(CLIB)
- @$(LD) -t $(SYS) -m ascii.map -Ln ascii.lbl -o $@ $^
+ascii: $(CRT0) ascii.o $(CLIB)
+ @$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^
-fire: $(CRT0) fire.o $(CLIB)
- @$(LD) -t $(SYS) -m fire.map -Ln fire.lbl -o $@ $^
+fire: $(CRT0) fire.o $(CLIB)
+ @$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^
-hello: $(CRT0) hello.o $(CLIB)
- @$(LD) -t $(SYS) -m hello.map -Ln hello.lbl -o $@ $^
+gunzip65: $(CRT0) gunzip65.o $(CLIB)
+ @$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^
+
+hello: $(CRT0) hello.o $(CLIB)
+ @$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^
+
+mandelbrot: $(CRT0) mandelbrot.o $(CLIB)
+ @$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^
mousedemo: $(CRT0) mousedemo.o $(CLIB)
- @$(LD) -t $(SYS) -m mousedemo.map -Ln mousedemo.lbl -o $@ $^
+ @$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^
-nachtm: $(CRT0) nachtm.o $(CLIB)
- @$(LD) -t $(SYS) -vm -m nachtm.map -Ln nachtm.lbl -o $@ $^
+nachtm: $(CRT0) nachtm.o $(CLIB)
+ @$(LD) -t $(SYS) -m $(basename $@).map -Ln $(basename $@).lbl -o $@ $^
-plasma: $(CRT0) plasma.o $(CLIB)
- @$(LD) -t $(SYS) -m plasma.map -Ln nachtm.lbl -o $@ $^
+plasma: $(CRT0) plasma.o $(CLIB)
+ @$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^
-sieve: $(CRT0) sieve.o $(CLIB)
- @$(LD) -t $(SYS) -m sieve.map -Ln sieve.lbl -o $@ $^
+sieve: $(CRT0) sieve.o $(CLIB)
+ @$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^
-tgidemo: $(CRT0) tgidemo.o $(CLIB)
- @$(LD) -t $(SYS) -m tgidemo.map -Ln tgidemo.lbl -o $@ $^
+tgidemo: $(CRT0) tgidemo.o $(CLIB)
+ @$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^
# --------------------------------------------------------------------------
.PHONY: clean
clean:
- rm -f *~ *.map *.o *.s *.lbl
+ $(RM) *~ *.map *.o *.s *.lbl
.PHONY: zap
zap: clean
- rm -f $(EXELIST) samples.d64
+ $(RM) $(EXELIST) samples.d64