From 16daa62ac79573fc87127df6e1ba080f197c5e31 Mon Sep 17 00:00:00 2001 From: Brad Richardson Date: Sun, 14 Jun 2020 16:52:28 -0700 Subject: Add support for Makefiles and generic build scripts --- test/example_packages/makefile_complex/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/example_packages/makefile_complex/Makefile (limited to 'test/example_packages/makefile_complex/Makefile') diff --git a/test/example_packages/makefile_complex/Makefile b/test/example_packages/makefile_complex/Makefile new file mode 100644 index 0000000..497c6b2 --- /dev/null +++ b/test/example_packages/makefile_complex/Makefile @@ -0,0 +1,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 $(@) $(<) -- cgit v1.2.3