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/chess/Makefile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'apps/chess/Makefile') diff --git a/apps/chess/Makefile b/apps/chess/Makefile index e84f65f..bc65e93 100644 --- a/apps/chess/Makefile +++ b/apps/chess/Makefile @@ -1,16 +1,7 @@ # MIT License, Copyright (c) 2021 Marvin Borner -OBJS = chess.o +NAME = chess +OBJS = main.o +LIBS = -lgui -lc -all: $(OBJS) - @mkdir -p $(BUILD)/apps/chess/ - @$(LD) -o $(BUILD)/apps/chess/exec $(LDFLAGS) $^ -lgui -ltxt -lc -ifeq ($(CONFIG_STRIP), true) - @$(ST) --strip-all $(BUILD)/apps/chess/exec -endif - -clean: - @$(RM) -f $(OBJS) - -%.o: %.c - @$(CC) -c $(CFLAGS) $< -o $@ +include ../generic.mk -- cgit v1.2.3