summaryrefslogtreecommitdiff
path: root/init/Makefile
blob: 53a64ea9698b3b9df6196e5643ab2875b2576eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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