-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
executable file
·51 lines (34 loc) · 1.59 KB
/
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
CC=gcc
LD=gcc
CFLAGS=-Wall
LIBLINKS=-lm
ESTIMATE_CFILES=sipnet.c ml-metro5.c ml-metrorun.c paramchange.c runmean.c util.c spatialParams.c namelistInput.c outputItems.c
ESTIMATE_OFILES=$(ESTIMATE_CFILES:.c=.o)
SENSTEST_CFILES=sipnet.c sensTest.c paramchange.c runmean.c util.c spatialParams.c namelistInput.c outputItems.c
SENSTEST_OFILES=$(SENSTEST_CFILES:.c=.o)
SIPNET_CFILES=sipnet.c frontend.c runmean.c util.c spatialParams.c namelistInput.c outputItems.c
SIPNET_OFILES=$(SIPNET_CFILES:.c=.o)
TRANSPOSE_CFILES=transpose.c util.c
TRANSPOSE_OFILES=$(TRANSPOSE_CFILES:.c=.o)
SUBSET_DATA_CFILES=subsetData.c util.c namelistInput.c
SUBSET_DATA_OFILES=$(SUBSET_DATA_CFILES:.c=.o)
# all: estimate sensTest sipnet transpose subsetData
all: estimate sipnet transpose subsetData
estimate: $(ESTIMATE_OFILES)
$(LD) -o estimate $(ESTIMATE_OFILES) $(LIBLINKS)
#sensTest: $(SENSTEST_OFILES)
# $(LD) -o sensTest $(SENSTEST_OFILES) $(LIBLINKS)
sipnet: $(SIPNET_OFILES)
$(LD) -o sipnet $(SIPNET_OFILES) $(LIBLINKS)
transpose: $(TRANSPOSE_OFILES)
$(LD) -o transpose $(TRANSPOSE_OFILES) $(LIBLINKS)
subsetData: $(SUBSET_DATA_OFILES)
$(LD) -o subsetData $(SUBSET_DATA_OFILES) $(LIBLINKS)
clean:
rm -f $(ESTIMATE_OFILES) $(SIPNET_OFILES) $(TRANSPOSE_OFILES) $(SUBSET_DATA_OFILES) estimate sensTest sipnet transpose subsetData
#clean:
# rm -f $(ESTIMATE_OFILES) $(SENSTEST_OFILES) $(SIPNET_OFILES) $(TRANSPOSE_OFILES) $(SUBSET_DATA_OFILES) estimate sensTest sipnet transpose subsetData
#This target automatically builds dependencies.
depend::
makedepend $(CFILES)
# DO NOT DELETE THIS LINE -- make depend depends on it.