#Define DEPTH before including this file .PHONY: clean .IGNORE: clean GCC = gcc CPP = gpp ASM = nasm CFLAGS = -fomit-frame-pointer -ffreestanding -fno-stack-protector -fno-builtin -nostdlib -m32 -Wall -Wextra -O2 -I$(DEPTH)include BE_VERBOSE=0 .c.o: $(GCC) $(CFLAGS) -c $*.c -o $*.o .SUFFIXES: .sys .c .c.sys: $(GCC) $(CFLAGS) -DMODULE -fno-common -c $*.c -o $*.sys #nasm assembly files .asm: $(ASM) -f bin $*.asm -o @echo "Compiling $*.asm" .s.o: $(ASM) -f elf $*.s -o $*.o @echo "Compiling $*.s" #gas assembly files .S.o: $(GCC) -ffreestanding -fleading-underscore -fno-builtin -m32 -c $*.S -o $*.o @echo "Compiling $*.S"