mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
4ac4fd59ba
PR: 19160, 19161 Submitted by: Glenn Johnson <gjohnson@nola.srrc.usda.gov> Reviewed by: will
34 lines
490 B
Makefile
34 lines
490 B
Makefile
#
|
|
# Makefile for DeFT
|
|
#
|
|
TARGET = DeFT.exec
|
|
FFLAGS += -w
|
|
CFLAGS += -w
|
|
.if ${MACHINE_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)
|
|
|
|
all: ${TARGET}
|
|
|
|
${TARGET}: ${OBJS}
|
|
${FC} ${LFLAGS} ${OBJS} -o $@
|
|
|
|
cdgrxx.o:
|
|
${F2C} ${F2CFLAGS} cdgrxx.f
|
|
${CC} ${CFLAGS} -c cdgrxx.c
|
|
|
|
clean:
|
|
rm -f ${OBJS} ${TARGET}
|
|
|