File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1+ CPUS := $(shell grep -c ^processor /proc/cpuinfo)
2+
13all : build_debug
24 true
35
46build_debug : box2d premake
57 .build/premake5 gmake --cc=clang
6- make -C .build config=debug_x86_64 -j $(($(grep -c ^processor /proc/cpuinfo ) /2 ) )
8+ make -C .build config=debug_x86_64 -j $$ (($(CPUS ) /2 ) )
79 test -d bin || mkdir bin
810 cp .build/bin/x86_64/Debug/carnage3d bin/carnage3d-debug
911
1012build_release : box2d premake
1113 .build/premake5 gmake --cc=clang
12- make -C .build config=release_x86_64 -j $(($(grep -c ^processor /proc/cpuinfo ) /2 ) )
14+ make -C .build config=release_x86_64 -j $$ (($(CPUS ) /2 ) )
1315 test -d bin || mkdir bin
1416 cp .build/bin/x86_64/Release/carnage3d bin/carnage3d-release
1517
@@ -41,7 +43,7 @@ premake: builddir
4143
4244box2d : premake
4345 .build/premake5 --file=third_party/Box2D/premake5.lua gmake
44- make -C third_party/Box2D/Build config=debug_x86_64
45- make -C third_party/Box2D/Build config=release_x86_64
46+ make -C third_party/Box2D/Build config=debug_x86_64 -j $$( ( $( CPUS ) /2 ) )
47+ make -C third_party/Box2D/Build config=release_x86_64 -j $$( ( $( CPUS ) /2 ) )
4648
4749
You can’t perform that action at this time.
0 commit comments