40 lines
661 B
Makefile
40 lines
661 B
Makefile
|
|
CXXFLAGS=-ggdb -Wall -O0
|
|
|
|
LIBS=`fltk-config --ldflags`
|
|
# CXXFLAGS=`fltk-config -cxxflags`
|
|
|
|
SRCS= Waveform.C Region.C Peaks.C main.C
|
|
|
|
OBJS=$(SRCS:.C=.o)
|
|
|
|
.PHONEY: all clean install dist valgrind
|
|
|
|
all: test makedepend
|
|
|
|
.C.o:
|
|
@ echo -n "Compiling: "; tput bold; tput setaf 3; echo $<; tput sgr0; true
|
|
@ $(CXX) $(CXXFLAGS) -c $< -o $@
|
|
|
|
$(OBJS): Makefile
|
|
|
|
|
|
test: $(OBJS)
|
|
$(CXX) $(CXXFLAGS) $(LIBS) $(OBJS) -o $@
|
|
|
|
clean:
|
|
rm -f $(OBJS) test
|
|
|
|
valgrind:
|
|
valgrind ./test
|
|
|
|
TAGS: $(SRCS)
|
|
etags $(SRCS)
|
|
|
|
makedepend: $(SRCS)
|
|
@ echo -n Checking dependencies...
|
|
@ makedepend -f- -- $(CXXFLAGS) -- $(SRCS) > makedepend 2>/dev/null && echo done.
|
|
|
|
|
|
include makedepend
|