diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-08-25 12:31:08 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-08-25 12:31:08 +0200 |
commit | 8bd17292e898cfbd4dc2a75da3866887f35ff9e4 (patch) | |
tree | 94ba0f0b0ee97cb39cfbe29d25be8cb58af40ad1 | |
parent | 9f607dc23016b8706e5085f469b5fa5dbbaa1859 (diff) |
Make build and install parameters more configurable
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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) |