-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
94 lines (72 loc) · 1.71 KB
/
Makefile.in
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
89
90
91
92
93
94
.IGNORE:
.SUFFIXES: .C
SHELL = /bin/sh
# PATHS
prefix = @prefix@
BBH_SYSTEM = @BBH_SYSTEM@
CC = @CC@
AR = @AR@
RANLIB = @RANLIB@
LIBS = -lpamr $(MPILIB) @LIBS@ @CCF77LIBS@
LDFLAGS = @LDFLAGS@ -L. -L./lib @APP_LIB_PATHS@
CPPFLAGS = -I. @CPPFLAGS@ -I./include -I$(prefix)/include @APP_INCLUDE_PATHS@ @DEFS@ @BBH_DEFS@
CFLAGS = @CFLAGS@
CTOF = mfi
PERL = @PERL@
F77 = @F77@
F77FLAGS = @F77FLAGS@
CC_COMP = $(CC) $(CPPFLAGS) -c $(CFLAGS)
CC_LOAD = $(CC) $(CFLAGS) $(LDFLAGS)
F77_COMP = $(F77) $(F77FLAGS)
F77_LOAD = $(F77) $(F77FLAGS) $(F77_LDFLAGS) $(LDFLAGS)
F77_TRANSFORM = touch
SRC = src amrd
EXAMPLES = test examples/wave examples/nbs
DOCS = doc
STABLE = $(SRC) $(DOCS) $(EXAMPLES)
WORK = w
ALL = $(STABLE) $(WORK)
EXECUTABLES = test1 nbs wave
# targets
install:
for f in $(SRC); do \
(cd $$f; make install) \
done
# Kludge to ensure that amrd library gets installed
(cd src; make install)
examples: install
for f in $(EXAMPLES); do \
(cd $$f; make) \
done
docs:
for f in $(DOCS); do \
(cd $$f; make) \
done
work: install
for f in $(WORK); do \
(cd $$f; make) \
done
all: $(ALL)
echo; echo "Making in $(ALL)"
for f in $(ALL); do \
(cd $$f; make) \
done
debug:
for f in src amrd; do \
(cd $$f; make debug) \
done
clean:
echo; echo "Cleaning up"
for f in $(STABLE); do \
(cd $$f; make clean) \
done
(cd bin; rm $(EXECUTABLES) > /dev/null 2>&1)
(cd lib; rm *.a) > /dev/null 2>&1)
rm $(EXECUTABLES) > /dev/null 2>&1
rm *.o > /dev/null 2>&1
rm *~ > /dev/null
rm *.sdf > /dev/null 2>&1
rm config.cache config.log config.status > /dev/null 2>&1
rm work.pc work.pcl > /dev/null 2>&1
rm -r autom4te.cache 2>&1
rm Makefile > /dev/null 2>&1