--cumul now computes P(X <= x) instead of P(X < x).
[data-tool.git] / Makefile
1
2 #
3 #  data-tool is a command line tool to do simple statistical
4 #  processing on numerical data.
5 #
6 #  Copyright (c) 2009 Francois Fleuret
7 #  Written by Francois Fleuret <francois.fleuret@idiap.ch>
8 #
9 #  This file is part of data-tool.
10 #
11 #  data-tool is free software: you can redistribute it and/or modify
12 #  it under the terms of the GNU General Public License version 3 as
13 #  published by the Free Software Foundation.
14 #
15 #  data-tool is distributed in the hope that it will be useful, but
16 #  WITHOUT ANY WARRANTY; without even the implied warranty of
17 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 #  General Public License for more details.
19 #
20 #  You should have received a copy of the GNU General Public License
21 #  along with data-tool.  If not, see <http://www.gnu.org/licenses/>.
22 #
23
24 ifeq ($(DEBUG),yes)
25   OPTIMIZE_FLAG = -ggdb3 -DDEBUG
26 else
27   OPTIMIZE_FLAG = -ggdb3 -O3
28 endif
29
30 ifeq ($(PROFILE),yes)
31   PROFILE_FLAG = -pg
32 endif
33
34 CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG)
35
36 all: data-tool
37
38 TAGS: *.cc *.h
39         etags --members -l c++ *.cc *.h
40
41 data-tool: data-tool.o
42         $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
43
44 Makefile.depend: *.h *.cc Makefile
45         $(CC) -M *.cc > Makefile.depend
46
47 clean:
48         \rm -f data-tool *.o Makefile.depend TAGS
49
50 -include Makefile.depend