Browse Source

Further tweak build system to work with private version of FLTK.

tags/non-daw-v1.2.0
Jonathan Moore Liles 13 years ago
parent
commit
5336880bd4
9 changed files with 45 additions and 16 deletions
  1. +1
    -1
      FL/configure
  2. +1
    -1
      Makefile
  3. +15
    -0
      lib/Makefile
  4. +2
    -1
      mixer/configure
  5. +6
    -4
      scripts/Makefile
  6. +15
    -6
      scripts/config-funcs
  7. +2
    -1
      sequencer/configure
  8. +2
    -1
      timeline/configure
  9. +1
    -1
      timeline/makefile.inc

+ 1
- 1
FL/configure View File

@@ -14,7 +14,7 @@ ask "Build for debugging" USE_DEBUG no
begin_tests

require_FLTK 1.1.7 images
require_command FLUID fluid
require_command FLUID lib/fltk/fluid/fluid
require_command ar ar
require_command makedepend makedepend



+ 1
- 1
Makefile View File

@@ -17,7 +17,7 @@
# 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:
@ for dir in $(SUBDIRS); do $(MAKE) -s -C $$dir; done


+ 15
- 0
lib/Makefile View File

@@ -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)

+ 2
- 1
mixer/configure View File

@@ -16,7 +16,8 @@ begin_tests

require_command ar ar
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 lrdf 0.4.0 lrdf
require_package liblo 0.23 liblo


+ 6
- 4
scripts/Makefile View File

@@ -56,12 +56,14 @@ else
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
LIBS += $(FLTK_LIBS)
LIBS += -lpng -lcairo -ljpeg

INCLUDES := -I. -Iutil -IFL -Inonlib
INCLUDES += $(FLTK_CFLAGS)

# INCLUDES +=

// CFLAGS += $(FLTK_CFLAGS)
@@ -81,7 +83,7 @@ CXXFLAGS := $(CFLAGS) $(CXXFLAGS)

include scripts/colors

SPACE+=" `tput cuf 20`"
SPACE:=" `tput cuf 20`"

ifneq ($(CALCULATING),yes)
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:
@ echo $(COMPILING)
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
@ $(CXX) $(INCLUDES) $(CXXFLAGS) -c $< -o $@

%.C : %.fl
@ cd `dirname $<` && fluid -c `basename $<`
@ cd `dirname $<` && $(FLUID) -c `basename $<`

DONE := $(BOLD)$(GREEN)done$(SGR0)



+ 15
- 6
scripts/config-funcs View File

@@ -127,18 +127,18 @@ ask ()

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 ()
{
echo '\r'`tput cuf 30`"$BOLD${RED}failed!${SGR0}" > /dev/stderr
echo ' '`tput cuf 30`"$BOLD${RED}failed!${SGR0}" > /dev/stderr
rm -f .config
}

missing ()
{
echo '\r'`tput cuf 30`"$BOLD${YELLOW}missing!${SGR0}" > /dev/stderr
echo ' '`tput cuf 30`"$BOLD${YELLOW}missing!${SGR0}" > /dev/stderr
}

using ()
@@ -255,13 +255,22 @@ require_command ()
{
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
name="`which "$2"`"
ok
else
failed
fatal "Command $1 not found."
else
ok
fi

append "$1=$2"
}

require_package ()


+ 2
- 1
sequencer/configure View File

@@ -16,7 +16,8 @@ begin_tests

require_package JACK 0.103.0 jack
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"
require_package liblo 0.23 liblo



+ 2
- 1
timeline/configure View File

@@ -23,7 +23,8 @@ begin_tests

require_command ar ar
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 sndfile 1.0.17 sndfile
require_package liblo 0.23 liblo


+ 1
- 1
timeline/makefile.inc View File

@@ -31,7 +31,7 @@ endif

src/timeline: $(OBJS) FL/libfl_widgets.a nonlib/libnonlib.a $(STATIC_LIBS)
@ 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



Loading…
Cancel
Save