amiga_cyberspace

annotate Makefile @ 0:e6fd57053627

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Jul 2017 08:17:34 +0300
parents
children b5d609c7161d
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@0 21 rm -f $(obj) $(bin) data/backdrop2.img