diff options
-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) |