LIBS = -lm
CFLAGS = -O
CC = cc
OBJECTS = mcmc.o bayes.o command.o complex.o gamma.o linalg.o matrices.o
PROGS = mb
all: $(PROGS)
mb: $(OBJECTS)
$(CC) $(CFLAGS) $(OBJECTS) $(LIBS) -o mb
mcmc.o: mcmc.c
$(CC) $(CFLAGS) -c mcmc.c
bayes.o: bayes.c
$(CC) $(CFLAGS) -c bayes.c
command.o: command.c
$(CC) $(CFLAGS) -c command.c
complex.o: complex.c
$(CC) $(CFLAGS) -c complex.c
gamma.o: gamma.c
$(CC) $(CFLAGS) -c gamma.c
linalg.o: linalg.c
$(CC) $(CFLAGS) -c linalg.c
matrices.o: matrices.c
$(CC) $(CFLAGS) -c matrices.c
clean:
rm -f *.o
install:
mv $(PROGS) bin/plan9/386
|