X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=GNUmakefile;h=511b0ad3c428e293753f8f959b289110d7261bba;hp=d2dbc8b8726dbf684da3a67839b9843ada7e0a81;hb=6819a099c49a569221321a46a52811aead65d20e;hpb=73f97e0d9dc83cad4aa7b53d900ea28390afed4f diff --git a/GNUmakefile b/GNUmakefile index d2dbc8b..511b0ad 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -3,7 +3,7 @@ obj = $(src:.c=.o) $(asmsrc:.asm=.o) dep = $(obj:.o=.d) bin = demo -asmsrc += font.asm +asmsrc += cspr/dbgfont.asm cspr/confont.asm inc = -I/usr/local/include -Isrc -Isrc/scr -Isrc/sdl -Ilibs -Ilibs/imago/src -Ilibs/mikmod/include warn = -pedantic -Wall -Wno-unused-variable -Wno-unused-function @@ -18,6 +18,9 @@ else sdl_ldflags = `sdl-config --libs` endif +.PHONY: all +all: data $(bin) + $(bin): $(obj) imago mikmod $(CC) -o $@ $(obj) $(LDFLAGS) @@ -51,8 +54,6 @@ clean: cleandep: rm -f $(dep) -tools/csprite/csprite: - $(MAKE) -C tools/csprite - -font.asm: data/font.png tools/csprite/csprite - tools/csprite/csprite -n cs_font -s 16x16 -r 288x32+32+17 -conv565 -nasm $< >$@ +.PHONY: data +data: + @tools/procdata