aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-09-23 23:50:13 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-09-23 23:50:13 +0100
commit7d623be041f671f3eb6af188d128b7f07642a24a (patch)
treeee9022a9a92f331abf66abdd7e84bee5c787f745
parentd8f6551972b8f370c712b46cad4fedee6442923f (diff)
downloadtermo-7d623be041f671f3eb6af188d128b7f07642a24a.tar.gz
termo-7d623be041f671f3eb6af188d128b7f07642a24a.tar.xz
termo-7d623be041f671f3eb6af188d128b7f07642a24a.zip
Abstract out ld flags in Makefile
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 23c84a2..60e5fc5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
LIBTOOL=libtool
CFLAGS?=
+LDFLAGS=-lcurses
CFLAGS_DEBUG=
@@ -30,7 +31,7 @@ LIBRARY=libtermkey.la
$(LIBTOOL) --mode=compile --tag=CC gcc $(CFLAGS) $(CFLAGS_DEBUG) -Wall -std=c99 -o $@ -c $<
$(LIBRARY): $(OBJECTS)
- $(LIBTOOL) --mode=link --tag=CC gcc -rpath $(LIBDIR) -version-info $(VERSION_CURRENT):$(VERSION_REVISION):$(VERSION_AGE) -lcurses -o $@ $^
+ $(LIBTOOL) --mode=link --tag=CC gcc -rpath $(LIBDIR) -version-info $(VERSION_CURRENT):$(VERSION_REVISION):$(VERSION_AGE) $(LDFLAGS) -o $@ $^
demo: $(LIBRARY) demo.lo
$(LIBTOOL) --mode=link --tag=CC gcc -o $@ $^