Automatic commit
[selector.git] / Makefile
1
2 #########################################################################
3 # START_IP_HEADER                                                       #
4 #                                                                       #
5 # This program is free software: you can redistribute it and/or modify  #
6 # it under the terms of the version 3 of the GNU General Public License #
7 # as published by the Free Software Foundation.                         #
8 #                                                                       #
9 # This program is distributed in the hope that it will be useful, but   #
10 # WITHOUT ANY WARRANTY; without even the implied warranty of            #
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      #
12 # General Public License for more details.                              #
13 #                                                                       #
14 # You should have received a copy of the GNU General Public License     #
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.  #
16 #                                                                       #
17 # Written by and Copyright (C) Francois Fleuret                         #
18 # Contact <francois.fleuret@idiap.ch> for comments & bug reports        #
19 #                                                                       #
20 # END_IP_HEADER                                                         #
21 #########################################################################
22
23 LDFLAGS=-lcurses
24
25 ifeq ($(DEBUG),yes)
26   OPTIMIZE_FLAG = -ggdb3 -DDEBUG
27 else
28   OPTIMIZE_FLAG = -ggdb3 -O3
29 endif
30
31 CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(CXXGLPK)
32
33 all: selector
34
35 selector: selector.o
36         $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
37
38 clean:
39         rm -f *.o selector