From 7d623be041f671f3eb6af188d128b7f07642a24a Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Fri, 23 Sep 2011 23:50:13 +0100 Subject: [PATCH] Abstract out ld flags in Makefile --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 $@ $^