pinosaur
/
sped.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
abstracting
[sped.git]
/
makefile
diff --git
a/makefile
b/makefile
index
d83be28
..
18c299f
100644
(file)
--- a/
makefile
+++ b/
makefile
@@
-1,13
+1,17
@@
+CC=gcc
+CFLAGS=-m32 -no-pie
+ASM=nasm
+ASMFLAGS=-f elf32 -g
.PHONY: clean
make: sped
.PHONY: clean
make: sped
-
sped.o: sped
.asm
- nasm -f elf32 $^ -o $@
+
%.o: %
.asm
+ $(ASM) $(ASMFLAGS) -o $@ $^
-sped: sped.o
- ld -m elf_i386 $^ -o $@
+sped: sped.o
fileutils.o repl.o
+ $(CC) $(CFLAGS) -o $@ $^
clean:
rm sped *.o
clean:
rm sped *.o