summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-11-14 03:30:52 +0100
committerMichal Idziorek <m.i@gmx.at>2014-11-14 03:30:52 +0100
commit03fb41e835ff4d10325351c1460e9445e4b572ca (patch)
treef9438c664583e5a1be5339fb5cbfc9bcc1895453 /Makefile.common
parent51c9f5abe06571845191b31f7442370ccb26f83a (diff)
improving build system
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
+
+