-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (45 loc) · 997 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Makefile for Ferret External Functions
#
# January 20 1998
# Jonathan Callahan
#
# 15-Nov-1999 Ansley Manke
# remove refs to ef_utility/*.o (now in ferret executable)
#
# ACM 2/2001 debug macros
# ACM 2/2002 change targets to all and extras; somehow standard
# not working well w/ linux.
#
# Jul 25, 2017 Andreas Schmittner
# modified for co2 functions
#
# include platform specific macro definitions
#
include ../ef_utility/site_specific.mk
#include ../ef_utility/platform_specific.mk.$(BUILDTYPE)
include ../ef_utility/platform_specific.mk
#
# Macros
#
.SUFFIXES: .so
#
# Rules
#
.F.so:
$(F77) $(FFLAGS) -c $<
$(LD) $(LD_DYN_FLAGS) $(SYSLIBS) $*.o -o $*.so
#
# Targets
#
all: pco2.so o2sat.so ph.so co2aq.so co3.so hco3.so omega_cal.so omega_ara.so
debug:
$(MAKE) "FFLAGS = $(FFLAGS) -g -Ddebug" "CFLAGS = $(CFLAGS) -g -Ddebug" all
install:
# cp *.so $(FER_LOCAL_EXTFCNS)
cp *.so $(MY_LOCAL_EXTFCNS)
clean:
-rm -f *.o *.so
#
# End of Makefile
#