]> git.donarmstrong.com Git - mrbayes.git/blob - src/Makefile.in
import mrbayes
[mrbayes.git] / src / Makefile.in
1 SRCDIR       = @srcdir@
2 RM           = rm
3 CC           = @CC@
4 CFLAGS       = @CFLAGS@ -DUSECONFIG_H
5 LDFLAGS      = @LDFLAGS@ -lm
6 INSTALL      = @INSTALL@
7 prefix      ?= @prefix@
8 exec_prefix ?= @exec_prefix@
9 BINDIR      ?= @bindir@
10
11 SRC       = bayes.c command.c model.c mcmc.c likelihood.c proposal.c sumpt.c utils.c mbbeagle.c best.c
12 OBJECTS   = bayes.o command.o model.o mcmc.o likelihood.o proposal.o sumpt.o utils.o mbbeagle.o best.o
13 PROGS     = mb
14
15 all: $(PROGS)
16
17 mb: $(OBJECTS)
18         $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
19
20 install: $(PROGS)
21         mkdir -p $(BINDIR)
22         $(INSTALL) -m 755 $(PROGS) $(BINDIR)
23
24 clean:
25         $(RM) -f *.o *~ mb
26
27 distclean: clean
28         $(RM) -rf Makefile config.log config.status config.h *.cache
29
30 showdep:
31         @$(CC) -MM $(SRC)