Mercurial > games > semicongine
comparison Makefile @ 12:9e5fe647ff91
did: cleanup up a bit
author | Sam <sam@basx.dev> |
---|---|
date | Tue, 27 Dec 2022 20:47:48 +0700 |
parents | 0660ba9d1930 |
children | a571db114152 |
comparison
equal
deleted
inserted
replaced
11:3415afff1d1a | 12:9e5fe647ff91 |
---|---|
4 RELEASE_OPTIONS := -d:release --checks:off --assertions:off | 4 RELEASE_OPTIONS := -d:release --checks:off --assertions:off |
5 WINDOWS_DEBUG_OPTIONS := --cc:vcc --passC:'/MDd' --passL:'ucrtd.lib' | 5 WINDOWS_DEBUG_OPTIONS := --cc:vcc --passC:'/MDd' --passL:'ucrtd.lib' |
6 WINDOWS_RELEASE_OPTIONS := --cc:vcc --passC:'/MD' --passL:'ucrt.lib' | 6 WINDOWS_RELEASE_OPTIONS := --cc:vcc --passC:'/MD' --passL:'ucrt.lib' |
7 | 7 |
8 # build | 8 # build |
9 build/debug/linux/test: ${SOURCES} | 9 build/debug/linux/hello_triangle: ${SOURCES} |
10 mkdir -p $$( dirname $@ ) | 10 mkdir -p $$( dirname $@ ) |
11 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -o:$@ examples/test.nim | 11 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} -o:$@ examples/hello_triangle.nim |
12 build/release/linux/test: ${SOURCES} | 12 build/release/linux/hello_triangle: ${SOURCES} |
13 mkdir -p $$( dirname $@ ) | 13 mkdir -p $$( dirname $@ ) |
14 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} -o:$@ examples/test.nim | 14 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} -o:$@ examples/hello_triangle.nim |
15 build/debug/windows/test.exe: ${SOURCES} | 15 build/debug/windows/hello_triangle.exe: ${SOURCES} |
16 mkdir -p $$( dirname $@ ) | 16 mkdir -p $$( dirname $@ ) |
17 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} ${WINDOWS_DEBUG_OPTIONS} -o:$@ examples/test.nim | 17 nim c ${COMPILE_OPTIONS} ${DEBUG_OPTIONS} ${WINDOWS_DEBUG_OPTIONS} -o:$@ examples/hello_triangle.nim |
18 build/release/windows/test.exe: ${SOURCES} | 18 build/release/windows/hello_triangle.exe: ${SOURCES} |
19 mkdir -p $$( dirname $@ ) | 19 mkdir -p $$( dirname $@ ) |
20 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} ${WINDOWS_RELEASE_OPTIONS} -o:$@ examples/test.nim | 20 nim c ${COMPILE_OPTIONS} ${RELEASE_OPTIONS} ${WINDOWS_RELEASE_OPTIONS} -o:$@ examples/hello_triangle.nim |
21 | 21 |
22 build_all_linux: build/debug/linux/test build/release/linux/test | 22 build_all_linux: build/debug/linux/hello_triangle build/release/linux/hello_triangle |
23 build_all_windows: build/debug/windows/test.exe build/release/windows/test.exe | 23 build_all_windows: build/debug/windows/hello_triangle.exe build/release/windows/hello_triangle.exe |
24 | 24 |
25 build_all: build_all_linux build_all_windows | 25 build_all: build_all_linux build_all_windows |
26 | 26 |
27 clean: | |
28 rm -rf build | |
29 | |
27 # publish | 30 # publish |
28 publish_linux_debug: build/debug/linux/test | 31 publish_linux_debug: build/debug/linux/hello_triangle |
29 scp $< basx.dev:/var/www/public.basx.dev/joni/linux/debug/ | 32 scp $< basx.dev:/var/www/public.basx.dev/joni/linux/debug/ |
30 publish_linux_release: build/release/linux/test | 33 publish_linux_release: build/release/linux/hello_triangle |
31 scp $< basx.dev:/var/www/public.basx.dev/joni/linux/release/ | 34 scp $< basx.dev:/var/www/public.basx.dev/joni/linux/release/ |
32 publish_windows_debug: build/debug/linux/test | 35 publish_windows_debug: build/debug/linux/hello_triangle |
33 scp $< basx.dev:/var/www/public.basx.dev/joni/windows/debug/ | 36 scp $< basx.dev:/var/www/public.basx.dev/joni/windows/debug/ |
34 publish_windows_release: build/release/linux/test | 37 publish_windows_release: build/release/linux/hello_triangle |
35 scp $< basx.dev:/var/www/public.basx.dev/joni/windows/release/ | 38 scp $< basx.dev:/var/www/public.basx.dev/joni/windows/release/ |
36 | 39 |
37 publish_all: publish_linux_debug publish_linux_release publish_windows_debug publish_windows_release | 40 publish_all: publish_linux_debug publish_linux_release publish_windows_debug publish_windows_release |
38 | 41 |
39 | 42 |