aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2022-02-17 17:22:18 -0500
committerYour Name <you@example.com>2022-02-17 17:22:18 -0500
commita5cdc506789ac6aeb6f4256b892fedf046fff06c (patch)
tree559f40e49f2eaeedb5888db8bd24e0838b1a45a1
parentc91436e7d7eccebda3c776aec67a6c567eba1d58 (diff)
downloadbiblereader-a5cdc506789ac6aeb6f4256b892fedf046fff06c.tar.gz
biblereader-a5cdc506789ac6aeb6f4256b892fedf046fff06c.tar.bz2
biblereader-a5cdc506789ac6aeb6f4256b892fedf046fff06c.zip
Now respects environment LDFLAGS
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 35c6e6e..496aac6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
CC=g++
LIBS=gtkmm-3.0
CFLAGS=-c -Wall
-LDFLAGS=-pthread -lbible
+LDLIBS=-pthread -lbible
SOURCES=header.cc main.cc mods.cc readerview.cc sword.cc
OBJECTS=$(SOURCES:.cc=.o)
EXECUTABLE=biblereader
@@ -22,7 +22,7 @@ install: $(EXECUTABLE)
install -m 644 biblereader_64.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/64x64/apps/biblereader.png
$(EXECUTABLE): $(OBJECTS)
- $(CC) $(OBJECTS) -o $@ `pkg-config $(LIBS) --libs` $(LDFLAGS)
+ $(CC) $(OBJECTS) -o $@ $(LDFLAGS) `pkg-config $(LIBS) --libs` $(LDLIBS)
.cc.o:
$(CC) $(CFLAGS) $< -o $@ `pkg-config $(LIBS) --cflags`