summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-08-25 12:31:08 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2021-08-25 12:31:08 +0200
commit8bd17292e898cfbd4dc2a75da3866887f35ff9e4 (patch)
tree94ba0f0b0ee97cb39cfbe29d25be8cb58af40ad1
parent9f607dc23016b8706e5085f469b5fa5dbbaa1859 (diff)
Make build and install parameters more configurableHEADmaster
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 364c1fc..d487a68 100644
--- 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)