aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Bronson <naesten@gmail.com>2009-06-01 18:37:25 +0000
committerChristopher Li <sparse@chrisli.org>2009-07-18 05:30:10 +0000
commit8d86d0e51b64a5292d246e2ff6b18951e120d580 (patch)
tree2db3168936acb82dd7ef9e26ef05c45d82e33c4b
parent5d4c7fc7cc88175c1732313af4911cf494b14f89 (diff)
downloadsparse-8d86d0e51b64a5292d246e2ff6b18951e120d580.tar.gz
Have Makefile import local.mk if it exists.
This will allow users to override build settings without dirtying their trees, making life with `git stash' a bit easier. Signed-off-by: Samuel Bronson <naesten@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r--.gitignore4
-rw-r--r--Makefile10
2 files changed, 12 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 8ea8feb3..2a389d60 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,3 +33,7 @@ patches-*
# quilt's files
patches
series
+
+# local makefile
+local.mk
+
diff --git a/Makefile b/Makefile
index 15daba56..72f36861 100644
--- a/Makefile
+++ b/Makefile
@@ -10,9 +10,10 @@ LDFLAGS += -g
AR = ar
#
-# For debugging, uncomment the next one
+# For debugging, put this in local.mk:
+#
+# CFLAGS += -O0 -DDEBUG -g3 -gdwarf-2
#
-#CFLAGS += -O0 -DDEBUG -g3 -gdwarf-2
HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 && echo 'yes')
HAVE_GCC_DEP=$(shell touch .gcc-test.c && \
@@ -89,6 +90,11 @@ SED_PC_CMD = 's|@version@|$(VERSION)|g; \
s|@includedir@|$(INCLUDEDIR)|g'
+
+# Allow users to override build settings without dirtying their trees
+-include local.mk
+
+
all: $(PROGRAMS) sparse.pc
install: $(INST_PROGRAMS) $(LIBS) $(LIB_H) sparse.pc