aboutsummaryrefslogtreecommitdiff
path: root/apps/wm/Makefile
diff options
context:
space:
mode:
authorMarvin Borner2021-05-20 20:19:05 +0200
committerMarvin Borner2021-05-20 20:19:05 +0200
commit519a1de7d9fe809efc4077933fabbe93a8da9439 (patch)
treebe9d636e48036b42c8c6cc490b5f53db8b4f3a2e /apps/wm/Makefile
parent59de0af0cff96182d3e30ab453bc9763a6635947 (diff)
More generic makefile layout
Diffstat (limited to 'apps/wm/Makefile')
-rw-r--r--apps/wm/Makefile17
1 files changed, 4 insertions, 13 deletions
diff --git a/apps/wm/Makefile b/apps/wm/Makefile
index 8fb0096..556d526 100644
--- a/apps/wm/Makefile
+++ b/apps/wm/Makefile
@@ -1,16 +1,7 @@
# MIT License, Copyright (c) 2021 Marvin Borner
-OBJS = wm.o
+NAME = wm
+OBJS = main.o
+LIBS = -lgui -ltxt -lc
-all: $(OBJS)
- @mkdir -p $(BUILD)/apps/wm/
- @$(LD) -o $(BUILD)/apps/wm/exec $(LDFLAGS) $^ -lgui -ltxt -lc
-ifeq ($(CONFIG_STRIP), true)
- @$(ST) --strip-all $(BUILD)/apps/wm/exec
-endif
-
-clean:
- @$(RM) -f $(OBJS)
-
-%.o: %.c
- @$(CC) -c $(CFLAGS) $< -o $@
+include ../generic.mk