pinosaur
/
sped.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
memory allocing
[sped.git]
/
makefile
diff --git
a/makefile
b/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
.PHONY: clean
make: sped
sped.o: sped.asm
-
nasm -f elf32
$^ -o $@
+
$(ASM) $(ASMFLAGS) -g
$^ -o $@
sped: sped.o
sped: sped.o
-
ld -m elf_i386
$^ -o $@
+
$(CC) $(CFLAGS)
$^ -o $@
clean:
rm sped *.o
clean:
rm sped *.o