aboutsummaryrefslogtreecommitdiff
path: root/apps/init/Makefile
blob: 68038d073042093eb20a31aad4553d730cb99c7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# MIT License, Copyright (c) 2021 Marvin Borner

OBJS = init.o

all: $(OBJS)
	@mkdir -p $(BUILD)/apps/init/
	@$(LD) -o $(BUILD)/apps/init/exec $(LDFLAGS) $^ -lc
ifeq ($(CONFIG_STRIP), true)
	@$(ST) --strip-all $(BUILD)/apps/init/exec
endif

clean:
	@$(RM) -f $(OBJS)

%.o: %.c
	@$(CC) -c $(CFLAGS) $< -o $@