From 03fb41e835ff4d10325351c1460e9445e4b572ca Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 14 Nov 2014 03:30:52 +0100 Subject: improving build system --- Makefile.common | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Makefile.common (limited to 'Makefile.common') 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 + + -- cgit v1.2.3