about summary refs log tree commit diff stats
path: root/templates/c
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 01:15:39 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 01:15:39 +0200
commit90a1bd9dc21fea8a1ba8532d2cba957b7f14bec5 (patch)
tree23832b309922ece496faf484975ff5b446bcb965 /templates/c
parentfeat(common/init): Add a shell script, that populates variables (diff)
downloadflake-templates-90a1bd9dc21fea8a1ba8532d2cba957b7f14bec5.tar.gz
flake-templates-90a1bd9dc21fea8a1ba8532d2cba957b7f14bec5.zip
fix(templates/c): Make the `makefile` more standards complying
Diffstat (limited to 'templates/c')
-rw-r--r--templates/c/makefile (renamed from templates/c/Makefile)3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/c/Makefile b/templates/c/makefile
index 4a37b4b..e5577c4 100644
--- a/templates/c/Makefile
+++ b/templates/c/makefile
@@ -17,6 +17,9 @@ LIBS :=
 ALL_CFLAGS  := -O3 -MMD -Wall -Wextra -Wno-unused-parameter $(CFLAGS) $(CPPFLAGS)
 ALL_LDFLAGS := $(addprefix -l,$(LIBS)) -L $(LD_LIBRARY_PATH) $(LDFLAGS)
 
+default: all
+
+all: $(BIN_NAME)
 
 $(BIN_NAME): $(OBJ)
 	$(CC) $(addprefix $(BUILD_DIR),$(notdir $(OBJ))) -o $(addprefix $(BUILD_DIR),$(notdir $(BIN_NAME))) $(ALL_CFLAGS) $(ALL_LDFLAGS)