forked from kovalp/libnpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (36 loc) · 954 Bytes
/
Makefile
File metadata and controls
45 lines (36 loc) · 954 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
36
37
38
39
40
41
42
43
44
45
include arch.inc
LIBRARIES = \
libnpy_c_only_bindings \
libnpy_fortran_mod \
libnpy_fortran_nomod
.SUFFIXES: .o .F90 .f90 .c .py
.PHONY: $(LIBRARIES) clean install
.NOTPARALLEL: $(EXECUTABLES)
all: $(LIBRARIES)
libnpy_c_only_bindings:
make -C $@
@echo "$@ is finished."
libnpy_fortran_mod:
make -C $@
@echo "$@ is finished."
libnpy_fortran_nomod:
make -C $@
@echo "$@ is finished."
check: $(LIBRARIES)
make -C libnpy_c_only_bindings check
make -C libnpy_fortran_mod check
make -C libnpy_fortran_nomod check
clean:
make -C libnpy_c_only_bindings clean
make -C libnpy_fortran_mod clean
make -C libnpy_fortran_nomod clean
install:
ifeq ($(INSTALL_FLAVOR), c_only_bindings)
make -C libnpy_c_only_bindings install
else ifeq ($(INSTALL_FLAVOR), fortran_mod)
make -C libnpy_fortran_mod install
else ifeq ($(INSTALL_FLAVOR), fortran_nomod)
make -C libnpy_fortran_nomod install
else
@echo "Unknown INSTALL_FLAVOR $(INSTALL_FLAVOR)"
endif