2008-02-14 06:47:12 +01:00
|
|
|
|
2008-02-29 03:02:40 +01:00
|
|
|
CXXFLAGS=-ggdb -Wall -O0
|
2008-02-17 03:36:17 +01:00
|
|
|
#LIBS=-L/usr/lib/sox -I/usr/include/sox -lsox -lsfx
|
|
|
|
LIBS=-lsndfile `fltk-config --ldflags`
|
2008-02-14 06:47:12 +01:00
|
|
|
# CXXFLAGS=`fltk-config -cxxflags`
|
|
|
|
|
2008-03-03 22:00:38 +01:00
|
|
|
SRCS= Waveform.C Region.C Peaks.C main.C Track.C Audio_Track.C Timeline.C Audio_File.C Audio_File_SF.C Loggable.C Track_Header.C Track_Widget.C
|
2008-02-17 00:28:48 +01:00
|
|
|
|
|
|
|
OBJS=$(SRCS:.C=.o)
|
|
|
|
|
|
|
|
.PHONEY: all clean install dist valgrind
|
|
|
|
|
|
|
|
all: test makedepend
|
2008-02-14 06:47:12 +01:00
|
|
|
|
|
|
|
.C.o:
|
2008-02-17 00:28:48 +01:00
|
|
|
@ echo -n "Compiling: "; tput bold; tput setaf 3; echo $<; tput sgr0; true
|
|
|
|
@ $(CXX) $(CXXFLAGS) -c $< -o $@
|
|
|
|
|
2008-02-29 03:02:40 +01:00
|
|
|
|
|
|
|
%.C : %.fl
|
|
|
|
@ fluid -c $<
|
|
|
|
|
2008-02-17 00:28:48 +01:00
|
|
|
$(OBJS): Makefile
|
|
|
|
|
2008-02-14 06:47:12 +01:00
|
|
|
|
2008-02-14 08:40:47 +01:00
|
|
|
test: $(OBJS)
|
2008-02-14 06:47:12 +01:00
|
|
|
$(CXX) $(CXXFLAGS) $(LIBS) $(OBJS) -o $@
|
2008-02-16 04:50:16 +01:00
|
|
|
|
2008-03-01 15:23:59 +01:00
|
|
|
mixer: Mixer_Strip.o Mixer.o
|
|
|
|
$(CXX) $(CXXFLAGS) $(LIBS) Mixer_Strip.o Mixer.o -o $@
|
|
|
|
|
2008-02-16 04:50:16 +01:00
|
|
|
clean:
|
2008-02-22 09:19:20 +01:00
|
|
|
rm -f $(OBJS) test makedepend
|
2008-02-17 00:12:23 +01:00
|
|
|
|
|
|
|
valgrind:
|
|
|
|
valgrind ./test
|
2008-02-17 00:28:48 +01:00
|
|
|
|
|
|
|
TAGS: $(SRCS)
|
|
|
|
etags $(SRCS)
|
|
|
|
|
|
|
|
makedepend: $(SRCS)
|
|
|
|
@ echo -n Checking dependencies...
|
|
|
|
@ makedepend -f- -- $(CXXFLAGS) -- $(SRCS) > makedepend 2>/dev/null && echo done.
|
|
|
|
|
|
|
|
|
|
|
|
include makedepend
|