# How to correctly write Makefile for code with submodules?

**URL:** <https://fortran-lang.discourse.group/t/how-to-correctly-write-makefile-for-code-with-submodules/2121>\
**Category:** Uncategorized\
**Created:** [October 20, 2021, 3:42am UTC](https://fortran-lang.discourse.group/t/how-to-correctly-write-makefile-for-code-with-submodules/2121 "2021-10-20T03:42:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![CRquantum](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/crquantum/32/730_2.png) [@CRquantum](https://fortran-lang.discourse.group/u/CRquantum)\
**Post date:** [October 20, 2021, 8:04am UTC](https://fortran-lang.discourse.group/t/how-to-correctly-write-makefile-for-code-with-submodules/2121/3 "2021-10-20T08:04:07Z")

</div>

Thank you so much @Arjen , yeah I figured it out and uploaded the correct Makefile for ifort on windows and gfortran on linux in my gitlab folder.  
When you have time, would you mind slightly look at another heap array issue of the same code? Thank you very much indeed!

> [@Does heap arrays slow down the code a lot?](https://fortran-lang.discourse.group/t/does-heap-arrays-slow-down-the-code-a-lot/2123):
>
> Deal all, I am a little confused, under what condition, heap arrays will slow the code by a lot? I am testing @prince_mahajan nice flint ODE code on my machine. Using intel OneAPI on windows and gfortran on Linux. code is here [flint\_OneAPI · main · Chen Rong / FLINT\_Test · GitLab](https://gitlab.com/CRquantum/flint_test/-/tree/main/flint_OneAPI) putting all the f90 in visual studio with Intel OneAPI, you can compile and run. Or if you are in linux with gfortran, you could just use the Makefile to build and run. Let us just say in windows, VS + ifort, T…

---

_[View the full topic](https://fortran-lang.discourse.group/t/how-to-correctly-write-makefile-for-code-with-submodules/2121)._
