diff options
author | Brad Richardson <brichardson@structint.com> | 2020-06-14 16:52:28 -0700 |
---|---|---|
committer | Brad Richardson <brichardson@structint.com> | 2020-06-14 16:52:28 -0700 |
commit | 16daa62ac79573fc87127df6e1ba080f197c5e31 (patch) | |
tree | 861b7e21e73111f078f6b2d62618ed1dd539a67e /test/example_packages/with_makefile/Makefile | |
parent | f97260ef5b5dfe9e2872394a4539090e71e1ceff (diff) | |
download | fpm-16daa62ac79573fc87127df6e1ba080f197c5e31.tar.gz fpm-16daa62ac79573fc87127df6e1ba080f197c5e31.zip |
Add support for Makefiles and generic build scripts
Diffstat (limited to 'test/example_packages/with_makefile/Makefile')
-rw-r--r-- | test/example_packages/with_makefile/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/example_packages/with_makefile/Makefile b/test/example_packages/with_makefile/Makefile new file mode 100644 index 0000000..51e72d4 --- /dev/null +++ b/test/example_packages/with_makefile/Makefile @@ -0,0 +1,9 @@ +INCLUDE_FLAGS = $(addprefix -I,$(INCLUDE_DIRS)) + +$(BUILD_DIR)/libwith_makefile.a: $(BUILD_DIR)/hello_makefile.o + ar rs $(@) $(^) + +$(BUILD_DIR)/hello_makefile.mod: src/hello_makefile.f90 + +$(BUILD_DIR)/hello_makefile.o: src/hello_makefile.f90 + $(FC) -c -J$(BUILD_DIR) $(INCLUDE_FLAGS) $(FFLAGS) -o $(@) $(<) |