Skip to content

Commit 4894b35

Browse files
authored
Make - using automatic number of cores (#7849)
#changelog #make
1 parent ea5705e commit 4894b35

15 files changed

Lines changed: 31 additions & 31 deletions

File tree

libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ endif
136136

137137
Debug:
138138
@echo Compiling OF library for Debug
139-
$(MAKE) -C $(OF_ROOT)/libs/openFrameworksCompiled/project/ Debug PLATFORM_OS=$(PLATFORM_OS) ABIS_TO_COMPILE_DEBUG="$(ABIS_TO_COMPILE_DEBUG)"
139+
$(MAKE) -j -C $(OF_ROOT)/libs/openFrameworksCompiled/project/ Debug PLATFORM_OS=$(PLATFORM_OS) ABIS_TO_COMPILE_DEBUG="$(ABIS_TO_COMPILE_DEBUG)"
140140
@echo
141141
@echo
142142
@echo Compiling $(APPNAME) for Debug

scripts/ci/addons/build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ if "%BUILDER%"=="VS" (
77

88
if "%BUILDER%"=="MSYS2" (
99
for /D %%e in (addons\%APPVEYOR_PROJECT_NAME%\example*) do (
10-
%MSYS2_PATH%\usr\bin\bash -lc "make -j2 -C addons/%APPVEYOR_PROJECT_NAME%/%%~ne Debug"
10+
%MSYS2_PATH%\usr\bin\bash -lc "make -j -C addons/%APPVEYOR_PROJECT_NAME%/%%~ne Debug"
1111
)
1212
)

scripts/ci/addons/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ elif [ "$TARGET" == "linuxarmv7l" ]; then
3737
export CXXFLAGS="${CXXFLAGS} -ftrack-macro-expansion=0";
3838
export GCCVER=7.1.1
3939
cd \$1
40-
make -j2 DebugNoOF PLATFORM_VARIANT=raspberry2
40+
make -j DebugNoOF PLATFORM_VARIANT=raspberry2
4141
EOF
4242
export PATH=~/.local/share/junest/bin:$PATH
4343
chmod 755 build_junest.sh
@@ -70,18 +70,18 @@ if ls example* 1> /dev/null 2>&1; then
7070
if [ "$TARGET" == "android" ]; then
7171
cd $example
7272
echo "ABIS_TO_COMPILE_DEBUG = $OPT" >> config.make
73-
make -j2 DebugNoOF PLATFORM_OS=Android
73+
make -j DebugNoOF PLATFORM_OS=Android
7474
cd ..
7575
elif [ "$TARGET" == "emscripten" ]; then
7676
cd $example
77-
emmake make -j2 DebugNoOF
77+
emmake make -j DebugNoOF
7878
cd ..
7979
elif [ "$TARGET" == "linuxarmv7l" ]; then
8080
#make DebugNoOF PLATFORM_VARIANT=raspberry2
8181
junest ./build_junest.sh $(cd $example; pwd -P)
8282
else
8383
cd $example
84-
make -j2 DebugNoOF
84+
make -j DebugNoOF
8585
cd ..
8686
fi
8787
done

scripts/ci/android/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ else
5353
cd $OF_ROOT/
5454
scripts/linux/download_libs.sh
5555
cd $OF_ROOT/apps/projectGenerator/commandLine
56-
make -j2 Debug -C .
56+
make -j Debug -C .
5757
ret=$?
5858
if [ $ret -ne 0 ]; then
5959
echo "Failed building Project Generator"

scripts/ci/emscripten/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ cd $ROOT
1515
#echo "PLATFORM_CFLAGS += $CUSTOMFLAGS" >> libs/openFrameworksCompiled/project/emscripten/config.emscripten.default.mk
1616
sed -i "s/PLATFORM_OPTIMIZATION_CFLAGS_DEBUG = .*/PLATFORM_OPTIMIZATION_CFLAGS_DEBUG = -g0/" libs/openFrameworksCompiled/project/emscripten/config.emscripten.default.mk
1717
cd libs/openFrameworksCompiled/project
18-
emmake make -j2 Debug # USE_CCACHE=1
18+
emmake make -j Debug # USE_CCACHE=1
1919

2020
echo "**** Building emptyExample ****"
2121
cd $ROOT/scripts/templates/linux64
22-
emmake make -j2 Debug # USE_CCACHE=1
22+
emmake make -j Debug # USE_CCACHE=1
2323

2424
echo "**** Building allAddonsExample ****"
2525
cd $ROOT
@@ -45,4 +45,4 @@ sed -i "s/ofxKinect kinect;//" src/ofApp.h
4545
sed -i "s/ofxThreadedImageLoader .*;//" src/ofApp.h
4646
sed -i "s/ofxXmlPoco .*;//" src/ofApp.h
4747

48-
emmake make -j2 Debug # USE_CCACHE=1
48+
emmake make -j Debug # USE_CCACHE=1

scripts/ci/emscripten/examples_to_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ for folder in "${folders[@]}"; do
191191
cd $folder
192192
cp ../../../scripts/templates/emscripten/Makefile .
193193
cp ../../../scripts/templates/emscripten/config.make .
194-
emmake make -j2 Release
194+
emmake make -j Release
195195

196196
errorcode=$?
197197
if [[ $errorcode -ne 0 ]]; then

scripts/ci/linux64/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ else
2525
echo "PLATFORM_CFLAGS += $CUSTOMFLAGS" >> libs/openFrameworksCompiled/project/linux64/config.linux64.default.mk
2626
sed -i "s/PLATFORM_OPTIMIZATION_CFLAGS_DEBUG = .*/PLATFORM_OPTIMIZATION_CFLAGS_DEBUG = -g0/" libs/openFrameworksCompiled/project/makefileCommon/config.linux.common.mk
2727
cd libs/openFrameworksCompiled/project
28-
make -j2
28+
make -j
2929

3030
echo "**** Building emptyExample ****"
3131
cd $ROOT/scripts/templates/linux64
32-
make -j2
32+
make -j
3333

3434
echo "**** Building allAddonsExample ****"
3535
cd $ROOT
3636
cp scripts/templates/linux64/Makefile examples/templates/allAddonsExample/
3737
cp scripts/templates/linux64/config.make examples/templates/allAddonsExample/
3838
cd examples/templates/allAddonsExample/
39-
make -j2
39+
make -j
4040
fi

scripts/ci/linux64/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ else
1515
cd $test
1616
cp ../../../scripts/templates/linux/Makefile .
1717
cp ../../../scripts/templates/linux/config.make .
18-
make -j2 Debug
18+
make -j Debug
1919
cd bin
2020
binname=$(basename ${test})
2121
#gdb -batch -ex "run" -ex "bt" -ex "q \$_exitcode" ./${binname}_debug

scripts/ci/linuxaarch64/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ cd $OF_ROOT
2323
cp scripts/templates/linuxaarch64/Makefile examples/templates/emptyExample/
2424
cp scripts/templates/linuxaarch64/config.make examples/templates/emptyExample/
2525
cd examples/templates/emptyExample/
26-
make Debug -j2
26+
make Debug -j
2727

2828
#TODO:
2929
#echo "**** Building allAddonsExample ****"
3030
#cd $OF_ROOT
3131
#cp scripts/templates/linuxaarch64/Makefile examples/templates/allAddonsExample/
3232
#cp scripts/templates/linuxaarch64/config.make examples/templates/allAddonsExample/
3333
#cd examples/templates/allAddonsExample/
34-
#make Debug -j2
34+
#make Debug -j

scripts/ci/linuxarmv6l/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ cd $OF_ROOT
2525
cp scripts/templates/linuxarmv6l/Makefile examples/templates/emptyExample/
2626
cp scripts/templates/linuxarmv6l/config.make examples/templates/emptyExample/
2727
cd examples/templates/emptyExample/
28-
make Debug -j2
28+
make Debug -j
2929

3030
echo "**** Building allAddonsExample ****"
3131
cd $OF_ROOT
3232
cp scripts/templates/linuxarmv6l/Makefile examples/templates/allAddonsExample/
3333
cp scripts/templates/linuxarmv6l/config.make examples/templates/allAddonsExample/
3434
cd examples/templates/allAddonsExample/
35-
make Debug -j2
35+
make Debug -j

0 commit comments

Comments
 (0)