aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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