diff options
Diffstat (limited to 'kernel.soso/Makefile')
-rw-r--r-- | kernel.soso/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel.soso/Makefile b/kernel.soso/Makefile new file mode 100644 index 00000000..3826b0e9 --- /dev/null +++ b/kernel.soso/Makefile @@ -0,0 +1,19 @@ +CC=cc +LD=ld +CFLAGS=-nostdlib -nostdinc -fno-builtin -m32 -c +LDFLAGS=-Tlink.ld -m elf_i386 +ASFLAGS=-felf + +OBJ = $(patsubst %.c,%.o,$(wildcard *.c)) $(patsubst %.asm,%.o,$(wildcard *.asm)) + +kernel.bin: $(OBJ) + $(LD) $(LDFLAGS) -o kernel.bin $(OBJ) font/font.o + +%.o:%.c + $(CC) $(CFLAGS) $< -o $@ + +%.o:%.asm + nasm $(ASFLAGS) $< -o $@ + +clean: + -rm *.o kernel.bin |