diff options
author | Your Name <you@example.com> | 2020-11-07 07:56:08 -0500 |
---|---|---|
committer | Your Name <you@example.com> | 2020-11-07 07:56:08 -0500 |
commit | 67207e20f3dc8b9e92e45560776b5b304f964cc1 (patch) | |
tree | 1c766f0869194b2ae0adf4b57d7470140a3a5d6c /Makefile | |
parent | 44f16b6cd5b9cd9641c0c5df1c671c9e610ad7ac (diff) | |
download | libbible-67207e20f3dc8b9e92e45560776b5b304f964cc1.tar.gz libbible-67207e20f3dc8b9e92e45560776b5b304f964cc1.tar.bz2 libbible-67207e20f3dc8b9e92e45560776b5b304f964cc1.zip |
Fixed segfaults for invalid module names
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |