Small makefile fix

This commit is contained in:
Markus Gans 2017-02-06 02:21:40 +01:00
parent e369a11d1a
commit a67eeaa94f
8 changed files with 15 additions and 10 deletions

View File

@ -4,6 +4,10 @@
PREFIX="/usr"
case "$1" in
"--release"|"release")
./configure --prefix="$PREFIX"
;;
"--debug"|"debug")
./configure --prefix="$PREFIX" CPPFLAGS="-DDEBUG" CXXFLAGS="-g -O0 -DDEBUG -W -Wall -pedantic"
;;
@ -24,22 +28,18 @@ case "$1" in
./configure --prefix="$PREFIX" CXXFLAGS="-fprofile-arcs -ftest-coverage"
;;
"--release"|"release")
./configure --prefix="$PREFIX"
;;
"--help"|"help"|*)
echo "Usage:"
echo " $(basename "$0") {COMMAND}"
echo ""
echo "Commands:"
echo " help Show this help"
echo " release Compile for release"
echo " debug Compile with debug option"
echo " fulldebug Compile with all warning options"
echo " profile Compile with profile option (analysis with gprof)"
echo " cpu-profiler Link with Google cpu performance profiler"
echo " gcov Compile with options for coverage analysis with gcov"
echo " release Compile for release"
echo " help Show this help"
exit 1
;;
esac

View File

@ -1,2 +1,3 @@
usr/lib/*/lib*.so
usr/lib/*/lib*.so.*

View File

@ -89,8 +89,9 @@ finalcutinclude_HEADERS = \
fstatusbar.h \
fstring.h \
ftcap_map.h \
ftermcap.h \
fterm.h \
fvterm.cpp \
fvterm.h \
ftextview.h \
ftogglebutton.h \
fwidget.h \

View File

@ -38,6 +38,7 @@ INCLUDE_HEADERS = \
fscrollview.h \
fstatusbar.h \
fstring.h \
ftermcap.h \
fterm.h \
fvterm.h \
ftextview.h \

View File

@ -38,6 +38,7 @@ INCLUDE_HEADERS = \
fscrollview.h \
fstatusbar.h \
fstring.h \
ftermcap.h \
fterm.h \
fvterm.h \
ftextview.h \

View File

@ -452,8 +452,9 @@ finalcutinclude_HEADERS = \
fstatusbar.h \
fstring.h \
ftcap_map.h \
ftermcap.h \
fterm.h \
fvterm.cpp \
fvterm.h \
ftextview.h \
ftogglebutton.h \
fwidget.h \

View File

@ -12,7 +12,7 @@ OBJS = $(SRCS:%.cpp=%)
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG)
MAKEFILE = -f Makefile.clang
LDFLAGS = -L../src -lfinal
INCLUDES = -I../src
INCLUDES = -I../src -I/usr/include/final/
RM = rm -f
ifdef DEBUG

View File

@ -12,7 +12,7 @@ OBJS = $(SRCS:%.cpp=%)
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG)
MAKEFILE = -f Makefile.gcc
LDFLAGS = -L../src -lfinal
INCLUDES = -I../src
INCLUDES = -I../src -I/usr/include/final/
RM = rm -f
ifdef DEBUG