Top level makefile. Also make clean

This commit is contained in:
thomas committed 2018-03-19 20:29:40 +01:00
1 parent 39b43d825a
commit a8fbcd9e03
2 files changed
+28

No files matched your search

+11
View File
@@ -15,5 +15,16 @@ all: kernel
kernel: LDFLAGS += -n -nostdlib -T Link.ld
kernel: $(OBJ)
$(LINK.c) $^ -o $@
# Copy kernel to sysroot
/opt/sysroot/kernel: kernel
mkdir -p /opt/sysroot
cp kernel /opt/sysroot/kernel
install: /opt/sysroot/kernel
clean:
rm -rf $(OBJ) kernel
.PHONY: install