summaryrefslogtreecommitdiff
path: root/kernel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/Makefile')
-rw-r--r--kernel/Makefile39
1 files changed, 0 insertions, 39 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
deleted file mode 100644
index 407c4bb..0000000
--- a/kernel/Makefile
+++ /dev/null
@@ -1,39 +0,0 @@
-include ../defaults.mk
-
-VPATH := ../lib
-
-TARGET := kernel.os
-.DEFAULT: $(TARGET)
-
-CFLAGS += -Wno-unused-const-variable -Wno-unused-function -fvisibility=hidden -g
-
-LIBDIRS += -L$(dir $(shell $(CC) -print-libgcc-file-name))
-LDSCRIPT := kernel.ld
-LDFLAGS += -z max-page-size=4096 --export-dynamic
-LOADLIBES := -lgcc
-
-SOBJS :=
-GOBJS := entry.o kprint.o serial.o port.o main.o memory.o \
- memset.o memcpy.o memmove.o memcmp.o cpu.o exceptions.o \
- panic.o
-IOBJS :=
-
-$(SOBJS): CFLAGS += -fPIC
-# __attribute__((interrupt)) requires -mgeneral-regs-only
-$(IOBJS): CFLAGS += -mgeneral-regs-only
-$(IOBJS) $(GOBJS): CFLAGS += -mcmodel=kernel
-
-OBJS := $(SOBJS) $(GOBJS) $(IOBJS)
-DEPS := $(patsubst %.o,%.d,$(OBJS))
-
-$(TARGET): $(LDSCRIPT) $(MAKEFILE_LIST)
-$(TARGET): $(OBJS)
-
-CLEANLIST := $(wildcard $(OBJS) $(TARGET))
-DCLEANLIST := $(wildcard $(DEPS))
-
-include ../rules.mk
--include $(DEPS)
-
-.DEFAULT: $(TARGET)
-