Cleanup build.
This commit is contained in:
parent
6edd388722
commit
a7fe4c5348
6
Makefile
6
Makefile
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
VERSION := 0.5.0
|
VERSION := 0.5.0
|
||||||
|
|
||||||
all: FL Timeline Mixer
|
all: make.conf FL Timeline Mixer
|
||||||
|
|
||||||
make.conf: configure
|
make.conf: configure
|
||||||
@ ./configure
|
@ ./configure
|
||||||
|
@ -17,7 +17,7 @@ make.conf: configure
|
||||||
-include make.conf
|
-include make.conf
|
||||||
|
|
||||||
ifeq ($(USE_DEBUG),yes)
|
ifeq ($(USE_DEBUG),yes)
|
||||||
CXXFLAGS := -pipe -ggdb -Wextra -Wno-missing-field-initializers -O0 -fno-rtti -fno-exceptions
|
CXXFLAGS := -pipe -ggdb -Wall -Wextra -Wnon-virtual-dtor -Wno-missing-field-initializers -O0 -fno-rtti -fno-exceptions
|
||||||
else
|
else
|
||||||
CXXFLAGS := -pipe -O3 -fno-rtti -fno-exceptions -DNDEBUG
|
CXXFLAGS := -pipe -O3 -fno-rtti -fno-exceptions -DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
@ -48,7 +48,7 @@ $(OBJS): make.conf
|
||||||
TAGS: $(SRCS)
|
TAGS: $(SRCS)
|
||||||
etags $(SRCS)
|
etags $(SRCS)
|
||||||
|
|
||||||
makedepend: $(SRCS)
|
makedepend: make.conf $(SRCS)
|
||||||
@ echo -n Checking dependencies...
|
@ echo -n Checking dependencies...
|
||||||
@ makedepend -f- -- $(CXXFLAGS) -I. -IFL -ITimeline -IMixer -- $(SRCS) > makedepend 2>/dev/null && echo $(DONE)
|
@ makedepend -f- -- $(CXXFLAGS) -I. -IFL -ITimeline -IMixer -- $(SRCS) > makedepend 2>/dev/null && echo $(DONE)
|
||||||
|
|
||||||
|
|
|
@ -161,9 +161,19 @@ test_version ()
|
||||||
local IFS
|
local IFS
|
||||||
IFS='.'
|
IFS='.'
|
||||||
|
|
||||||
|
if [ $2 != -ge ] && [ $2 != -le ]
|
||||||
|
then
|
||||||
|
fatal "Syntax error"
|
||||||
|
fi
|
||||||
|
|
||||||
_test_version $1 $2 $3
|
_test_version $1 $2 $3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version_of ()
|
||||||
|
{
|
||||||
|
echo `pkg-config --modversion $1`
|
||||||
|
}
|
||||||
|
|
||||||
require_FLTK ()
|
require_FLTK ()
|
||||||
{
|
{
|
||||||
local use
|
local use
|
||||||
|
|
Loading…
Reference in New Issue