From 519a1de7d9fe809efc4077933fabbe93a8da9439 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 20 May 2021 20:19:05 +0200 Subject: More generic makefile layout --- apps/init/Makefile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'apps/init/Makefile') diff --git a/apps/init/Makefile b/apps/init/Makefile index 68038d0..aa0ac8b 100644 --- a/apps/init/Makefile +++ b/apps/init/Makefile @@ -1,16 +1,7 @@ # MIT License, Copyright (c) 2021 Marvin Borner -OBJS = init.o +NAME = init +OBJS = main.o +LIBS = -lc -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 $@ +include ../generic.mk -- cgit v1.2.3