summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
new file mode 100644
index 0000000..304356b
--- /dev/null
+++ b/Makefile.common
@@ -0,0 +1,11 @@
+%.o: %.asm
+ nasm -f elf $*.asm -o $@
+
+%.bin: %.asm
+ nasm -f bin $*.asm -o $@
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) $*.c -o $*.o
+ $(CC) -MM -MT $*.o $(CFLAGS) $*.c > $*.d
+
+