X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=GNUmakefile;h=057ccfbcbc9d5f53ced075596454cca60360d66b;hp=511b0ad3c428e293753f8f959b289110d7261bba;hb=7cffbf057545fb303ad8f53e432ef42f7708e16d;hpb=c912e59b898fe1ac461a1468e4a2e1937de286d7 diff --git a/GNUmakefile b/GNUmakefile index 511b0ad..057ccfb 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,9 +1,11 @@ src = $(wildcard src/*.c) $(wildcard src/scr/*.c) $(wildcard src/sdl/*.c) +asmsrc = $(wildcard src/*.asm) obj = $(src:.c=.o) $(asmsrc:.asm=.o) dep = $(obj:.o=.d) bin = demo asmsrc += cspr/dbgfont.asm cspr/confont.asm +bindata = data/loading.img 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 @@ -27,6 +29,8 @@ $(bin): $(obj) imago mikmod %.o: %.asm nasm -f elf -o $@ $< +src/data.o: src/data.asm $(bindata) + -include $(dep) %.d: %.c