Mercurial > games > semicongine
comparison Makefile @ 485:b4a972bd37d5
did: change shader compilation to run during program compilation, maybe add dynamic version later
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 11 Jan 2023 11:15:02 +0700 |
parents | 73a0954beabd |
children | 8f290112718a |
comparison
equal
deleted
inserted
replaced
484:04605ca6dd8a | 485:b4a972bd37d5 |
---|---|
1 SOURCES := $(shell find src -name '*.nim') | 1 SOURCES := $(shell find src -name '*.nim') |
2 | 2 |
3 # build hello_triangle | 3 # build hello_triangle |
4 build/debug/linux/hello_triangle: ${SOURCES} | 4 build/debug/linux/hello_triangle: ${SOURCES} thirdparty/bin/linux |
5 nim build_linux_debug -o:$@ examples/hello_triangle.nim | 5 nim build_linux_debug -o:$@ examples/hello_triangle.nim |
6 build/release/linux/hello_triangle: ${SOURCES} | 6 build/release/linux/hello_triangle: ${SOURCES} thirdparty/bin/linux |
7 nim build_linux_release -o:$@ examples/hello_triangle.nim | 7 nim build_linux_release -o:$@ examples/hello_triangle.nim |
8 build/debug/windows/hello_triangle.exe: ${SOURCES} build/nim_windows | 8 build/debug/windows/hello_triangle.exe: ${SOURCES} thirdparty/bin/windows |
9 # ${WINE_NIM} build_windows_debug -o:$@ examples/hello_triangle.nim | |
10 nim build_windows_debug -o:$@ examples/hello_triangle.nim | 9 nim build_windows_debug -o:$@ examples/hello_triangle.nim |
11 build/release/windows/hello_triangle.exe: ${SOURCES} build/nim_windows | 10 build/release/windows/hello_triangle.exe: ${SOURCES} thirdparty/bin/windows |
12 nim build_windows_release -o:$@ examples/hello_triangle.nim | 11 nim build_windows_release -o:$@ examples/hello_triangle.nim |
13 | |
14 # build alotof_triangles | |
15 build/debug/linux/alotof_triangles: ${SOURCES} | |
16 nim build_linux_debug -o:$@ examples/alotof_triangles.nim | |
17 build/release/linux/alotof_triangles: ${SOURCES} | |
18 nim build_linux_release -o:$@ examples/alotof_triangles.nim | |
19 build/debug/windows/alotof_triangles.exe: ${SOURCES} build/nim_windows | |
20 nim build_windows_debug -o:$@ examples/alotof_triangles.nim | |
21 build/release/windows/alotof_triangles.exe: ${SOURCES} build/nim_windows | |
22 nim build_windows_release -o:$@ examples/alotof_triangles.nim | |
23 | 12 |
24 build_all_linux_hello_triangle: build/debug/linux/hello_triangle build/release/linux/hello_triangle | 13 build_all_linux_hello_triangle: build/debug/linux/hello_triangle build/release/linux/hello_triangle |
25 build_all_windows_hello_triangle: build/debug/windows/hello_triangle.exe build/release/windows/hello_triangle.exe | 14 build_all_windows_hello_triangle: build/debug/windows/hello_triangle.exe build/release/windows/hello_triangle.exe |
26 build_all_hello_triangle: build_all_linux_hello_triangle build_all_windows_hello_triangle | 15 build_all_hello_triangle: build_all_linux_hello_triangle build_all_windows_hello_triangle |
16 | |
17 # build alotof_triangles | |
18 build/debug/linux/alotof_triangles: ${SOURCES} thirdparty/bin/linux | |
19 nim build_linux_debug -o:$@ examples/alotof_triangles.nim | |
20 build/release/linux/alotof_triangles: ${SOURCES} thirdparty/bin/linux | |
21 nim build_linux_release -o:$@ examples/alotof_triangles.nim | |
22 build/debug/windows/alotof_triangles.exe: ${SOURCES} thirdparty/bin/windows | |
23 nim build_windows_debug -o:$@ examples/alotof_triangles.nim | |
24 build/release/windows/alotof_triangles.exe: ${SOURCES} thirdparty/bin/windows | |
25 nim build_windows_release -o:$@ examples/alotof_triangles.nim | |
27 | 26 |
28 build_all_linux_alotof_triangles: build/debug/linux/alotof_triangles build/release/linux/alotof_triangles | 27 build_all_linux_alotof_triangles: build/debug/linux/alotof_triangles build/release/linux/alotof_triangles |
29 build_all_windows_alotof_triangles: build/debug/windows/alotof_triangles.exe build/release/windows/alotof_triangles.exe | 28 build_all_windows_alotof_triangles: build/debug/windows/alotof_triangles.exe build/release/windows/alotof_triangles.exe |
30 build_all_alotof_triangles: build_all_linux_alotof_triangles build_all_windows_alotof_triangles | 29 build_all_alotof_triangles: build_all_linux_alotof_triangles build_all_windows_alotof_triangles |
31 | 30 |