| @@ -14,7 +14,7 @@ ask "Build for debugging" USE_DEBUG no | |||||
| begin_tests | begin_tests | ||||
| require_FLTK 1.1.7 images | require_FLTK 1.1.7 images | ||||
| require_command FLUID fluid | |||||
| require_command FLUID lib/fltk/fluid/fluid | |||||
| require_command ar ar | require_command ar ar | ||||
| require_command makedepend makedepend | require_command makedepend makedepend | ||||
| @@ -17,7 +17,7 @@ | |||||
| # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # | ||||
| ############################################################################### | ############################################################################### | ||||
| SUBDIRS=nonlib FL timeline mixer session-manager sequencer | |||||
| SUBDIRS=lib nonlib FL timeline mixer session-manager sequencer | |||||
| all: | all: | ||||
| @ for dir in $(SUBDIRS); do $(MAKE) -s -C $$dir; done | @ for dir in $(SUBDIRS); do $(MAKE) -s -C $$dir; done | ||||
| @@ -0,0 +1,15 @@ | |||||
| OBJS:= fltk/lib/libfltk.a fltk/lib/libfltk_images.a | |||||
| $(OBJS): fltk/config.h | |||||
| cd fltk && make | |||||
| fltk/config.h: | |||||
| cd fltk && ./configure --prefix=/dev/null --disable-shared --disable-gl --enable-threads --enable-xft --enable-xdbe --enable-xinerama | |||||
| config: $(OBJS) | |||||
| clean: | |||||
| all: $(OBJS) | |||||
| @@ -16,7 +16,8 @@ begin_tests | |||||
| require_command ar ar | require_command ar ar | ||||
| require_command makedepend makedepend | require_command makedepend makedepend | ||||
| require_FLTK 1.3.0 images cairo | |||||
| require_FLTK 1.3.0 images | |||||
| require_command FLUID lib/fltk/fluid/fluid | |||||
| require_package JACK 0.103.0 jack | require_package JACK 0.103.0 jack | ||||
| require_package lrdf 0.4.0 lrdf | require_package lrdf 0.4.0 lrdf | ||||
| require_package liblo 0.23 liblo | require_package liblo 0.23 liblo | ||||
| @@ -56,12 +56,14 @@ else | |||||
| endif | endif | ||||
| STATIC_LIBS := lib/fltk/lib/libfltk.a lib/fltk/lib/libfltk_cairo.a lib/fltk/lib/libfltk_images.a lib/fltk/lib/libfltk_forms.a | |||||
| STATIC_LIBS := lib/fltk/lib/libfltk.a lib/fltk/lib/libfltk_images.a | |||||
| # FLTK_LIBS := -lfltk -fltk_images -lfltk_gl -lfltk_forms -lfltk_cairo | # FLTK_LIBS := -lfltk -fltk_images -lfltk_gl -lfltk_forms -lfltk_cairo | ||||
| LIBS += $(FLTK_LIBS) | LIBS += $(FLTK_LIBS) | ||||
| LIBS += -lpng -lcairo -ljpeg | LIBS += -lpng -lcairo -ljpeg | ||||
| INCLUDES := -I. -Iutil -IFL -Inonlib | INCLUDES := -I. -Iutil -IFL -Inonlib | ||||
| INCLUDES += $(FLTK_CFLAGS) | INCLUDES += $(FLTK_CFLAGS) | ||||
| # INCLUDES += | # INCLUDES += | ||||
| // CFLAGS += $(FLTK_CFLAGS) | // CFLAGS += $(FLTK_CFLAGS) | ||||
| @@ -81,7 +83,7 @@ CXXFLAGS := $(CFLAGS) $(CXXFLAGS) | |||||
| include scripts/colors | include scripts/colors | ||||
| SPACE+=" `tput cuf 20`" | |||||
| SPACE:=" `tput cuf 20`" | |||||
| ifneq ($(CALCULATING),yes) | ifneq ($(CALCULATING),yes) | ||||
| COMPILING="$(BOLD)$(BLACK)[$(SGR0) $(PACKAGE)$(SPACE)$(SGR0)$(CYAN)`scripts/percent-complete .files "$<"` $(SGR0)$(BOLD)$(BLACK)]$(SGR0) $(BOLD)$(CYAN)$<$(SGR0)" | COMPILING="$(BOLD)$(BLACK)[$(SGR0) $(PACKAGE)$(SPACE)$(SGR0)$(CYAN)`scripts/percent-complete .files "$<"` $(SGR0)$(BOLD)$(BLACK)]$(SGR0) $(BOLD)$(CYAN)$<$(SGR0)" | ||||
| @@ -91,10 +93,10 @@ endif | |||||
| .C.o: | .C.o: | ||||
| @ echo $(COMPILING) | @ echo $(COMPILING) | ||||
| $(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@ | |||||
| @ $(CXX) $(INCLUDES) $(CXXFLAGS) -c $< -o $@ | |||||
| %.C : %.fl | %.C : %.fl | ||||
| @ cd `dirname $<` && fluid -c `basename $<` | |||||
| @ cd `dirname $<` && $(FLUID) -c `basename $<` | |||||
| DONE := $(BOLD)$(GREEN)done$(SGR0) | DONE := $(BOLD)$(GREEN)done$(SGR0) | ||||
| @@ -127,18 +127,18 @@ ask () | |||||
| ok () | ok () | ||||
| { | { | ||||
| echo '\r'`tput cuf 30`"$BOLD${GREEN}ok${SGR0} ${*:+${BOLD}${BLACK}($*)${SGR0}}" | |||||
| echo ' '`tput cuf 30`"$BOLD${GREEN}ok${SGR0} ${*:+${BOLD}${BLACK}($*)${SGR0}}" | |||||
| } | } | ||||
| failed () | failed () | ||||
| { | { | ||||
| echo '\r'`tput cuf 30`"$BOLD${RED}failed!${SGR0}" > /dev/stderr | |||||
| echo ' '`tput cuf 30`"$BOLD${RED}failed!${SGR0}" > /dev/stderr | |||||
| rm -f .config | rm -f .config | ||||
| } | } | ||||
| missing () | missing () | ||||
| { | { | ||||
| echo '\r'`tput cuf 30`"$BOLD${YELLOW}missing!${SGR0}" > /dev/stderr | |||||
| echo ' '`tput cuf 30`"$BOLD${YELLOW}missing!${SGR0}" > /dev/stderr | |||||
| } | } | ||||
| using () | using () | ||||
| @@ -255,13 +255,22 @@ require_command () | |||||
| { | { | ||||
| echo -n "Checking for ${BOLD}$1${SGR0}..." | echo -n "Checking for ${BOLD}$1${SGR0}..." | ||||
| if ! [ -x "`which $2`" ] | |||||
| local name; | |||||
| if [ -x "$2" ] | |||||
| then | |||||
| name="$2" | |||||
| ok | |||||
| elif [ -x "`which "$2"`" ] | |||||
| then | then | ||||
| name="`which "$2"`" | |||||
| ok | |||||
| else | |||||
| failed | failed | ||||
| fatal "Command $1 not found." | fatal "Command $1 not found." | ||||
| else | |||||
| ok | |||||
| fi | fi | ||||
| append "$1=$2" | |||||
| } | } | ||||
| require_package () | require_package () | ||||
| @@ -16,7 +16,8 @@ begin_tests | |||||
| require_package JACK 0.103.0 jack | require_package JACK 0.103.0 jack | ||||
| suggest_package XPM 2.0.0 xpm | suggest_package XPM 2.0.0 xpm | ||||
| require_FLTK 1.3.0 images cairo | |||||
| require_FLTK 1.3.0 images | |||||
| require_command FLUID lib/fltk/fluid/fluid && append "FLUID=lib/fltk/fluid/fluid" | |||||
| test_version `version_of jack` 0.105.0 || append "JACK_MIDI_PROTO_API=yes" | test_version `version_of jack` 0.105.0 || append "JACK_MIDI_PROTO_API=yes" | ||||
| require_package liblo 0.23 liblo | require_package liblo 0.23 liblo | ||||
| @@ -23,7 +23,8 @@ begin_tests | |||||
| require_command ar ar | require_command ar ar | ||||
| require_command makedepend makedepend | require_command makedepend makedepend | ||||
| require_FLTK 1.3.0 images cairo | |||||
| require_FLTK 1.3.0 images | |||||
| require_command FLUID lib/fltk/fluid/fluid | |||||
| require_package JACK 0.103.0 jack | require_package JACK 0.103.0 jack | ||||
| require_package sndfile 1.0.17 sndfile | require_package sndfile 1.0.17 sndfile | ||||
| require_package liblo 0.23 liblo | require_package liblo 0.23 liblo | ||||
| @@ -31,7 +31,7 @@ endif | |||||
| src/timeline: $(OBJS) FL/libfl_widgets.a nonlib/libnonlib.a $(STATIC_LIBS) | src/timeline: $(OBJS) FL/libfl_widgets.a nonlib/libnonlib.a $(STATIC_LIBS) | ||||
| @ echo -n Linking timeline... | @ echo -n Linking timeline... | ||||
| $(CXX) $(CXXFLAGS) $(INCLUDES) $(LIBS) $^ -o $@ -LFL -lfl_widgets -Lnonlib -lnonlib && echo $(DONE) | |||||
| @ $(CXX) $(CXXFLAGS) $(INCLUDES) $(LIBS) $^ -o $@ -LFL -lfl_widgets -Lnonlib -lnonlib && echo $(DONE) | |||||
| Timeline: src/timeline | Timeline: src/timeline | ||||