From a5cdc506789ac6aeb6f4256b892fedf046fff06c Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 17 Feb 2022 17:22:18 -0500 Subject: Now respects environment LDFLAGS --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') 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` -- cgit v1.2.3