diff options
Diffstat (limited to 'apps/generic.mk')
-rw-r--r-- | apps/generic.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/generic.mk b/apps/generic.mk new file mode 100644 index 0000000..f2bc936 --- /dev/null +++ b/apps/generic.mk @@ -0,0 +1,17 @@ +# MIT License, Copyright (c) 2021 Marvin Borner + +NAME ?= unknown +LIBS ?= -lc + +all: $(OBJS) + @mkdir -p $(BUILD)/apps/$(NAME)/ + @$(LD) -o $(BUILD)/apps/$(NAME)/exec $(LDFLAGS) $^ $(LIBS) +ifeq ($(CONFIG_STRIP), true) + @$(ST) --strip-all $(BUILD)/apps/wm/exec +endif + +clean: + @$(RM) -f $(OBJS) + +%.o: %.c + @$(CC) -c $(CFLAGS) $< -o $@ |