39 lines
602 B
Makefile
39 lines
602 B
Makefile
PREFIX = /usr/local
|
|
CC = clang
|
|
CCFLAGS = -Wall
|
|
TARGET = scriptura
|
|
INCLUDES = -I/usr/include/sword -I/usr/include/ncursesw
|
|
LDFLAGS = -lmenuw -lformw -lncursesw -lsword -lstdc++
|
|
SOURCE = free.cpp scabbard.cpp pane.cpp scriptura.cpp
|
|
|
|
|
|
$(TARGET): sword
|
|
$(CC) $(CCFLAGS) -o $(TARGET) $(INCLUDES) $(SOURCE) $(LDFLAGS)
|
|
|
|
|
|
debug: CCFLAGS += -g
|
|
debug: $(TARGET)
|
|
|
|
|
|
sword:
|
|
ifeq ($(wildcard /usr/include/sword),)
|
|
echo "Error: sword-devel not installed."
|
|
exit 1
|
|
endif
|
|
|
|
|
|
doc:
|
|
doxygen Doxyfile
|
|
|
|
|
|
install:
|
|
cp -v scriptura $(PREFIX)/bin
|
|
|
|
|
|
uninstall:
|
|
rm -v $PREFIX/bin
|
|
|
|
|
|
clean:
|
|
rm -rf $(TARGET) html latex
|