# # data-tool is a command line tool to do simple statistical # processing on numerical data. # # Copyright (c) 2009 Francois Fleuret # Written by Francois Fleuret # # This file is part of data-tool. # # data-tool is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # data-tool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with data-tool. If not, see . # ifeq ($(DEBUG),yes) OPTIMIZE_FLAG = -ggdb3 -DDEBUG else OPTIMIZE_FLAG = -ggdb3 -O3 endif ifeq ($(PROFILE),yes) PROFILE_FLAG = -pg endif CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) all: data-tool TAGS: *.cc *.h etags --members -l c++ *.cc *.h data-tool: data-tool.o $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) Makefile.depend: *.h *.cc Makefile $(CC) -M *.cc > Makefile.depend clean: \rm -f data-tool *.o Makefile.depend TAGS -include Makefile.depend