aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYour Name <you@example.com>2020-11-07 07:56:08 -0500
committerYour Name <you@example.com>2020-11-07 07:56:08 -0500
commit67207e20f3dc8b9e92e45560776b5b304f964cc1 (patch)
tree1c766f0869194b2ae0adf4b57d7470140a3a5d6c /Makefile
parent44f16b6cd5b9cd9641c0c5df1c671c9e610ad7ac (diff)
downloadlibbible-67207e20f3dc8b9e92e45560776b5b304f964cc1.tar.gz
libbible-67207e20f3dc8b9e92e45560776b5b304f964cc1.tar.bz2
libbible-67207e20f3dc8b9e92e45560776b5b304f964cc1.zip
Fixed segfaults for invalid module names
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 61957d7..c10be48 100644
--- a/Makefile
+++ b/Makefile
@@ -5,17 +5,20 @@ LDFLAGS=
SOURCES=libbible.cc mods.cc settings.cc
OBJECTS=$(SOURCES:.cc=.o)
LIBRARY=libbible.so
+EXECUTABLE=bible
ifeq ($(PREFIX),)
PREFIX := /usr
endif
-all: $(SOURCES) $(LIBRARY)
+all: $(SOURCES) $(LIBRARY) $(EXECUTABLE)
-install: $(LIBRARY)
+install: $(LIBRARY) $(EXECUTABLE)
install -d $(DESTDIR)$(PREFIX)/lib/
install -m 644 $(LIBRARY) $(DESTDIR)$(PREFIX)/lib/
install -d $(DESTDIR)$(PREFIX)/include/
install -m 644 libbible.h $(DESTDIR)$(PREFIX)/include/
+ install -d $(DESTDIR)$(PREFIX)/bin/
+ install -m 644 bible $(DESTDIR)$(PREFIX)/bin/
test: $(OBJECTS) testLibbible.o
$(CC) $(LDFLAGS) $(OBJECTS) testLibbible.o -o $@ `pkg-config $(LIBS) --libs` -lcppunit