-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (24 loc) · 816 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SRCDIR = .
RM = rm
CC = gcc
CFLAGS = -O3 -DNDEBUG -I/usr/local/include/libhmsbeagle-1 -DUSECONFIG_H
LDFLAGS = -L/usr/local/lib -lhmsbeagle -lreadline -lm
INSTALL = /usr/bin/install -c
prefix ?= /usr/local
exec_prefix ?= ${prefix}
BINDIR ?= ${exec_prefix}/bin
SRC = bayes.c command.c model.c mcmc.c likelihood.c proposal.c sumpt.c utils.c mbbeagle.c best.c
OBJECTS = bayes.o command.o model.o mcmc.o likelihood.o proposal.o sumpt.o utils.o mbbeagle.o best.o
PROGS = mb
all: $(PROGS)
mb: $(OBJECTS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
install: $(PROGS)
mkdir -p $(BINDIR)
$(INSTALL) -m 755 $(PROGS) $(BINDIR)
clean:
$(RM) -f *.o *~ mb
distclean: clean
$(RM) -rf Makefile config.log config.status config.h *.cache
showdep:
@$(CC) -MM $(SRC)