fiss

Friedel's Initialization and Service Supervision
Log | Files | Refs | LICENSE

commit 33f5c3a6530d27c11d7d5188fe6213368d35661f
parent 1310a940fb618edfe7c9c2433b1e890a874ebb49
Author: Friedel Schön <[email protected]>
Date:   Mon,  8 May 2023 23:17:52 +0200

adding "?=" to Makefile

Diffstat:
MMakefile | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -8,9 +8,9 @@ MAN_DIR := src/man ROFF_DIR := man # Compiler Options -CC := gcc -CCFLAGS := -I$(INCLUDE_DIR) -Wall -Wextra -g -LFLAGS := -fPIE +CC ?= gcc +CFLAGS ?= -I$(INCLUDE_DIR) -Wall -Wextra -g +LDFLAGS ?= -fPIE # Executable-specific flags finit_FLAGS := -static @@ -53,11 +53,11 @@ $(INTERMED_DIRS): # Object rules $(BUILD_DIR)/%.o: $(SRC_DIR)/%.c $(INCLUDE_FILES) | $(BUILD_DIR) - $(CC) -o $@ -c $(CCFLAGS) $< + $(CC) -o $@ -c $(CFLAGS) $< # Executables $(BIN_DIR)/%: $(EXEC_DIR)/%.c $(INCLUDE_FILES) $(OBJ_FILES) | $(BIN_DIR) - $(CC) -o $@ $(CCFLAGS) $< $(OBJ_FILES) $($(notdir $@)_FLAGS) $(LFLAGS) + $(CC) -o $@ $(CFLAGS) $< $(OBJ_FILES) $($(notdir $@)_FLAGS) $(LDFLAGS) $(BIN_DIR)/%: $(EXEC_DIR)/%.sh | $(BIN_DIR) cp $< $@ @@ -73,4 +73,4 @@ $(ROFF_DIR)/%: $(MAN_DIR)/%.roff | $(ROFF_DIR) # Debug compile_flags.txt: - echo $(CCFLAGS) | tr " " "\n" > compile_flags.txt -\ No newline at end of file + echo $(CFLAGS) | tr " " "\n" > compile_flags.txt +\ No newline at end of file