forked from eiscor/eiscor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (25 loc) · 741 Bytes
/
Makefile
File metadata and controls
37 lines (25 loc) · 741 Bytes
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
include make.inc .master.inc
SRCS := $(wildcard ./src/*/*.f90)
OBJS := $(SRCS:.f90=.o)
all: lib$(LIBNAME).$(SLIB).$(VERSION)
install: lib$(LIBNAME).$(SLIB).$(VERSION)
@mkdir -p $(INSTALLDIR)/$(LIBNAME)/lib
@cp ./lib$(LIBNAME).$(SLIB).$(VERSION) $(INSTALLDIR)/$(LIBNAME)/lib
example%:
@$(MAKE) $@ -C ./example
test%:
@$(MAKE) $@ -C ./test
benchmark%:
@$(MAKE) $@ -C ./benchmark
lib$(LIBNAME).$(SLIB).$(VERSION): srcs
$(FC) $(FFLAGS) -shared -o lib$(LIBNAME).$(SLIB).$(VERSION) $(OBJS)
srcs:
@$(MAKE) $@ -C ./src
uninstall: clean
@rm -rf $(INSTALLDIR)/$(LIBNAME)
clean:
@$(MAKE) clean -C ./src
@$(MAKE) clean -C ./example
@$(MAKE) clean -C ./test
@$(MAKE) clean -C ./benchmark
@rm -f lib$(LIBNAME).$(SLIB).$(VERSION)