libgnunetchat

library for GNUnet Messenger
Log | Files | Refs | README | LICENSE

commit aa9014fd46c64142fb087d7a7288f5347532e2fe
parent e661a0773351cd8416f47bd44a62485462c1b17b
Author: TheJackiMonster <thejackimonster@gmail.com>
Date:   Sat, 30 Oct 2021 15:32:51 +0200

Updated variables in makefile

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>

Diffstat:
MMakefile | 23+++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/Makefile b/Makefile @@ -26,9 +26,9 @@ LIBRARIES = gnunetarm\ gnunetregex\ gnunetutil -CC ?= gcc -LD ?= gcc -RM ?= rm +GNU_CC ?= gcc +GNU_LD ?= gcc +GNU_RM ?= rm CFLAGS += -fPIC -pedantic -Wall -Wextra -march=native -ggdb3 LDFLAGS += -shared @@ -53,16 +53,16 @@ release: CFLAGS += $(RELEASEFLAGS) release: $(LIBRARY) %.o: %.c - $(CC) $(CFLAGS) -c $< -o $@ -I $(INCLUDE_DIR) $(LIBRARY_FLAGS) + $(GNU_CC) $(CFLAGS) -c $< -o $@ -I $(INCLUDE_DIR) $(LIBRARY_FLAGS) $(LIBRARY): $(OBJECT_FILES) - $(LD) $(LDFLAGS) $^ -o $@ $(LIBRARY_FLAGS) + $(GNU_LD) $(LDFLAGS) $^ -o $@ $(LIBRARY_FLAGS) check: $(TEST_CASES) ./$(TEST_CASES) %.test: %.c - $(CC) $(CFLAGS) $< -o $@ -I $(INCLUDE_DIR) $(TEST_FLAGS) + $(GNU_CC) $(CFLAGS) $< -o $@ -I $(INCLUDE_DIR) $(TEST_FLAGS) .PHONY: install @@ -74,12 +74,12 @@ install: .PHONY: uninstall uninstall: - $(RM) -f $(addsuffix $(HEADERS), $(addprefix $(INSTALL_DIR), include/gnunet/)) - $(RM) -f $(addsuffix $(LIBRARY), $(addprefix $(INSTALL_DIR), lib/)) + $(GNU_RM) -f $(addsuffix $(HEADERS), $(addprefix $(INSTALL_DIR), include/gnunet/)) + $(GNU_RM) -f $(addsuffix $(LIBRARY), $(addprefix $(INSTALL_DIR), lib/)) .PHONY: clean clean: - $(RM) -f $(LIBRARY) - $(RM) -f $(OBJECT_FILES) - $(RM) -f $(TEST_CASES) -\ No newline at end of file + $(GNU_RM) -f $(LIBRARY) + $(GNU_RM) -f $(OBJECT_FILES) + $(GNU_RM) -f $(TEST_CASES)