diff options
author | Brad Richardson <everythingfunctional@protonmail.com> | 2020-06-15 19:59:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 19:59:58 -0700 |
commit | 410537bbe21c91a4ec27e45ead99a9f83454c099 (patch) | |
tree | 58f186a47143392564cae718abb9017293e5e3d4 /test/example_packages/makefile_complex/Makefile | |
parent | f97260ef5b5dfe9e2872394a4539090e71e1ceff (diff) | |
parent | df531fcffdd5c7b6233d0107152725ce3f8f22c1 (diff) | |
download | fpm-410537bbe21c91a4ec27e45ead99a9f83454c099.tar.gz fpm-410537bbe21c91a4ec27e45ead99a9f83454c099.zip |
Merge pull request #99 from everythingfunctional/MakefileSupport
Add support for Makefiles and generic build scripts
Diffstat (limited to 'test/example_packages/makefile_complex/Makefile')
-rw-r--r-- | test/example_packages/makefile_complex/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
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 $(@) $(<) |