brian2/devices/cpp_standalone/templates/win_makefile
raw| 1 | all: main.exe |
| 2 | |
| 3 | clean: |
| 4 | del *.obj /s |
| 5 | del *.exe /s |
| 6 | |
| 7 | {% for fname, base in zip(source_files, source_bases) | sort(attribute='0')%} |
| 8 | {{base}}.obj: win_makefile |
| 9 | cl /c /EHsc /I. {{compiler_flags}} {{openmp_flag}} {{fname}} /Fo{{base}}.obj {{compiler_debug_flags}} |
| 10 | |
| 11 | {% endfor %} |
| 12 | |
| 13 | main.exe: {% for base in source_bases | sort%}{{base}}.obj {% endfor %} win_makefile sourcefiles.txt |
| 14 | link @sourcefiles.txt {{linker_flags}} /LIBPATH:. /OUT:main.exe {{linker_debug_flags}} |