*** empty log message ***
[selector.git] / Makefile
1 #
2 #  selector is a simple shell command for selection of strings with a
3 #  dynamic pattern-matching.
4 #
5 #  Copyright (c) 2009 Francois Fleuret
6 #  Written by Francois Fleuret <francois.fleuret@idiap.ch>
7 #
8 #  This file is part of selector.
9 #
10 #  selector is free software: you can redistribute it and/or modify
11 #  it under the terms of the GNU General Public License version 3 as
12 #  published by the Free Software Foundation.
13 #
14 #  selector is distributed in the hope that it will be useful, but
15 #  WITHOUT ANY WARRANTY; without even the implied warranty of
16 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 #  General Public License for more details.
18 #
19 #  You should have received a copy of the GNU General Public License
20 #  along with selector.  If not, see <http://www.gnu.org/licenses/>.
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)
32
33 all: selector
34
35 selector: selector.o
36         $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
37
38 clean:
39         rm -f *.o selector