commit 8bd17292e898cfbd4dc2a75da3866887f35ff9e4 parent 9f607dc23016b8706e5085f469b5fa5dbbaa1859 Author: TheJackiMonster <thejackimonster@gmail.com> Date: Wed, 25 Aug 2021 12:31:08 +0200 Make build and install parameters more configurable Signed-off-by: TheJackiMonster <thejackimonster@gmail.com> Diffstat:
| M | Makefile | | | 15 | +++++++-------- |
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,6 +1,6 @@ SOURCE_DIR = src/ -INSTALL_DIR = /usr/local/ +INSTALL_DIR ?= /usr/local/ BINARY = messenger-cli SOURCES = messenger_cli.c @@ -8,12 +8,12 @@ HEADERS = LIBRARIES = gnunetchat -CC = gcc -LD = gcc -RM = rm +CC ?= gcc +LD ?= gcc +RM ?= rm -CFLAGS = -pedantic -Wall -Wextra -march=native -ggdb3 -LDFLAGS = +CFLAGS += -pedantic -Wall -Wextra -march=native -ggdb3 +LDFLAGS += DEBUGFLAGS = -O0 -D _DEBUG RELEASEFLAGS = -O2 -D NDEBUG -fwhole-program @@ -51,4 +51,4 @@ uninstall: clean: $(RM) -f $(BINARY) - $(RM) -f $(OBJECT_FILES) -\ No newline at end of file + $(RM) -f $(OBJECT_FILES)