aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files 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`