-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
53 lines (38 loc) · 1.07 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
51
52
53
include Makefile.in
# Files
CODE = arts
MODULES = library geometry metric core monitor operator solver combustion sgsmodel boundary pollutants spray radiation postprocess
LIBRARIES = core postprocess sgsmodel combustion solver radiation spray pollutants boundary operator geometry metric monitor library
# Targets
default:Makefile Makefile.in
@make libraries
@make $(CODE)
@make util
all: Makefile Makefile.in
@make libraries
@make $(CODE)
@make util
opt:
@make "FLAGS = $(OPTFLAGS)"
debug:
@make "FLAGS = $(DBGFLAGS)"
allopt:
@make all "FLAGS = $(OPTFLAGS)"
alldebug:
@make all "FLAGS = $(DBGFLAGS)"
$(CODE):$(MODULES:%=lib%.a)
$(LD) $(FLAGS) $(OBJDIR)/main.o $(LIBRARIES:%=$(LIBDIR)/lib%.a) $(LAPACK_LIB) $(BLAS_LIB) $(HYPRE_LIB) $(FFTW_LIB) $(SUNDIALS_LIB) -o $(BINDIR)/$(CODE) $(LDFLAGS)
libraries:
@for i in $(MODULES); do make -C $$i; done
clean:
@for i in $(MODULES); do make clean -C $$i; done
rm -f $(BINDIR)/$(CODE)
util: $(MODULES:%=lib%.a)
@make -C tools
utilclean:
@make -C tools clean
distclean:
@make clean
@make utilclean
install:
$(INSTSCPT)