From 67207e20f3dc8b9e92e45560776b5b304f964cc1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 7 Nov 2020 07:56:08 -0500 Subject: Fixed segfaults for invalid module names --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3