From aa9dabdeaead3c8b1b11f9d4f321265c439bfbfc Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 17 Feb 2022 17:17:30 -0500 Subject: Now respects environment LDFLAGS --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4fe1ffc..6b367f8 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CC=g++ LIBS=sword minizip CFLAGS=-c -Wall -fPIC -std=c++20 -LDFLAGS=-lstdc++fs +LDLIBS=-lstdc++fs SOURCES=libbible.cc mods.cc settings.cc OBJECTS=$(SOURCES:.cc=.o) LIBRARY=libbible.so @@ -29,13 +29,13 @@ testLibbible.o: testLibbible.cc $(CC) $(CFLAGS) testLibbible.cc -o $@ bible: $(OBJECTS) bible.o - $(CC) $(OBJECTS) bible.o -o $@ $(LDFLAGS) `pkg-config $(LIBS) --libs` + $(CC) $(OBJECTS) bible.o -o $@ $(LDFLAGS) `pkg-config $(LIBS) --libs` $(LDLIBS) bible.o: bible.cc $(CC) $(CFLAGS) bible.cc -o $@ $(LIBRARY): $(OBJECTS) - $(CC) $(OBJECTS) -shared -o $@ $(LDFLAGS) `pkg-config $(LIBS) --libs` + $(CC) $(OBJECTS) -shared -o $@ $(LDFLAGS) `pkg-config $(LIBS) --libs` $(LDLIBS) .cc.o: $(CC) $(CFLAGS) $< -o $@ `pkg-config $(LIBS) --cflags` -- cgit v1.2.3