summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Francoise <rfrancoise@debian.org>2012-06-10 17:42:59 +0200
committerPrzemyslaw Pawelczyk <przemoc@gmail.com>2012-06-11 11:29:17 +0200
commit80b891a307af77643dcf699afde846d382e76f6b (patch)
treed810db241eeffe8fcfe3dd997de4bc20e7e69f5d
parentb5823234dca864c5e9c225ab4cebcbdb6e870cce (diff)
Don't overwrite environment CFLAGS, use CPPFLAGS.
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7d73dc6..de5b84a 100644
--- a/Makefile
+++ b/Makefile
@@ -18,13 +18,13 @@
# Generic settings
#
CC = gcc
-CFLAGS = -g -Wall -pedantic -std=c99 -D_FILE_OFFSET_BITS=64 -O2
-LDFLAGS =
+CFLAGS += -g -Wall -pedantic -std=c99 -D_FILE_OFFSET_BITS=64 -O2
+LDFLAGS +=
INCLUDES =
INSTALL = install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
-COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
+COMPILE = $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
LINK = $(CC) $(CFLAGS) $(LDFLAGS)
OBJECTS = utils.o metastore.o metaentry.o
HEADERS = utils.h metastore.h metaentry.h