summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)