From 5cb5188112476b82af1e9f0a8f61866becca31e0 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 8 Apr 2019 18:24:00 +0200 Subject: Initial commit --- init/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 init/Makefile (limited to 'init/Makefile') diff --git a/init/Makefile b/init/Makefile new file mode 100644 index 0000000..53a64ea --- /dev/null +++ b/init/Makefile @@ -0,0 +1,17 @@ +CC = gcc +CFLAGS = +LDFLAGS = --static +OUTPUT = init.elf + +SRC = init.c + +build: init.o + $(CC) $(CFLAGS) $(SRC) $(LDFLAGS) -o $(OUTPUT) + +.PHONY: copy clean + +clean: + rm -df $(OUTPUT) + +copy: + objcopy -O binary $(OUTPUT) ../root/init -- cgit v1.2.3