build: use git to generate lists of sources for makefile.

This commit is contained in:
Jonathan Moore Liles 2008-05-25 09:34:19 -05:00
parent 26b9f2cf6b
commit 0d40ca5b6b
3 changed files with 25 additions and 58 deletions

View File

@ -1,17 +1,17 @@
# -*- mode: makefile; -*- # -*- mode: makefile; -*-
FL_SRCS= \ FL/.sources:
FL/Fl_Scalepack.C \ @ echo "FL_SRCS=\\" > FL/.sources
FL/Fl_Arc_Dial.C \ @ git ls-files 'FL/*.C' | tr '\n' ' ' >> FL/.sources
FL/Fl_Text_Edit_Window.C \ @ git ls-files 'FL/*.fl' | tr '\n' ' ' >> FL/.sources
FL/Boxtypes.C \
include FL/.sources
FL_SRCS:=$(FL_SRCS:.fl=.C)
FL_OBJS:=$(FL_SRCS:.C=.o) FL_OBJS:=$(FL_SRCS:.C=.o)
all: FL/libfl_widgets.a all: FL/libfl_widgets.a
# $(OBJS): Makefile
FL/libfl_widgets.a: $(FL_OBJS) FL/libfl_widgets.a: $(FL_OBJS)
@ ar rcs $@ $(FL_OBJS) @ ar rcs $@ $(FL_OBJS)

View File

@ -1,11 +1,15 @@
# -*- mode: makefile; -*- # -*- mode: makefile; -*-
Mixer_SRCS= \ Mixer/.sources:
Mixer/DPM.C \ @ echo "Mixer_SRCS=\\" > Mixer/.sources
Mixer/Mixer_Strip.C \ @ git ls-files 'Mixer/*.C' | tr '\n' ' ' >> Mixer/.sources
Mixer/Panner.C \ @ git ls-files 'Mixer/*.fl' | tr '\n' ' ' >> Mixer/.sources
Mixer/Mixer.C \
include Mixer/.sources
Mixer_SRCS += util/debug.C
Mixer_SRCS:=$(Mixer_SRCS:.fl=.C)
Mixer_OBJS:=$(Mixer_SRCS:.C=.o) Mixer_OBJS:=$(Mixer_SRCS:.C=.o)
Mixer_LIBS := $(FLTK_LIBS) Mixer_LIBS := $(FLTK_LIBS)

View File

@ -2,55 +2,18 @@
Timeline_VERSION := 0.5.0 Timeline_VERSION := 0.5.0
Timeline_SRCS= \ Timeline/.sources:
Timeline/Annotation_Region.C \ @ echo "Timeline_SRCS=\\" > Timeline/.sources
Timeline/Audio_Region.C \ @ git ls-files 'Timeline/*.C' | tr '\n' ' ' >> Timeline/.sources
Timeline/Audio_Sequence.C \ @ git ls-files 'Timeline/*.fl' | tr '\n' ' ' >> Timeline/.sources
Timeline/Control_Point.C \
Timeline/Control_Sequence.C \
Timeline/Fl_Menu_Settings.C \
Timeline/LASH.C \
Timeline/LASH_Client.C \
Timeline/Loggable.C \
Timeline/Project.C \
Timeline/Sequence.C \
Timeline/Sequence_Point.C \
Timeline/Sequence_Region.C \
Timeline/Sequence_Widget.C \
Timeline/TLE.C \
Timeline/Tempo_Point.C \
Timeline/Tempo_Sequence.C \
Timeline/Time_Point.C \
Timeline/Time_Sequence.C \
Timeline/Timeline.C \
Timeline/Track.C \
Timeline/Transport.C \
Timeline/Waveform.C \
Timeline/main.C \
util/debug.C \
Timeline_SRCS+=\
Timeline/Engine/Audio_File.C \
Timeline/Engine/Audio_File_SF.C \
Timeline/Engine/Audio_Region.C \
Timeline/Engine/Audio_Sequence.C \
Timeline/Engine/Disk_Stream.C \
Timeline/Engine/Engine.C \
Timeline/Engine/Peaks.C \
Timeline/Engine/Playback_DS.C \
Timeline/Engine/Port.C \
Timeline/Engine/Record_DS.C \
Timeline/Engine/Timeline.C \
Timeline/Engine/Track.C \
Timeline/Engine/dsp.C \
include Timeline/.sources
Timeline_SRCS += util/debug.C
Timeline_SRCS:=$(Timeline_SRCS:.fl=.C)
Timeline_OBJS:=$(Timeline_SRCS:.C=.o) Timeline_OBJS:=$(Timeline_SRCS:.C=.o)
# $(Timeline_OBJS): Makefile
# $(Timeline_OBJS): make.conf
Timeline_LIBS := $(FLTK_LIBS) $(JACK_LIBS) $(SNDFILE_LIBS) $(LASH_LIBS) Timeline_LIBS := $(FLTK_LIBS) $(JACK_LIBS) $(SNDFILE_LIBS) $(LASH_LIBS)
Timeline/timeline: $(Timeline_OBJS) FL Timeline/timeline: $(Timeline_OBJS) FL