summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-05 09:30:29 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-05 09:30:29 -0800
commit10e64f0e176cc31540b2c9a0ec9154dfdf1eb8a6 (patch)
treef2a8c08560967d5e23b4d1972c5318a76424d649 /Makefile
parentb435166dc3555fbaf9f3d52815650cb96b5df27e (diff)
downloadsubsurface-10e64f0e176cc31540b2c9a0ec9154dfdf1eb8a6.tar.gz
Make it easier to pass macro definitions from make
This small change to the Makefile allows you to call make CLCFLAGS=-DDEBUG or some other define directly from the command line. It gets added to the CFLAGS without overwriting the CFLAGS. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a20d32061..81e4014fd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
VERSION=2.1
CC=gcc
-CFLAGS=-Wall -Wno-pointer-sign -g
+CFLAGS=-Wall -Wno-pointer-sign -g $(CLCFLAGS)
INSTALL=install
PKGCONFIG=pkg-config
XML2CONFIG=xml2-config