amiga_cyberspace

diff Makefile @ 0:e6fd57053627

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Jul 2017 08:17:34 +0300
parents
children b5d609c7161d
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Tue Jul 25 08:17:34 2017 +0300
     1.3 @@ -0,0 +1,21 @@
     1.4 +csrc = $(wildcard src/*.c)
     1.5 +ssrc = $(wildcard src/*.s)
     1.6 +obj = $(csrc:.c=.o) $(ssrc:.s=.o)
     1.7 +img = data/backdrop2.img
     1.8 +bin = cyberspace
     1.9 +
    1.10 +CC = vc
    1.11 +LDFLAGS = -lamiga
    1.12 +
    1.13 +$(bin): $(img) $(obj)
    1.14 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.15 +
    1.16 +%.o: %.s
    1.17 +	$(CC) $(ASFLAGS) -o $@ -c $<
    1.18 +
    1.19 +data/backdrop2.img: data/backdrop2.ilbm
    1.20 +	lbm2bin -i -4 -v -c 480x128 $<
    1.21 +
    1.22 +.PHONY: clean
    1.23 +clean:
    1.24 +	rm -f $(obj) $(bin) data/backdrop2.img