Debian Codegraph @

examples/newick-phylip-unrooted/Makefile

raw
1 # Copyright (C) 2015 Tomas Flouri
2 #
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU Affero General Public License as
5 # published by the Free Software Foundation, either version 3 of the
6 # License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU Affero General Public License for more details.
12 #
13 # You should have received a copy of the GNU Affero General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15 #
16 # Contact: Tomas Flouri <[email protected]>,
17 # Heidelberg Institute for Theoretical Studies,
18 # Schloss-Wolfsbrunnenweg 35, D-69118 Heidelberg, Germany
19
20 # Profiling
21 #PROFILING=-g -pg
22 PROFILING=-g
23
24 # Compiler warnings
25 WARN=-Wall -Wsign-compare
26
27 CC = gcc
28 CFLAGS = -Wall -g -O3 $(WARN)
29 LINKFLAGS = -L. $(PROFILING)
30 LIBS=-lpll -lm
31 PROG=newick-phylip-unrooted
32
33 all: $(PROG)
34
35 OBJS=$(PROG).o
36
37 $(PROG): $(OBJS)
38 $(CC) $(LINKFLAGS) -o $@ $+ $(LIBS) $(LDFLAGS)
39
40 %.o: %.c
41 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
42
43 clean:
44 rm -f *~ $(OBJS) gmon.out $(PROG)