summaryrefslogtreecommitdiff
path: root/biology/deft/files/Makefile.deft
blob: 7860a06f654ab994e13161668b4fc6fb56b0946c (plain)
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
32
33
34
35
36
37
38
39
40
#
# Makefile for DeFT
#
TARGET = DeFT.exec
FFLAGS += -w -O3
CFLAGS += -w -O3
.if ${ARCH} == "i386"
FFLAGS += -malign-double
CFLAGS += -malign-double
.endif
F2C = f2c
F2CFLAGS += -w -Nn802
.if ${OSVERSION} >= 400005
FC = ftn77
#FC = fc
CFLAGS += -I${PREFIX}/include
.endif
LFLAGS = 
SRCS:sh = ls *.f
OBJS = $(SRCS:.f=.o)
.if defined(USEMPICH) && ${USEMPICH} == yes
FFLAGS+=	-I/usr/local/mpich/include
FC=		/usr/local/mpich/bin/mpif77
LFLAGS+=	-L/usr/local/mpich/lib -lmpich
.endif

all: ${TARGET}

${TARGET}: ${OBJS}
	${FC} ${LFLAGS} ${OBJS} -o $@

.if ${FC} == ftn77
cdgrxx.o: cdgrxx.f
	${F2C} ${F2CFLAGS} cdgrxx.f
	${CC} ${CFLAGS} -c cdgrxx.c
.endif

clean:
	rm -f ${OBJS} ${TARGET}