X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=makefile;h=e77e68612188192afc7a3f569e2910a437bec51c;hb=6cf67300c03d92a9cc0c5888b33cdb21a852eb69;hp=64a6613ae309f84d4794546f24e2da6a437a60a1;hpb=17adbf435e9341831aa580404d18d8caa7448ce2;p=sped.git diff --git a/makefile b/makefile index 64a6613..e77e686 100644 --- a/makefile +++ b/makefile @@ -1,15 +1,17 @@ CC=gcc -CFLAGS=-m32 -no-pie -g +CFLAGS=-m32 -no-pie +ASM=nasm +ASMFLAGS=-f elf32 -g .PHONY: clean make: sped -sped.o: sped.asm - nasm -f elf32 $^ -o $@ +%.o: %.asm + $(ASM) $(ASMFLAGS) -o $@ $^ -sped: sped.o - $(CC) $(CFLAGS) $^ -o $@ +sped: sped.o fileutils.o repl.o utils.o + $(CC) $(CFLAGS) -o $@ $^ clean: rm sped *.o