pinosaur
/
sped.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
deleting line
[sped.git]
/
makefile
diff --git
a/makefile
b/makefile
index
64a6613
..
e77e686
100644
(file)
--- a/
makefile
+++ b/
makefile
@@
-1,15
+1,17
@@
CC=gcc
CC=gcc
-CFLAGS=-m32 -no-pie -g
+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
- $(CC) $(CFLAGS)
$^ -o $@
+sped: sped.o
fileutils.o repl.o utils.o
+ $(CC) $(CFLAGS)
-o $@ $^
clean:
rm sped *.o
clean:
rm sped *.o