Debian Codegraph @

demo/wrap-ctypes-f90/makefile

raw
1 include ../config.mk
2 .PHONY: default build test clean
3 default: build test clean
4
5 LIBRARY = helloworld
6 SOURCE = $(LIBRARY).f90
7 TARGET = lib$(LIBRARY)$(LIB_SUFFIX)
8
9 ifneq ($(MPI_FORTRAN_MOD_DIR),)
10 FCFLAGS += -I$(MPI_FORTRAN_MOD_DIR)
11 endif
12 $(TARGET): $(SOURCE)
13 $(MPIFORT) $(FC_FLAGS_SHARED) -o $@ $<
14
15 build: $(TARGET)
16
17 test: build
18 $(MPIEXEC_PYTHON) test.py
19
20 clean:
21 $(RM) -r $(TARGET) __pycache__