memory allocing
[sped.git] / makefile
index d83be28..d031d20 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,13 +1,17 @@
+CC=gcc
+CFLAGS=-m32 -no-pie
+ASM=nasm
+ASMFLAGS=-f elf32 -g -F dwarf
 
 .PHONY: clean
 
 make: sped
 
 sped.o: sped.asm
-       nasm -f elf32 $^ -o $@
+       $(ASM) $(ASMFLAGS) -g $^ -o $@
 
 sped: sped.o
-       ld -m elf_i386 $^ -o $@
+       $(CC) $(CFLAGS) $^ -o $@
 
 clean:
        rm sped *.o