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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
#
# Top level Makefile for Ferret External Functions
#
# September 09 1998
# Jonathan Callahan
#
# ACM 1/2002 add fft directory back in: lsl_lowpass, inverse fcn.
# ACM 4/2006 link all functions that are distributed statically; the
# directories below compile only example functions, functions
# under development, or used locally by PMEL/TMAP (e.g.romea fcns)
#
# Site-specific defines
#
include ../site_specific.mk
#
# include platform specific definitions of:
# CC, FC, RANLIB, CFLAGS, FFLAGS, PPLUS_FFLAGS
#
include ../platform_specific.mk.$(BUILDTYPE)
#
# Macro Definitions
#
# DIRS = ef_utility
DIRS = ef_utility contributed decimate examples fft las statistics stringfcns
MOREDIRS = cmprsi_by extrema featurecollections gridding tax_times
#
# Targets
#
.PHONY : all
all: optimized
.PHONY : optimized
optimized:
$(MAKE) "CFLAGS = $(CFLAGS) -O" "FFLAGS = $(FFLAGS) -O" build
.PHONY : debug
debug:
$(MAKE) "CFLAGS = $(CFLAGS) -O0 -g" "FFLAGS = $(FFLAGS) -O0 -g" build
.PHONY: build
build:
for i in $(DIRS) ; do \
if ! $(MAKE) -C $$i ; then \
exit 1 ; \
fi ; \
done
.PHONY: buildmore
buildmore:
for i in $(DIRS) $(MOREDIRS) ; do \
if ! $(MAKE) -C $$i ; then \
exit 1 ; \
fi ; \
done
.PHONY: install
install:
for i in $(DIRS) ; do \
if ! $(MAKE) -C $$i install ; then \
exit 1 ; \
fi ; \
done
.PHONY: installmore
installmore:
for i in $(DIRS) $(MOREDIRS) ; do \
if ! $(MAKE) -C $$i install ; then \
exit 1 ; \
fi ; \
done
.PHONY: clean
clean:
for i in $(DIRS) $(MOREDIRS) ; do \
if ! $(MAKE) -C $$i clean ; then \
exit 1 ; \
fi ; \
done
#
# End of Makefile
#
|