megadrive_test2

diff Makefile @ 5:ea70f3da150f

color cycling tunnel
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 20 Jun 2017 06:08:58 +0300
parents 2560a8be8cb8
children 6ecf2f3ff05a
line diff
     1.1 --- a/Makefile	Mon Jun 19 08:02:51 2017 +0300
     1.2 +++ b/Makefile	Tue Jun 20 06:08:58 2017 +0300
     1.3 @@ -9,8 +9,9 @@
     1.4  
     1.5  warn = -pedantic -Wall
     1.6  dbg = -g
     1.7 +opt = -O2
     1.8  def = -DGAMENAME=\"testgame\" -DVERSTR=\"01\" -D__NO_CTYPE
     1.9 -inc = -Isrc -Isrc/libc
    1.10 +inc = -I. -Isrc -Isrc/libc
    1.11  
    1.12  tool_prefix = m68k-linux-gnu-
    1.13  
    1.14 @@ -28,12 +29,18 @@
    1.15  $(bin): $(elf)
    1.16  	$(OBJCOPY) -O binary $< $@
    1.17  
    1.18 -$(elf): $(obj)
    1.19 +$(elf): tun_data.h $(obj)
    1.20  	$(LD) -o $@ $(obj) -Map link.map $(LDFLAGS)
    1.21  
    1.22 +tun_data.h: tunnel.ppm
    1.23 +	cat $< | tools/ppm2md tun_ >$@
    1.24 +
    1.25 +tunnel.ppm:
    1.26 +	tools/tunnel >$@
    1.27 +
    1.28  .PHONY: clean
    1.29  clean:
    1.30 -	rm -f $(obj) $(elf) $(bin)
    1.31 +	rm -f $(obj) $(elf) $(bin) tun_data.h tunnel.ppm
    1.32  
    1.33  .PHONY: run
    1.34  run: $(bin)