X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=GNUmakefile;h=830297d3edbe4cf7d6780cafe4b67f631096ce28;hp=348256c824720566a67f1fb4e5fd6d6284328ab8;hb=45f6f46fe758d15aafccdb69ae837fc7d84ee466;hpb=f7789d3011a5ac2620a2f7732a389963f790fd85 diff --git a/GNUmakefile b/GNUmakefile index 348256c..830297d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,5 +1,5 @@ src = $(wildcard src/*.c) $(wildcard src/sdl/*.c) -obj = $(src:.c=.o) +obj = $(src:.c=.o) $(asmsrc:.asm=.o) dep = $(obj:.o=.d) bin = demo @@ -11,6 +11,9 @@ LDFLAGS = -Llibs/imago -Llibs/mikmod -limago -lmikmod `sdl-config --libs` -lm $(bin): $(obj) imago mikmod $(CC) -o $@ $(obj) $(LDFLAGS) +%.o: %.asm + nasm -f elf -o $@ $< + -include $(dep) %.d: %.c @@ -24,6 +27,11 @@ imago: mikmod: $(MAKE) -C libs/mikmod +.PHONY: cleanlibs +cleanlibs: + $(MAKE) -C libs/imago clean + $(MAKE) -C libs/mikmod clean + .PHONY: clean clean: rm -f $(obj) $(bin)