amiga_cyberspace
annotate Makefile @ 1:b5d609c7161d
copper
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 26 Jul 2017 08:45:20 +0300 |
parents | e6fd57053627 |
children |
rev | line source |
---|---|
nuclear@0 | 1 csrc = $(wildcard src/*.c) |
nuclear@0 | 2 ssrc = $(wildcard src/*.s) |
nuclear@0 | 3 obj = $(csrc:.c=.o) $(ssrc:.s=.o) |
nuclear@0 | 4 img = data/backdrop2.img |
nuclear@0 | 5 bin = cyberspace |
nuclear@0 | 6 |
nuclear@0 | 7 CC = vc |
nuclear@0 | 8 LDFLAGS = -lamiga |
nuclear@0 | 9 |
nuclear@0 | 10 $(bin): $(img) $(obj) |
nuclear@0 | 11 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 12 |
nuclear@0 | 13 %.o: %.s |
nuclear@0 | 14 $(CC) $(ASFLAGS) -o $@ -c $< |
nuclear@0 | 15 |
nuclear@0 | 16 data/backdrop2.img: data/backdrop2.ilbm |
nuclear@0 | 17 lbm2bin -i -4 -v -c 480x128 $< |
nuclear@0 | 18 |
nuclear@0 | 19 .PHONY: clean |
nuclear@0 | 20 clean: |
nuclear@1 | 21 rm -f $(obj) $(bin) |
nuclear@1 | 22 #data/backdrop2.img |