diff options
author | Samuel Bronson <naesten@gmail.com> | 2009-06-01 18:37:25 +0000 |
---|---|---|
committer | Christopher Li <sparse@chrisli.org> | 2009-07-18 05:30:10 +0000 |
commit | 8d86d0e51b64a5292d246e2ff6b18951e120d580 (patch) | |
tree | 2db3168936acb82dd7ef9e26ef05c45d82e33c4b | |
parent | 5d4c7fc7cc88175c1732313af4911cf494b14f89 (diff) | |
download | sparse-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-- | .gitignore | 4 | ||||
-rw-r--r-- | Makefile | 10 |
2 files changed, 12 insertions, 2 deletions
@@ -33,3 +33,7 @@ patches-* # quilt's files patches series + +# local makefile +local.mk + @@ -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 |