non/Timeline/makefile.inc

30 lines
859 B
Makefile

# -*- mode: makefile; -*-
Timeline_VERSION := 0.5.0
# always regenerate source list when running under git
FOO := $(shell [ -f .git ] && [ -x `which git` ] && rm -f FL/.sources )
Timeline/.sources:
@ echo "Timeline_SRCS=\\" > Timeline/.sources
@ git ls-files 'Timeline/*.C' | tr '\n' ' ' >> Timeline/.sources
@ git ls-files 'Timeline/*.fl' | tr '\n' ' ' >> Timeline/.sources
-include Timeline/.sources
Timeline_SRCS += util/debug.C
Timeline_SRCS:=$(Timeline_SRCS:.fl=.C)
Timeline_OBJS:=$(Timeline_SRCS:.C=.o)
Timeline_LIBS := $(FLTK_LIBS) $(JACK_LIBS) $(SNDFILE_LIBS) $(LASH_LIBS)
Timeline/timeline: $(Timeline_OBJS) FL
@ echo -n Linking timeline...
@ $(CXX) $(CXXFLAGS) $(INCLUDES) $(Timeline_LIBS) $(Timeline_OBJS) -o $@ -LFL -lfl_widgets && echo $(DONE)
Timeline: Timeline/timeline
Timeline_clean:
rm -f $(Timeline_OBJS) Timeline/timeline