diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4e837c8 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CC=gcc +CFLAGS=-c -Wall -fno-stack-protector -m32 + +ASM=nasm +ASMFLAGS=-f elf + +BUILDFLAGS=-m elf_i386 + +all: arith_exp + +%.o: %.asm + $(ASM) $(ASMFLAGS) $< -o $@ +%.o: %.c %.h + $(CC) $(CFLAGS) $< -o $@ + +OBJMODULES= start.o calls.o stack.o arith_exp.o + +arith_exp: $(OBJMODULES) + $(LD) $(BUILDFLAGS) $^ -o $@ |