megadrive_test2
diff Makefile @ 9:6ecf2f3ff05a
- better pad input handling
- switch between 28 and 30 vertical tiles by pressing C
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 24 Jun 2017 00:33:10 +0300 |
parents | ea70f3da150f |
children |
line diff
1.1 --- a/Makefile Thu Jun 22 07:44:48 2017 +0300 1.2 +++ b/Makefile Sat Jun 24 00:33:10 2017 +0300 1.3 @@ -2,6 +2,7 @@ 1.4 asrc = $(wildcard src/*.s) 1.5 aSsrc = $(wildcard src/*.S) 1.6 obj = $(asrc:.s=.o) $(aSsrc:.S=.o) $(csrc:.c=.o) 1.7 +dep = $(csrc:.c=.d) 1.8 1.9 name = test2 1.10 elf = $(name).elf 1.11 @@ -38,10 +39,19 @@ 1.12 tunnel.ppm: 1.13 tools/tunnel >$@ 1.14 1.15 +-include $(dep) 1.16 + 1.17 +%.d: %.c 1.18 + @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ 1.19 + 1.20 .PHONY: clean 1.21 clean: 1.22 rm -f $(obj) $(elf) $(bin) tun_data.h tunnel.ppm 1.23 1.24 +.PHONY: cleandep 1.25 +cleandep: 1.26 + rm -f $(dep) 1.27 + 1.28 .PHONY: run 1.29 run: $(bin) 1.30 gens-sdl $<