diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-09-23 23:50:13 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-09-23 23:50:13 +0100 |
commit | 7d623be041f671f3eb6af188d128b7f07642a24a (patch) | |
tree | ee9022a9a92f331abf66abdd7e84bee5c787f745 /Makefile | |
parent | d8f6551972b8f370c712b46cad4fedee6442923f (diff) | |
download | termo-7d623be041f671f3eb6af188d128b7f07642a24a.tar.gz termo-7d623be041f671f3eb6af188d128b7f07642a24a.tar.xz termo-7d623be041f671f3eb6af188d128b7f07642a24a.zip |
Abstract out ld flags in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 $@ $^ |