summaryrefslogtreecommitdiff
path: root/init/Makefile
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-04-08 18:24:00 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-04-08 18:24:00 +0200
commit5cb5188112476b82af1e9f0a8f61866becca31e0 (patch)
tree8b8f0561785e8d9b371e27458bda6707daa03254 /init/Makefile
downloadminilinux-5cb5188112476b82af1e9f0a8f61866becca31e0.tar.gz
Initial commit
Diffstat (limited to 'init/Makefile')
-rw-r--r--init/Makefile17
1 files changed, 17 insertions, 0 deletions
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