aboutsummaryrefslogtreecommitdiff
path: root/example_packages/makefile_complex/Makefile
blob: 497c6b2238f8691cfa74cc51a506812c2a2a5839 (plain)
1
2
3
4
5
6
7
8
9
INCLUDE_FLAGS = $(addprefix -I,$(INCLUDE_DIRS))

$(BUILD_DIR)/libmakefile_complex.a: $(BUILD_DIR)/wrapper_mod.o
	ar rs $(@) $(^)

$(BUILD_DIR)/wrapper_mod.mod: src/wrapper_mod.f90

$(BUILD_DIR)/wrapper_mod.o: src/wrapper_mod.f90
	$(FC) -c -J$(BUILD_DIR) $(INCLUDE_FLAGS) $(FFLAGS) -o $(@) $(<)