diff options
| author | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
| commit | ca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch) | |
| tree | b06b9eec03f34344ef8fc31aa147b2714d3962ee /PxShared | |
| parent | Forced rename of platform folders in cmake dir. Git didn't pick this up before. (diff) | |
| download | nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip | |
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'PxShared')
78 files changed, 7513 insertions, 0 deletions
diff --git a/PxShared/.clang-format b/PxShared/.clang-format new file mode 100644 index 0000000..a5296d6 --- /dev/null +++ b/PxShared/.clang-format @@ -0,0 +1,48 @@ +--- +# BasedOnStyle: LLVM +AccessModifierOffset: -2 +ConstructorInitializerIndentWidth: 0 +AlignEscapedNewlinesLeft: false +AlignEnumAssignments: true +AlignTrailingComments: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakTemplateDeclarations: true +AlwaysBreakBeforeMultilineStrings: false +BreakBeforeBinaryOperators: false +BreakBeforeTernaryOperators: true +BreakConstructorInitializersBeforeComma: true +BinPackParameters: true +ColumnLimit: 120 +ConstructorInitializerAllOnOneLineOrOnePerLine: true +DerivePointerBinding: false +ExperimentalAutoDetectBinPacking: false +IndentCaseLabels: false +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: None +ObjCSpaceBeforeProtocolList: true +PenaltyBreakBeforeFirstCallParameter: 19 +PenaltyBreakComment: 16 +PenaltyBreakString: 1000 +PenaltyBreakFirstLessLess: 120 +PenaltyExcessCharacter: 10 +PenaltyReturnTypeOnItsOwnLine: 60 +PointerBindsToType: true +SpacesBeforeTrailingComments: 1 +Cpp11BracedListStyle: false +Standard: Cpp03 +IndentWidth: 4 +TabWidth: 4 +UseTab: ForIndentation +BreakBeforeBraces: Allman +IndentFunctionDeclarationAfterType: false +SpacesInParentheses: false +SpacesInAngles: false +SpaceInEmptyParentheses: false +SpacesInCStyleCastParentheses: false +SpaceAfterControlStatementKeyword: false +SpaceBeforeAssignmentOperators: true +ContinuationIndentWidth: 4 +... + diff --git a/PxShared/GenerateProjects.bat b/PxShared/GenerateProjects.bat new file mode 100644 index 0000000..7924d3f --- /dev/null +++ b/PxShared/GenerateProjects.bat @@ -0,0 +1,49 @@ +@echo off + +REM Make sure the various variables that we need are set + +IF NOT DEFINED GW_DEPS_ROOT GOTO GW_DEPS_ROOT_UNDEFINED + +IF NOT DEFINED BOOST_ROOT GOTO BOOST_ROOT_UNDEFINED + +IF NOT DEFINED CUDA_BIN_PATH GOTO CUDA_ROOT_UNDEFINED + +IF EXIST GW_DEPS_ROOT\CMakeModules ( + set CMAKE_MODULE_PATH=%GW_DEPS_ROOT%\CMakeModules +) ELSE ( + set CMAKE_MODULE_PATH=%GW_DEPS_ROOT%\sw\physx\tools\CMakeModules +) + +REM Generate projects here + +rmdir /s /q compiler\vc12win32-cmake\ +mkdir compiler\vc12win32-cmake\ +pushd compiler\vc12win32-cmake\ +cmake ..\cmake\windows -G "Visual Studio 12 2013" -AWin32 -DTARGET_BUILD_PLATFORM=windows +popd + +rmdir /s /q compiler\vc12win64-cmake\ +mkdir compiler\vc12win64-cmake\ +pushd compiler\vc12win64-cmake\ +cmake ..\cmake\windows -G "Visual Studio 12 2013" -Ax64 -DTARGET_BUILD_PLATFORM=windows +popd + +popd + +GOTO :End + +:GW_DEPS_ROOT_UNDEFINED +ECHO GW_DEPS_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:BOOST_ROOT_UNDEFINED +ECHO BOOST_ROOT has to be defined, pointing to the root of your local Boost install. +PAUSE +GOTO END + +:CUDA_ROOT_UNDEFINED +ECHO CUDA_BIN_PATH has to be defined, pointing to the bin folder of your local CUDA install. +PAUSE + +:End diff --git a/PxShared/buildtools/clang-format/clang-format-all.bat b/PxShared/buildtools/clang-format/clang-format-all.bat new file mode 100644 index 0000000..1006b00 --- /dev/null +++ b/PxShared/buildtools/clang-format/clang-format-all.bat @@ -0,0 +1,24 @@ +@echo off +setlocal enabledelayedexpansion + +set BLAST_PATH=..\.. + +set /a count=0 +set /a fail=0 +for /F %%d IN (directories.txt) do ( + call :check %BLAST_PATH%\%%d +) + +echo %fail% of %count% files reformatted. +exit /b %fail% + +:check +for /R "%1" %%f in (*.h, *.cpp, *.cu, *.hlsl) do ( + p4 edit %%f + clang-format.exe -i %%f + if errorlevel 1 ( + echo %%f + set /a fail += 1 + ) + set /a count += 1 +) diff --git a/PxShared/buildtools/clang-format/clang-format-p4.bat b/PxShared/buildtools/clang-format/clang-format-p4.bat new file mode 100644 index 0000000..0b246e3 --- /dev/null +++ b/PxShared/buildtools/clang-format/clang-format-p4.bat @@ -0,0 +1,24 @@ +@echo off +setlocal + +set BLAST_PATH=..\.. + +if "%*"=="" ( + echo Usage: format-change.bat ^<p4 changelist #^> + exit /b +) + +set change=%~1 +for /F %%d IN (directories.txt) do ( + call :format %BLAST_PATH%\%%d +) + +exit /b + +:format +for /F "delims=#" %%a in ('p4 opened -c %change% %~f1\....h, %~f1\....cpp, %~f1\....cu, %~f1\....hlsl 2^> NUL') do ( + for /F "tokens=3" %%f IN ('p4 where %%a') do ( + echo %%f + clang-format.exe -i %%f + ) +) diff --git a/PxShared/buildtools/clang-format/clang-format.exe b/PxShared/buildtools/clang-format/clang-format.exe Binary files differnew file mode 100644 index 0000000..9c91ddf --- /dev/null +++ b/PxShared/buildtools/clang-format/clang-format.exe diff --git a/PxShared/buildtools/clang-format/directories.txt b/PxShared/buildtools/clang-format/directories.txt new file mode 100644 index 0000000..1dc947f --- /dev/null +++ b/PxShared/buildtools/clang-format/directories.txt @@ -0,0 +1,4 @@ +source\common +source\extensions +source\solver +shared\utils diff --git a/PxShared/buildtools/cmake_projects_android.bat b/PxShared/buildtools/cmake_projects_android.bat new file mode 100644 index 0000000..8321e3f --- /dev/null +++ b/PxShared/buildtools/cmake_projects_android.bat @@ -0,0 +1,112 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_android-ndk_PATH %PM_android-ndk_PATH% +echo PM_android-ndk_VERSION %PM_android-ndk_VERSION% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + +REM Generate projects here + +echo. +echo ############################################################################################# +ECHO "Creating android mingw" + +REM Set android compiler variables for cmake +set ANDROID_PLATFORM=android-19 +set ANDROID_ABI="armeabi-v7a with NEON" + +REM Common cmd line params +set CMAKE_CMD_LINE_PARAMS=-DTARGET_BUILD_PLATFORM=android ^ +-DCMAKE_TOOLCHAIN_FILE=%PM_CMakeModules_PATH%/android/android.toolchain.cmake ^ +-DANDROID_NATIVE_API_LEVEL=%ANDROID_PLATFORM% ^ +-DANDROID_ABI=%ANDROID_ABI% ^ +-DANDROID_STL="gnustl_static" ^ +-DCM_ANDROID_FP="softfp" ^ +-DANDROID_NDK=%PM_AndroidNDK_PATH% ^ +-DCM_ANDROID_NDK_VERSION=%PM_AndroidNDK_VERSION% ^ +-DCMAKE_MAKE_PROGRAM=%PM_android-ndk_PATH%/prebuilt/windows/bin/make.exe ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DPX_OUTPUT_LIB_DIR=%PXSHARED_ROOT_DIR%/ ^ +-DPX_OUTPUT_BIN_DIR=%PXSHARED_ROOT_DIR%/ ^ +-DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%/install/android19/ + + +REM Compiler dependend params +set CMAKE_MINGW_CMD_LINE_PARAMS=-G "MinGW Makefiles" +set CMAKE_MSYS_CMD_LINE_PARAMS=-G "MSYS Makefiles" + +SET CMAKE_OUTPUT_DIR=compiler\%ANDROID_PLATFORM%-debug +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake %CMAKE_CMD_LINE_PARAMS% -DCMAKE_BUILD_TYPE=debug %CMAKE_MINGW_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% +) + + +SET CMAKE_OUTPUT_DIR=compiler\%ANDROID_PLATFORM%-profile +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake %CMAKE_CMD_LINE_PARAMS% -DCMAKE_BUILD_TYPE=profile %CMAKE_MINGW_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% +) + +SET CMAKE_OUTPUT_DIR=compiler\%ANDROID_PLATFORM%-checked +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake %CMAKE_CMD_LINE_PARAMS% -DCMAKE_BUILD_TYPE=checked %CMAKE_MINGW_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% +) + +SET CMAKE_OUTPUT_DIR=compiler\%ANDROID_PLATFORM%-release +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake %CMAKE_CMD_LINE_PARAMS% -DCMAKE_BUILD_TYPE=release %CMAKE_MINGW_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% +) + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_ios.sh b/PxShared/buildtools/cmake_projects_ios.sh new file mode 100644 index 0000000..b8c9878 --- /dev/null +++ b/PxShared/buildtools/cmake_projects_ios.sh @@ -0,0 +1,69 @@ +#!/bin/bash +x + +DATE=$(date +"%m-%d-%Y") +TIME=$(date +"%T") +echo "#############################################################################################" +echo "Starting ${0##*/} $DATE $TIME " +echo "#############################################################################################" + +echo "PM_CMakeModules_VERSION $PM_CMakeModules_VERSION" +echo "PM_CMakeModules_PATH $PM_CMakeModules_PATH" +echo "PM_PATHS $PM_PATHS" + +[ -z "$PM_CMakeModules_VERSION" ] && echo "Don't run this batch file directly. Run generate_projects_(platform).bat instead." && exit 1; + +[ -z "$PM_PACKAGES_ROOT" ] && echo "PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree." && exit 1; + +# Now set up the CMake command from PM_PACKAGES_ROOT + +CMAKECMD=$PM_cmake_PATH/bin/cmake + +echo "Cmake: $CMAKECMD" + +echo "#############################################################################################" +echo "Creating Ios XCode projects" + + +# Common cmd line params +CMAKE_CMD_LINE_PARAMS="\ +-DTARGET_BUILD_PLATFORM=ios \ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON \ +-DAPPEND_CONFIG_NAME=OFF \ +-DCMAKE_PREFIX_PATH=$PM_PATHS \ +-DFORCE_64BIT_SUFFIX=ON \ +-DPX_OUTPUT_ARCH=arm \ +-DPX_OUTPUT_LIB_DIR=$PXSHARED_ROOT_DIR \ +-DPX_OUTPUT_BIN_DIR=$PXSHARED_ROOT_DIR \ +-DCMAKE_TOOLCHAIN_FILE=$PM_CMakeModules_PATH/ios/ios.toolchain.cmake \ +-DCMAKE_INSTALL_PREFIX=$PXSHARED_ROOT_DIR/install/ios \ +-DUSE_DEBUG_WINCRT=OFF" + +# Generate projects here + +IOSPLATDIR=ios +mkdir -p compiler +CMAKE_OUTPUT_DIR=compiler/$IOSPLATDIR-xcode/ + +rm -r -f $CMAKE_OUTPUT_DIR +mkdir -p $CMAKE_OUTPUT_DIR +pushd $CMAKE_OUTPUT_DIR + +$CMAKECMD $PXSHARED_ROOT_DIR/src/compiler/cmake -G "Xcode" -DCMAKE_INSTALL_PREFIX=$PXSHARED_ROOT_DIR/install/$IOSPLATDIR/ $CMAKE_CMD_LINE_PARAMS || exit 1 + +popd + +OSXPLATDIR=ios +mkdir -p compiler +for config in "debug" "profile" "checked" "release"; do +CMAKE_OUTPUT_DIR=compiler/$IOSPLATDIR-$config/ + +rm -r -f $CMAKE_OUTPUT_DIR +mkdir -p $CMAKE_OUTPUT_DIR +pushd $CMAKE_OUTPUT_DIR + +$CMAKECMD $PXSHARED_ROOT_DIR/src/compiler/cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$config -DCMAKE_INSTALL_PREFIX=$PXSHARED_ROOT_DIR/install/$IOSPLATDIR/ $CMAKE_CMD_LINE_PARAMS || exit 1 + +popd + +done + diff --git a/PxShared/buildtools/cmake_projects_linux.bat b/PxShared/buildtools/cmake_projects_linux.bat new file mode 100644 index 0000000..e4f5417 --- /dev/null +++ b/PxShared/buildtools/cmake_projects_linux.bat @@ -0,0 +1,101 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +SET LINUX_ROOT=%PM_ClangCrosscompile_PATH% + +echo "Cmake: %CMAKECMD%" +echo "LINUX_ROOT: %LINUX_ROOT%" + +echo. +echo ############################################################################################# +ECHO "Creating linux crosscompiler makefiles" + +REM Common cmd line params +set CMAKE_CMD_LINE_PARAMS= ^ +-DTARGET_BUILD_PLATFORM=linux ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DPX_OUTPUT_ARCH=x86 ^ +-DPX_OUTPUT_LIB_DIR="%PXSHARED_ROOT_DIR%" ^ +-DPX_OUTPUT_BIN_DIR="%PXSHARED_ROOT_DIR%" ^ +-DCMAKE_INSTALL_PREFIX="%PXSHARED_ROOT_DIR%install/linux/" ^ +-DCMAKE_TOOLCHAIN_FILE="%PM_CMakeModules_PATH%\linux\LinuxCrossToolchain.x86_64-unknown-linux-gnu.cmake" ^ +-DARCHITECTURE_TRIPLE=x86_64-unknown-linux-gnu ^ +-DCMAKE_MAKE_PROGRAM:PATH="%PM_MinGW_PATH%\bin\mingw32-make.exe" ^ +-DGENERATE_STATIC_LIBRARIES=ON + + +REM Generate projects here +SET CMAKE_OUTPUT_DIR=compiler\linux-crosscompile-debug +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake --no-warn-unused-cli %CMAKE_CMD_LINE_PARAMS% -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=debug + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% +) + +SET CMAKE_OUTPUT_DIR=compiler\linux-crosscompile-profile +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -G "Unix Makefiles" %CMAKE_CMD_LINE_PARAMS% -DCMAKE_BUILD_TYPE=profile + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% +) + +SET CMAKE_OUTPUT_DIR=compiler\linux-crosscompile-checked +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -G "Unix Makefiles" %CMAKE_CMD_LINE_PARAMS% -DCMAKE_BUILD_TYPE=checked + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% +) + +SET CMAKE_OUTPUT_DIR=compiler\linux-crosscompile-release +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -G "Unix Makefiles" %CMAKE_CMD_LINE_PARAMS% -DCMAKE_BUILD_TYPE=release + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% +) + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_linux.sh b/PxShared/buildtools/cmake_projects_linux.sh new file mode 100644 index 0000000..2fbfcb7 --- /dev/null +++ b/PxShared/buildtools/cmake_projects_linux.sh @@ -0,0 +1,57 @@ +#!/bin/bash +x + +DATE=$(date +"%m-%d-%Y") +TIME=$(date +"%T") +echo "#############################################################################################" +echo "Starting ${0##*/} $DATE $TIME " +echo "#############################################################################################" + +echo "PM_CMakeModules_VERSION $PM_CMakeModules_VERSION" +echo "PM_CMakeModules_PATH $PM_CMakeModules_PATH" +echo "PM_PATHS $PM_PATHS" + +[ -z "$PM_CMakeModules_VERSION" ] && echo "Don't run this batch file directly. Run generate_projects_(platform).bat instead." && exit 1; + +[ -z "$PM_PACKAGES_ROOT" ] && echo "PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree." && exit 1; + +# Now set up the CMake command from PM_PACKAGES_ROOT + +export CMAKECMD=$PM_cmake_PATH/bin/cmake + +echo "Cmake: $CMAKECMD" + +echo "PXshared Root: $PXSHARED_ROOT_DIR" + +# Generate projects here + +echo "#############################################################################################" +echo "Creating Unix Makefiles" + +# Common cmd line params +CMAKE_CMD_LINE_PARAMS="\ +-DTARGET_BUILD_PLATFORM=linux \ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON \ +-DAPPEND_CONFIG_NAME=OFF \ +-DCMAKE_PREFIX_PATH=$PM_PATHS \ +-DPX_OUTPUT_ARCH=x86 \ +-DPX_OUTPUT_LIB_DIR=$PXSHARED_ROOT_DIR \ +-DPX_OUTPUT_BIN_DIR=$PXSHARED_ROOT_DIR \ +-DCUDA_TOOLKIT_ROOT_DIR=$PM_CUDA_PATH \ +-DCMAKE_INSTALL_PREFIX=$PXSHARED_ROOT_DIR/install/linux/ \ +-DGENERATE_STATIC_LIBRARIES=ON \ +-DPX_GENERATE_GPU_PROJECTS=ON" + +# Compiler dependend params +CMAKE_CLANG_CMD_LINE_PARAMS="-DCMAKE_C_COMPILER=clang-3.8 -DCMAKE_CXX_COMPILER=clang++-3.8" + +# Generate projects here +mkdir -p compiler +for config in "debug" "profile" "checked" "release"; do + +rm -r -f compiler/linux-$config-clang/ +mkdir -p compiler/linux-$config-clang/ +pushd compiler/linux-$config-clang/ +$CMAKECMD $PXSHARED_ROOT_DIR/src/compiler/cmake -G "Unix Makefiles" $CMAKE_CLANG_CMD_LINE_PARAMS -DCMAKE_BUILD_TYPE=$config $CMAKE_CMD_LINE_PARAMS || exit 1 +popd + +done diff --git a/PxShared/buildtools/cmake_projects_mac.sh b/PxShared/buildtools/cmake_projects_mac.sh new file mode 100644 index 0000000..de49902 --- /dev/null +++ b/PxShared/buildtools/cmake_projects_mac.sh @@ -0,0 +1,98 @@ +#!/bin/bash +x + +DATE=$(date +"%m-%d-%Y") +TIME=$(date +"%T") +echo "#############################################################################################" +echo "Starting ${0##*/} $DATE $TIME " +echo "#############################################################################################" + +echo "PM_CMakeModules_VERSION $PM_CMakeModules_VERSION" +echo "PM_CMakeModules_PATH $PM_CMakeModules_PATH" +echo "PM_PATHS $PM_PATHS" + +[ -z "$PM_CMakeModules_VERSION" ] && echo "Don't run this batch file directly. Run generate_projects_(platform).bat instead." && exit 1; + +[ -z "$PM_PACKAGES_ROOT" ] && echo "PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree." && exit 1; + +# Now set up the CMake command from PM_PACKAGES_ROOT + +CMAKECMD=$PM_cmake_PATH/bin/cmake + +echo "Cmake: $CMAKECMD" + +echo "#############################################################################################" +echo "Creating Mac XCode projects" + + +# Common cmd line params +CMAKE_CMD_LINE_PARAMS="\ +-DTARGET_BUILD_PLATFORM=mac \ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON \ +-DAPPEND_CONFIG_NAME=OFF \ +-DCMAKE_PREFIX_PATH=$PM_PATHS \ +-DPX_OUTPUT_ARCH=x86 \ +-DPX_OUTPUT_LIB_DIR=$PXSHARED_ROOT_DIR \ +-DPX_OUTPUT_BIN_DIR=$PXSHARED_ROOT_DIR \ +-DGENERATE_STATIC_LIBRARIES=ON \ +-DUSE_DEBUG_WINCRT=OFF" + +# Compiler dependend params +CMAKE_MAC32_CMD_LINE_PARAMS="-DFORCE_32BIT_SUFFIX=ON" + +CMAKE_MAC64_CMD_LINE_PARAMS="-DFORCE_64BIT_SUFFIX=ON" + +# Generate projects here + +MACPLATDIR=mac32 +mkdir -p compiler +for config in "debug" "profile" "checked" "release"; do +CMAKE_OUTPUT_DIR=compiler/$MACPLATDIR-$config/ + +rm -r -f $CMAKE_OUTPUT_DIR +mkdir -p $CMAKE_OUTPUT_DIR +pushd $CMAKE_OUTPUT_DIR + +$CMAKECMD $PXSHARED_ROOT_DIR/src/compiler/cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$config -DCMAKE_INSTALL_PREFIX=$PXSHARED_ROOT_DIR/install/$MACPLATDIR/ $CMAKE_CMD_LINE_PARAMS $CMAKE_MAC32_CMD_LINE_PARAMS || exit 1 + +popd + +done + +MACPLATDIR=mac64 +mkdir -p compiler +for config in "debug" "profile" "checked" "release"; do +CMAKE_OUTPUT_DIR=compiler/$MACPLATDIR-$config/ + +rm -r -f $CMAKE_OUTPUT_DIR +mkdir -p $CMAKE_OUTPUT_DIR +pushd $CMAKE_OUTPUT_DIR + +$CMAKECMD $PXSHARED_ROOT_DIR/src/compiler/cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$config -DCMAKE_INSTALL_PREFIX=$PXSHARED_ROOT_DIR/install/$MACPLATDIR/ $CMAKE_CMD_LINE_PARAMS $CMAKE_MAC64_CMD_LINE_PARAMS || exit 1 + +popd + +done + +MACPLATDIR=mac32 +mkdir -p compiler +CMAKE_OUTPUT_DIR=compiler/$MACPLATDIR-xcode/ + +rm -r -f $CMAKE_OUTPUT_DIR +mkdir -p $CMAKE_OUTPUT_DIR +pushd $CMAKE_OUTPUT_DIR + +$CMAKECMD $PXSHARED_ROOT_DIR/src/compiler/cmake -G "Xcode" -DCMAKE_BUILD_TYPE=$config -DCMAKE_INSTALL_PREFIX=$PXSHARED_ROOT_DIR/install/$MACPLATDIR/ $CMAKE_CMD_LINE_PARAMS $CMAKE_MAC32_CMD_LINE_PARAMS || exit 1 + +popd + +MACPLATDIR=mac64 +mkdir -p compiler +CMAKE_OUTPUT_DIR=compiler/$MACPLATDIR-xcode/ + +rm -r -f $CMAKE_OUTPUT_DIR +mkdir -p $CMAKE_OUTPUT_DIR +pushd $CMAKE_OUTPUT_DIR + +$CMAKECMD $PXSHARED_ROOT_DIR/src/compiler/cmake -G "Xcode" -DCMAKE_BUILD_TYPE=$config -DCMAKE_INSTALL_PREFIX=$PXSHARED_ROOT_DIR/install/$MACPLATDIR/ $CMAKE_CMD_LINE_PARAMS $CMAKE_MAC64_CMD_LINE_PARAMS || exit 1 + +popd diff --git a/PxShared/buildtools/cmake_projects_vc12win.bat b/PxShared/buildtools/cmake_projects_vc12win.bat new file mode 100644 index 0000000..27a489e --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc12win.bat @@ -0,0 +1,103 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + +REM Common cmd line params +set CMAKE_CMD_LINE_PARAMS=-DTARGET_BUILD_PLATFORM=windows ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DPX_OUTPUT_ARCH=x86 ^ +-DPX_OUTPUT_LIB_DIR="%PXSHARED_ROOT_DIR%" ^ +-DPX_OUTPUT_BIN_DIR="%PXSHARED_ROOT_DIR%" ^ +-DUSE_DEBUG_WINCRT=OFF + +REM Compiler dependend params +set CMAKE_VC12WIN32_CMD_LINE_PARAMS= ^ +-G "Visual Studio 12 2013" -AWin32 ^ +-DPX_GENERATE_GPU_PROJECTS=ON ^ +-DCUDA_TOOLKIT_ROOT_DIR=%PM_CUDA_PATH% + +set CMAKE_VC12WIN64_CMD_LINE_PARAMS= ^ +-G "Visual Studio 12 2013" -Ax64 ^ +-DPX_GENERATE_GPU_PROJECTS=ON ^ +-DCUDA_TOOLKIT_ROOT_DIR=%PM_CUDA_PATH% + +echo. +echo ############################################################################################# +ECHO "Creating VC12 VS2013" + +SET VCPLATDIR=vc12win64-md +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% "%PXSHARED_ROOT_DIR%src/compiler/cmake" -DUSE_STATIC_WINCRT=OFF -DCMAKE_INSTALL_PREFIX="%PXSHARED_ROOT_DIR%install/%VCPLATDIR%/" %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC12WIN64_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc12win64-mt +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% "%PXSHARED_ROOT_DIR%src/compiler/cmake" -DUSE_STATIC_WINCRT=ON -DCMAKE_INSTALL_PREFIX="%PXSHARED_ROOT_DIR%install/%VCPLATDIR%/" %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC12WIN64_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc12win32-mt +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% "%PXSHARED_ROOT_DIR%src/compiler/cmake" -DUSE_STATIC_WINCRT=ON -DCMAKE_INSTALL_PREFIX="%PXSHARED_ROOT_DIR%install/%VCPLATDIR%/" %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC12WIN32_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc12win32-md +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% "%PXSHARED_ROOT_DIR%src/compiler/cmake" -DUSE_STATIC_WINCRT=OFF -DCMAKE_INSTALL_PREFIX="%PXSHARED_ROOT_DIR%install/%VCPLATDIR%/" %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC12WIN32_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_vc14ps4.bat b/PxShared/buildtools/cmake_projects_vc14ps4.bat new file mode 100644 index 0000000..716f8b5 --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc14ps4.bat @@ -0,0 +1,62 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + + +REM Generate projects here + +echo. +echo ############################################################################################# +ECHO "Creating VC14 VS2015 Ps4" + +SET CMAKE_OUTPUT_DIR=compiler\vc14ps4\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake ^ +-G "Visual Studio 14 2015" ^ +-DTARGET_BUILD_PLATFORM=ps4 ^ +-DCMAKE_TOOLCHAIN_FILE="%PM_CMakeModules_PATH%\ps4\PS4Toolchain.txt" ^ +-DCMAKE_GENERATOR_PLATFORM=ORBIS ^ +-DPX_OUTPUT_LIB_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DPX_OUTPUT_BIN_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\clangps4\ + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_vc14switch.bat b/PxShared/buildtools/cmake_projects_vc14switch.bat new file mode 100644 index 0000000..1b496a5 --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc14switch.bat @@ -0,0 +1,62 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + + +REM Generate projects here + +echo. +echo ############################################################################################# +ECHO "Creating VC14 VS2015 Switch" + +SET CMAKE_OUTPUT_DIR=compiler\vc14switch\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake ^ +-G "Visual Studio 14 2015" ^ +-DTARGET_BUILD_PLATFORM=switch ^ +-DCMAKE_TOOLCHAIN_FILE="%PM_CMakeModules_PATH%\switch\NX64Toolchain.txt" ^ +-DCMAKE_GENERATOR_PLATFORM=NX64 ^ +-DPX_OUTPUT_LIB_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DPX_OUTPUT_BIN_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\clangswitch\ + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_vc14uwp.bat b/PxShared/buildtools/cmake_projects_vc14uwp.bat new file mode 100644 index 0000000..5f43473 --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc14uwp.bat @@ -0,0 +1,100 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + +REM Common cmd line params +set CMAKE_CMD_LINE_PARAMS=-DTARGET_BUILD_PLATFORM=uwp ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DPX_OUTPUT_LIB_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DPX_OUTPUT_BIN_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DUSE_DEBUG_WINCRT=OFF ^ +-DCMAKE_SYSTEM_NAME=WindowsStore ^ +-DCMAKE_SYSTEM_VERSION=10.0 + +REM Compiler dependend params +set CMAKE_VC14WIN32_CMD_LINE_PARAMS= ^ +-G "Visual Studio 14" -AWin32 ^ +-DPX_OUTPUT_ARCH=x86 ^ +-DPX_GENERATE_GPU_PROJECTS=OFF + + +set CMAKE_VC14WIN64_CMD_LINE_PARAMS= ^ +-G "Visual Studio 14" -Ax64 ^ +-DPX_OUTPUT_ARCH=x86 ^ +-DPX_GENERATE_GPU_PROJECTS=OFF + +set CMAKE_VC14ARM_CMD_LINE_PARAMS= ^ +-G "Visual Studio 14" -Aarm ^ +-DPX_OUTPUT_ARCH=arm ^ +-DPX_GENERATE_GPU_PROJECTS=OFF + +echo. +echo ############################################################################################# +ECHO "Creating VC14 VS2015" + +SET VCPLATDIR=vc14uwp64 +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\%VCPLATDIR%\ %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC14WIN64_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc14uwp32 +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\%VCPLATDIR%\ %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC14WIN32_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +GOTO :End + +SET VCPLATDIR=vc14uwparm +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\%VCPLATDIR%\ %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC14ARM_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_vc14win.bat b/PxShared/buildtools/cmake_projects_vc14win.bat new file mode 100644 index 0000000..af70161 --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc14win.bat @@ -0,0 +1,104 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + +REM Common cmd line params +set CMAKE_CMD_LINE_PARAMS=-DTARGET_BUILD_PLATFORM=windows ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DPX_OUTPUT_ARCH=x86 ^ +-DPX_OUTPUT_LIB_DIR="%PXSHARED_ROOT_DIR%" ^ +-DPX_OUTPUT_BIN_DIR="%PXSHARED_ROOT_DIR%" ^ +-DUSE_DEBUG_WINCRT=OFF + +REM Compiler dependend params +set CMAKE_VC14WIN32_CMD_LINE_PARAMS= ^ +-G "Visual Studio 14 2015" -AWin32 ^ +-DPX_GENERATE_GPU_PROJECTS=ON ^ +-DCUDA_TOOLKIT_ROOT_DIR=%PM_CUDA_PATH% + + +set CMAKE_VC14WIN64_CMD_LINE_PARAMS= ^ +-G "Visual Studio 14 2015" -Ax64 ^ +-DPX_GENERATE_GPU_PROJECTS=ON ^ +-DCUDA_TOOLKIT_ROOT_DIR=%PM_CUDA_PATH% + +echo. +echo ############################################################################################# +ECHO "Creating VC14 VS2015" + +SET VCPLATDIR=vc14win64-md +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% "%PXSHARED_ROOT_DIR%src/compiler/cmake" -DUSE_STATIC_WINCRT=OFF -DCMAKE_INSTALL_PREFIX="%PXSHARED_ROOT_DIR%install/%VCPLATDIR%/" %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC14WIN64_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc14win64-mt +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% "%PXSHARED_ROOT_DIR%src/compiler/cmake" -DUSE_STATIC_WINCRT=ON -DCMAKE_INSTALL_PREFIX="%PXSHARED_ROOT_DIR%install/%VCPLATDIR%/" %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC14WIN64_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc14win32-md +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% "%PXSHARED_ROOT_DIR%src/compiler/cmake" -DUSE_STATIC_WINCRT=OFF -DCMAKE_INSTALL_PREFIX="%PXSHARED_ROOT_DIR%install/%VCPLATDIR%/" %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC14WIN32_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc14win32-mt +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% "%PXSHARED_ROOT_DIR%src/compiler/cmake" -DUSE_STATIC_WINCRT=ON -DCMAKE_INSTALL_PREFIX="%PXSHARED_ROOT_DIR%install/%VCPLATDIR%/" %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC14WIN32_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_vc14xboxone.bat b/PxShared/buildtools/cmake_projects_vc14xboxone.bat new file mode 100644 index 0000000..771737f --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc14xboxone.bat @@ -0,0 +1,62 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + + +REM Generate projects here + +echo. +echo ############################################################################################# +ECHO "Creating VC14 VS2015 XboxOne" + +SET CMAKE_OUTPUT_DIR=compiler\vc14xboxone\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake ^ +-G "Visual Studio 14 2015" ^ +-DTARGET_BUILD_PLATFORM=xboxone ^ +-DCMAKE_TOOLCHAIN_FILE="%PM_CMakeModules_PATH%\xboxone\XboxOneToolchain.txt" ^ +-DCMAKE_GENERATOR_PLATFORM=Durango ^ +-DPX_OUTPUT_LIB_DIR=%PXSHARED_ROOT_DIR% ^ +-DPX_OUTPUT_BIN_DIR=%PXSHARED_ROOT_DIR% ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\vc14xboxone\ + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_vc15ps4.bat b/PxShared/buildtools/cmake_projects_vc15ps4.bat new file mode 100644 index 0000000..5538859 --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc15ps4.bat @@ -0,0 +1,62 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + + +REM Generate projects here + +echo. +echo ############################################################################################# +ECHO "Creating VC15 VS2017 Ps4" + +SET CMAKE_OUTPUT_DIR=compiler\vc15ps4\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake ^ +-G "Visual Studio 15 2017" ^ +-DTARGET_BUILD_PLATFORM=ps4 ^ +-DCMAKE_TOOLCHAIN_FILE="%PM_CMakeModules_PATH%\ps4\PS4Toolchain.txt" ^ +-DCMAKE_GENERATOR_PLATFORM=ORBIS ^ +-DPX_OUTPUT_LIB_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DPX_OUTPUT_BIN_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\clangps4\ + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_vc15switch.bat b/PxShared/buildtools/cmake_projects_vc15switch.bat new file mode 100644 index 0000000..0e0c60a --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc15switch.bat @@ -0,0 +1,62 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + + +REM Generate projects here + +echo. +echo ############################################################################################# +ECHO "Creating VC15 VS2017 Switch" + +SET CMAKE_OUTPUT_DIR=compiler\vc15switch\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake ^ +-G "Visual Studio 15" ^ +-T v141 ^ +-DTARGET_BUILD_PLATFORM=switch ^ +-DCMAKE_TOOLCHAIN_FILE="%PM_CMakeModules_PATH%\switch\NX64Toolchain.txt" ^ +-DCMAKE_GENERATOR_PLATFORM=NX64 ^ +-DPX_OUTPUT_LIB_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DPX_OUTPUT_BIN_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\clangswitch\ + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_vc15uwp.bat b/PxShared/buildtools/cmake_projects_vc15uwp.bat new file mode 100644 index 0000000..8065781 --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc15uwp.bat @@ -0,0 +1,101 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + +REM Common cmd line params +set CMAKE_CMD_LINE_PARAMS=-DTARGET_BUILD_PLATFORM=uwp ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DPX_OUTPUT_LIB_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DPX_OUTPUT_BIN_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DUSE_DEBUG_WINCRT=OFF ^ +-DCMAKE_SYSTEM_NAME=WindowsStore ^ +-DCMAKE_SYSTEM_VERSION=10.0 + +REM Compiler dependend params +set CMAKE_VC15WIN32_CMD_LINE_PARAMS= ^ +-G "Visual Studio 15 2017" -AWin32 ^ +-DPX_OUTPUT_ARCH=x86 ^ +-DPX_GENERATE_GPU_PROJECTS=OFF + + +set CMAKE_VC15WIN64_CMD_LINE_PARAMS= ^ +-G "Visual Studio 15 2017" -Ax64 ^ +-DPX_OUTPUT_ARCH=x86 ^ +-DPX_GENERATE_GPU_PROJECTS=OFF + +set CMAKE_VC15ARM_CMD_LINE_PARAMS= ^ +-G "Visual Studio 15 2017" -Aarm ^ +-DPX_OUTPUT_ARCH=arm ^ +-DPX_GENERATE_GPU_PROJECTS=OFF + +echo. +echo ############################################################################################# +ECHO "Creating VC15 VS2017" + +SET VCPLATDIR=vc15uwp64 +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\%VCPLATDIR%\ %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC15WIN64_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc15uwp32 +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\%VCPLATDIR%\ %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC15WIN32_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +GOTO :End + +SET VCPLATDIR=vc15uwparm +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\%VCPLATDIR%\ %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC15ARM_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_vc15win.bat b/PxShared/buildtools/cmake_projects_vc15win.bat new file mode 100644 index 0000000..f1b07bc --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc15win.bat @@ -0,0 +1,102 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +echo "Cmake: %CMAKECMD%" + +REM Common cmd line params +set CMAKE_CMD_LINE_PARAMS=-DTARGET_BUILD_PLATFORM=windows ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DPX_OUTPUT_ARCH=x86 ^ +-DPX_OUTPUT_LIB_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DPX_OUTPUT_BIN_DIR=%PXSHARED_ROOT_DIR%\ ^ +-DUSE_DEBUG_WINCRT=OFF + +REM Compiler dependend params +set CMAKE_VC15WIN32_CMD_LINE_PARAMS= ^ +-G "Visual Studio 15 2017" -AWin32 ^ +-DPX_GENERATE_GPU_PROJECTS=OFF + + +set CMAKE_VC15WIN64_CMD_LINE_PARAMS= ^ +-G "Visual Studio 15 2017" -Ax64 ^ +-DPX_GENERATE_GPU_PROJECTS=OFF + +echo. +echo ############################################################################################# +ECHO "Creating VC15 VS2017" + +SET VCPLATDIR=vc15win64-md +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -DUSE_STATIC_WINCRT=OFF -DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\%VCPLATDIR%\ %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC15WIN64_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc15win64-mt +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -DUSE_STATIC_WINCRT=ON -DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\%VCPLATDIR%\ %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC15WIN64_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc15win32-md +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -DUSE_STATIC_WINCRT=OFF -DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\%VCPLATDIR%\ %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC15WIN32_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + +SET VCPLATDIR=vc15win32-mt +SET CMAKE_OUTPUT_DIR=compiler\%VCPLATDIR%\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake -DUSE_STATIC_WINCRT=ON -DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\%VCPLATDIR%\ %CMAKE_CMD_LINE_PARAMS% %CMAKE_VC15WIN32_CMD_LINE_PARAMS% + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/cmake_projects_vc15xboxone.bat b/PxShared/buildtools/cmake_projects_vc15xboxone.bat new file mode 100644 index 0000000..0e4e8de --- /dev/null +++ b/PxShared/buildtools/cmake_projects_vc15xboxone.bat @@ -0,0 +1,73 @@ +@echo off + +echo ############################################################################################# +echo Starting %~n0 %date% %time% +echo ############################################################################################# + +echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% +echo PM_CMakeModules_PATH %PM_CMakeModules_PATH% +echo PM_PATHS %PM_PATHS% + +if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 + +IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED + +REM Now set up the CMake command from PM_PACKAGES_ROOT + +SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe + +SET VSWHERE=%PM_vswhere_PATH%\VsWhere.exe + +echo "Cmake: %CMAKECMD%" + +rem ## Try to get the VS 15 path using vswhere (see https://github.com/Microsoft/vswhere) +for /f "delims=" %%i in ('%VSWHERE% -latest -property installationPath') do ( + if exist "%%i" ( + set VS150PATH="%%i" + ) +) + +echo "VS150PATH: %VS150PATH%" + +REM Generate projects here + +echo. +echo ############################################################################################# +ECHO "Creating VC15 VS2017 XboxOne" + +SET CMAKE_OUTPUT_DIR=compiler\vc15xboxone\ +IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% +mkdir %CMAKE_OUTPUT_DIR% +pushd %CMAKE_OUTPUT_DIR% + + +%CMAKECMD% %PXSHARED_ROOT_DIR%\src\compiler\cmake ^ +-G "Visual Studio 15 2017" ^ +-DTARGET_BUILD_PLATFORM=xboxone ^ +-DCMAKE_TOOLCHAIN_FILE="%PM_CMakeModules_PATH%\xboxone\XboxOneToolchainVC15.txt" ^ +-DCMAKE_GENERATOR_PLATFORM=Durango ^ +-DPX_OUTPUT_LIB_DIR=%PXSHARED_ROOT_DIR% ^ +-DPX_OUTPUT_BIN_DIR=%PXSHARED_ROOT_DIR% ^ +-DAPPEND_CONFIG_NAME=OFF ^ +-DCMAKE_PREFIX_PATH="%PM_PATHS%" ^ +-DUSE_GAMEWORKS_OUTPUT_DIRS=ON ^ +-DCMAKE_VS150PATH=%VS150PATH% ^ +-DCMAKE_INSTALL_PREFIX=%PXSHARED_ROOT_DIR%\install\vc15xboxone\ + +popd +if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% + + +GOTO :End + +:PM_PACKAGES_ROOT_UNDEFINED +ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. +PAUSE +GOTO END + +:DONT_RUN_STEP_2 +ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead +PAUSE +GOTO END + +:End diff --git a/PxShared/buildtools/packman/packman b/PxShared/buildtools/packman/packman new file mode 100644 index 0000000..4d0c292 --- /dev/null +++ b/PxShared/buildtools/packman/packman @@ -0,0 +1,80 @@ +#!/bin/bash + +PM_PACKMAN_VERSION=4.2-rc2 + +# Specify where configuration file could exist +export PM_CONFIG_PATH=$(dirname ${BASH_SOURCE})/packman_config.txt + +# The packages root may already be configured by the user +if [ -z "$PM_PACKAGES_ROOT" ]; then + # Set variable permanently using .profile for this user + echo "export PM_PACKAGES_ROOT=\$HOME/packman-repo" >> ~/.profile + # Set variable temporarily in this process so that the following execution will work + export PM_PACKAGES_ROOT="${HOME}/packman-repo" +fi + +# Ensure the packages root path exists: +if [ ! -d "$PM_PACKAGES_ROOT" ]; then + echo "Creating packman packages repository at $PM_PACKAGES_ROOT" + mkdir -p "$PM_PACKAGES_ROOT" +fi + +# The packman module may be externally configured +if [ -z "$PM_MODULE_EXT" ]; then + PM_MODULE_DIR="$PM_PACKAGES_ROOT/packman-common/$PM_PACKMAN_VERSION" + export PM_MODULE="$PM_MODULE_DIR/packman.py" +else + export PM_MODULE="$PM_MODULE_EXT" +fi + +fetch_file_from_s3() +{ + SOURCE=$1 + SOURCE_URL=http://packman.s3.amazonaws.com/$SOURCE + TARGET=$2 + echo "Fetching $SOURCE from S3 ..." + if command -v wget >/dev/null 2>&1; then + wget --quiet -O$TARGET $SOURCE_URL + else + curl -o $TARGET $SOURCE_URL -s -S + fi +} + +# Ensure the packman package exists: +if [ ! -f "$PM_MODULE" ]; then + PM_MODULE_PACKAGE="packman-common@$PM_PACKMAN_VERSION.zip" + TARGET="/tmp/$PM_MODULE_PACKAGE" + # We always fetch packman from S3: + fetch_file_from_s3 $PM_MODULE_PACKAGE $TARGET + if [ "$?" -eq "0" ]; then + echo "Unpacking ..." + mkdir -p "$PM_MODULE_DIR" + unzip -q $TARGET -d "$PM_MODULE_DIR" + rm $TARGET + else + echo "Failure while fetching packman module from S3!" + exit 1 + fi +fi + +# Generate temporary file name for environment variables: +PM_VAR_PATH=`mktemp -u -t tmp.XXXXX.$$.pmvars` + +python "$PM_MODULE" $* --var-path="$PM_VAR_PATH" +exit_code=$? + +# Export the variables if the file was used and remove the file: +if [ -f "$PM_VAR_PATH" ]; then + while read -r line + do + if [ ${#line} -gt 0 ]; then + export "$line" + fi + done < "$PM_VAR_PATH" + rm -f "$PM_VAR_PATH" +fi + +# Return the exit code from python +if [ "$exit_code" != 0 ]; then + exit $exit_code +fi diff --git a/PxShared/buildtools/packman/packman.cmd b/PxShared/buildtools/packman/packman.cmd new file mode 100644 index 0000000..8e98015 --- /dev/null +++ b/PxShared/buildtools/packman/packman.cmd @@ -0,0 +1,41 @@ +:: Reset errorlevel status so we are not inheriting this state from the calling process:
+@call :RESET_ERROR
+:: You can remove the call below if you do your own manual configuration of the dev machines
+@call "%~dp0\win-bootstrap\configure.bat"
+@if errorlevel 1 exit /b 1
+:: Everything below is mandatory
+@if not defined PM_PYTHON goto :PYTHON_ENV_ERROR
+@if not defined PM_MODULE goto :MODULE_ENV_ERROR
+
+:: Generate temporary path for variable file
+:TEMP_VAR_PATH_LOOP
+@set "PM_VAR_PATH=%tmp%\tmp.%RANDOM%.pmvars"
+@if exist "%PM_VAR_PATH%" goto :TEMP_VAR_PATH_LOOP
+
+@"%PM_PYTHON%" "%PM_MODULE%" %* --var-path="%PM_VAR_PATH%"
+@if errorlevel 1 goto :eof
+
+:: Marshall environment variables into the current environment if they have been generated and remove temporary file
+@if exist "%PM_VAR_PATH%" (
+ @for /F "usebackq tokens=*" %%A in ("%PM_VAR_PATH%") do @set "%%A"
+ @if errorlevel 1 goto :VAR_ERROR
+ @del /F "%PM_VAR_PATH%"
+)
+@set PM_VAR_PATH=
+@goto :eof
+
+:: Subroutines below
+:PYTHON_ENV_ERROR
+@echo User environment variable PM_PYTHON is not set! Please configure machine for packman or call configure.bat.
+@exit /b 1
+
+:MODULE_ENV_ERROR
+@echo User environment variable PM_MODULE is not set! Please configure machine for packman or call configure.bat.
+@exit /b 1
+
+:VAR_ERROR
+@echo Error while processing and setting environment variables!
+@exit /b 1
+
+:RESET_ERROR
+@exit /b 0
\ No newline at end of file diff --git a/PxShared/buildtools/packman/packman_config.txt b/PxShared/buildtools/packman/packman_config.txt new file mode 100644 index 0000000..dafaf9a --- /dev/null +++ b/PxShared/buildtools/packman/packman_config.txt @@ -0,0 +1,5 @@ +PM_PACKAGES_SOURCE=gtl
+PM_GTL_USER=svcgtlautomate
+PM_GTL_KEY=QHV0ME1AdDNHVEwkY3IxcHQk
+PM_S3_READ_KEY_ID=AKIAJHPSPBMWMTZS6TJA
+PM_S3_READ_SECRET_KEY=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
diff --git a/PxShared/buildtools/packman/win-bootstrap/configure.bat b/PxShared/buildtools/packman/win-bootstrap/configure.bat new file mode 100644 index 0000000..d21a7d1 --- /dev/null +++ b/PxShared/buildtools/packman/win-bootstrap/configure.bat @@ -0,0 +1,104 @@ +@set PM_PACKMAN_VERSION=4.2-rc2
+
+:: Specify where config file could exist
+@set PM_CONFIG_PATH=%~dp0..\packman_config.txt
+
+:: The external root may already be configured and we should do minimal work in that case
+@if defined PM_PACKAGES_ROOT goto ENSURE_DIR
+
+:: If the folder isn't set we assume that the best place for it is on the drive that we are currently
+:: running from
+@set PM_DRIVE=%CD:~0,2%
+
+@set PM_PACKAGES_ROOT=%PM_DRIVE%\packman-repo
+
+:: We use *setx* here so that the variable is persisted in the user environment
+@echo Setting user environment variable PM_PACKAGES_ROOT to %PM_PACKAGES_ROOT%
+@setx PM_PACKAGES_ROOT %PM_PACKAGES_ROOT%
+@if errorlevel 1 goto ERROR
+
+:: The above doesn't work properly from a build step in VisualStudio because a separate process is
+:: spawned for it so it will be lost for subsequent compilation steps - VisualStudio must
+:: be launched from a new process. We catch this odd-ball case here:
+@if defined PM_DISABLE_VS_WARNING goto ENSURE_DIR
+@if not defined VSLANG goto ENSURE_DIR
+@echo The above is a once-per-computer operation. Unfortunately VisualStudio cannot pick up environment change
+@echo unless *VisualStudio is RELAUNCHED*.
+@echo If you are launching VisualStudio from command line or command line utility make sure
+@echo you have a fresh launch environment (relaunch the command line or utility).
+@echo If you are using 'linkPath' and referring to packages via local folder links you can safely ignore this warning.
+@echo You can disable this warning by setting the environment variable PM_DISABLE_VS_WARNING.
+@echo.
+
+:: Check for the directory that we need. Note that mkdir will create any directories
+:: that may be needed in the path
+:ENSURE_DIR
+@if not exist "%PM_PACKAGES_ROOT%" (
+ @echo Creating directory %PM_PACKAGES_ROOT%
+ @mkdir "%PM_PACKAGES_ROOT%"
+ @if errorlevel 1 goto ERROR_MKDIR_PACKAGES_ROOT
+)
+
+:: The Python interpreter may already be externally configured
+@if defined PM_PYTHON_EXT (
+ @set PM_PYTHON=%PM_PYTHON_EXT%
+ @goto PACKMAN
+)
+
+@set PM_PYTHON_DIR=%PM_PACKAGES_ROOT%\python\2.7.6-windows-x86
+@set PM_PYTHON=%PM_PYTHON_DIR%\python.exe
+
+@if exist "%PM_PYTHON%" goto PACKMAN
+
+@set [email protected]
+@for /f "delims=" %%a in ('powershell -ExecutionPolicy ByPass -NoLogo -NoProfile -File "%~dp0\generate_temp_file_name.ps1"') do @set TEMP_FILE_NAME=%%a
+@set TARGET=%TEMP_FILE_NAME%.exe
+@call "%~dp0fetch_file_from_s3.cmd" %PM_PYTHON_PACKAGE% %TARGET%
+@if errorlevel 1 goto ERROR
+
+@echo Unpacking ...
+@%TARGET% -o"%PM_PYTHON_DIR%" -y 1> nul
+@if errorlevel 1 goto ERROR
+
+@del %TARGET%
+
+:PACKMAN
+:: The packman module may already be externally configured
+@if defined PM_MODULE_EXT (
+ @set PM_MODULE=%PM_MODULE_EXT%
+ @goto END
+)
+
+@set PM_MODULE_DIR=%PM_PACKAGES_ROOT%\packman-common\%PM_PACKMAN_VERSION%
+@set PM_MODULE=%PM_MODULE_DIR%\packman.py
+
+@if exist "%PM_MODULE%" goto END
+
+@set PM_MODULE_PACKAGE=packman-common@%PM_PACKMAN_VERSION%.zip
+@for /f "delims=" %%a in ('powershell -ExecutionPolicy ByPass -NoLogo -NoProfile -File "%~dp0\generate_temp_file_name.ps1"') do @set TEMP_FILE_NAME=%%a
+@set TARGET=%TEMP_FILE_NAME%
+@call "%~dp0fetch_file_from_s3.cmd" %PM_MODULE_PACKAGE% %TARGET%
+@if errorlevel 1 goto ERROR
+
+@echo Unpacking ...
+@"%PM_PYTHON%" "%~dp0\install_package.py" %TARGET% "%PM_MODULE_DIR%"
+@if errorlevel 1 goto ERROR
+
+@del %TARGET%
+
+@goto END
+
+:ERROR_MKDIR_PACKAGES_ROOT
+@echo Failed to automatically create packman packages repo at %PM_PACKAGES_ROOT%.
+@echo Please set a location explicitly that packman has permission to write to, by issuing:
+@echo.
+@echo setx PM_PACKAGES_ROOT {path-you-choose-for-storing-packman-packages-locally}
+@echo.
+@echo Then launch a new command console for the changes to take effect and run packman command again.
+@exit /B 1
+
+:ERROR
+@echo !!! Failure while configuring local machine :( !!!
+@exit /B 1
+
+:END
diff --git a/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_gtl.ps1 b/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_gtl.ps1 new file mode 100644 index 0000000..d4ae86b --- /dev/null +++ b/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_gtl.ps1 @@ -0,0 +1,43 @@ +param( +[Parameter(Mandatory=$true)][string]$sourceGUID=$null, +[string]$output="out.exe" +) +$source = "http://nvgtl/download/" + $sourceGUID +$filename = $output +$key64 = 'QHV0ME1AdDNHVEwkY3IxcHQk' +$key = [System.Text.Encoding]::GetEncoding(1252).GetString([Convert]::FromBase64String($key64)) +$key = $key | ConvertTo-SecureString -asPlainText -Force +$credential = New-Object System.Management.Automation.PSCredential('svcgtlautomate', $key) +$cache = New-Object System.Net.CredentialCache +$cache.Add( "http://sso.nvidia.com", "NTLM", $credential) + +$req = [System.Net.httpwebrequest]::Create($source) +$req.cookiecontainer = New-Object System.net.CookieContainer +$req.Credentials = $cache +Write-Host "Connecting to NVGTL ..." +$res = $req.GetResponse() + +if($res.StatusCode -eq "OK") { + Write-Host "Downloading ..." + [int]$goal = $res.ContentLength + $reader = $res.GetResponseStream() + $writer = new-object System.IO.FileStream $fileName, "Create" + [byte[]]$buffer = new-object byte[] 4096 + [int]$total = [int]$count = 0 + do + { + $count = $reader.Read($buffer, 0, $buffer.Length); + $writer.Write($buffer, 0, $count); + $total += $count + if($goal -gt 0) { + Write-Progress "Downloading $url" "Saving $total of $goal" -id 0 -percentComplete (($total/$goal)*100) + } else { + Write-Progress "Downloading $url" "Saving $total bytes..." -id 0 + } + } while ($count -gt 0) + + $reader.Close() + $writer.Flush() + $writer.Close() +} + diff --git a/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_s3.cmd b/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_s3.cmd new file mode 100644 index 0000000..550040f --- /dev/null +++ b/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_s3.cmd @@ -0,0 +1,19 @@ +:: You need to specify <package-name> <target-name> as input to this command
+
+@set PACKAGE_NAME=%1
+@set TARGET=%2
+
+@echo Fetching %PACKAGE_NAME% from s3 ...
+
+@powershell -ExecutionPolicy ByPass -NoLogo -NoProfile -File "%~dp0fetch_file_from_s3.ps1" -sourceName %PACKAGE_NAME% -output %TARGET%
+:: A bug in powershell prevents the errorlevel code from being set when using the -File execution option
+:: We must therefore do our own failure analysis, basically make sure the file exists and is larger than 0 bytes:
+@if not exist %TARGET% goto ERROR_DOWNLOAD_FAILED
+@if %~z2==0 goto ERROR_DOWNLOAD_FAILED
+
+@exit /b 0
+
+:ERROR_DOWNLOAD_FAILED
+@echo Failed to download file from %1
+@echo Most likely because endpoint cannot be reached (VPN connection down?)
+@exit /b 1
\ No newline at end of file diff --git a/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_s3.ps1 b/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_s3.ps1 new file mode 100644 index 0000000..ad4c7d4 --- /dev/null +++ b/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_s3.ps1 @@ -0,0 +1,60 @@ +param(
+[Parameter(Mandatory=$true)][string]$sourceName=$null,
+[string]$output="out.exe"
+)
+$source = "http://packman.s3.amazonaws.com/" + $sourceName
+$filename = $output
+
+$triesLeft = 3
+
+do
+{
+ $triesLeft -= 1
+ $req = [System.Net.httpwebrequest]::Create($source)
+ $req.cookiecontainer = New-Object System.net.CookieContainer
+
+ try
+ {
+ Write-Host "Connecting to S3 ..."
+ $res = $req.GetResponse()
+ if($res.StatusCode -eq "OK") {
+ Write-Host "Downloading ..."
+ [int]$goal = $res.ContentLength
+ $reader = $res.GetResponseStream()
+ $writer = new-object System.IO.FileStream $fileName, "Create"
+ [byte[]]$buffer = new-object byte[] 4096
+ [int]$total = [int]$count = 0
+ do
+ {
+ $count = $reader.Read($buffer, 0, $buffer.Length);
+ $writer.Write($buffer, 0, $count);
+ $total += $count
+ if($goal -gt 0) {
+ Write-Progress "Downloading $url" "Saving $total of $goal" -id 0 -percentComplete (($total/$goal)*100)
+ } else {
+ Write-Progress "Downloading $url" "Saving $total bytes..." -id 0
+ }
+ } while ($count -gt 0)
+
+ $triesLeft = 0
+ }
+ }
+ catch
+ {
+ Write-Host "Error connecting to S3!"
+ Write-Host $_.Exception|format-list -force
+ }
+ finally
+ {
+ if ($reader)
+ {
+ $reader.Close()
+ }
+ if ($writer)
+ {
+ $writer.Flush()
+ $writer.Close()
+ }
+ }
+} while ($triesLeft -gt 0)
+
diff --git a/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_url.ps1 b/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_url.ps1 new file mode 100644 index 0000000..9abaa46 --- /dev/null +++ b/PxShared/buildtools/packman/win-bootstrap/fetch_file_from_url.ps1 @@ -0,0 +1,37 @@ +param(
+[Parameter(Mandatory=$true)][string]$sourceUrl=$null,
+[Parameter(Mandatory=$true)][string]$output=$null
+)
+$source = $sourceUrl
+$filename = $output
+
+$req = [System.Net.httpwebrequest]::Create($source)
+$req.cookiecontainer = New-Object System.net.CookieContainer
+
+Write-Host "Connecting to $source ..."
+$res = $req.GetResponse()
+
+if($res.StatusCode -eq "OK") {
+ Write-Host "Downloading ..."
+ [int]$goal = $res.ContentLength
+ $reader = $res.GetResponseStream()
+ $writer = new-object System.IO.FileStream $fileName, "Create"
+ [byte[]]$buffer = new-object byte[] 4096
+ [int]$total = [int]$count = 0
+ do
+ {
+ $count = $reader.Read($buffer, 0, $buffer.Length);
+ $writer.Write($buffer, 0, $count);
+ $total += $count
+ if($goal -gt 0) {
+ Write-Progress "Downloading $url" "Saving $total of $goal" -id 0 -percentComplete (($total/$goal)*100)
+ } else {
+ Write-Progress "Downloading $url" "Saving $total bytes..." -id 0
+ }
+ } while ($count -gt 0)
+
+ $reader.Close()
+ $writer.Flush()
+ $writer.Close()
+}
+
diff --git a/PxShared/buildtools/packman/win-bootstrap/generate_temp_file_name.ps1 b/PxShared/buildtools/packman/win-bootstrap/generate_temp_file_name.ps1 new file mode 100644 index 0000000..896cf14 --- /dev/null +++ b/PxShared/buildtools/packman/win-bootstrap/generate_temp_file_name.ps1 @@ -0,0 +1,2 @@ +$out = [System.IO.Path]::GetTempFileName()
+Write-Host $out
\ No newline at end of file diff --git a/PxShared/buildtools/packman/win-bootstrap/install_package.py b/PxShared/buildtools/packman/win-bootstrap/install_package.py new file mode 100644 index 0000000..ce50a3e --- /dev/null +++ b/PxShared/buildtools/packman/win-bootstrap/install_package.py @@ -0,0 +1,39 @@ +import logging
+import zipfile
+import tempfile
+import sys
+import shutil
+
+__author__ = 'hfannar'
+logging.basicConfig(level=logging.WARNING, format="%(message)s")
+logger = logging.getLogger('install_package')
+
+
+class TemporaryDirectory:
+ def __init__(self):
+ self.path = None
+
+ def __enter__(self):
+ self.path = tempfile.mkdtemp()
+ return self.path
+
+ def __exit__(self, type, value, traceback ):
+ # Remove temporary data created
+ shutil.rmtree(self.path)
+
+
+def install_package(package_src_path, package_dst_path):
+ with zipfile.ZipFile(package_src_path, allowZip64=True) as zip_file, TemporaryDirectory() as temp_dir:
+ zip_file.extractall(temp_dir)
+ # Recursively copy (temp_dir will be automatically cleaned up on exit)
+ try:
+ # Recursive copy is needed because both package name and version folder could be missing in
+ # target directory:
+ shutil.copytree(temp_dir, package_dst_path)
+ except OSError, exc:
+ logger.warning("Directory %s already present, packaged installation aborted" % package_dst_path)
+ else:
+ logger.info("Package successfully installed to %s" % package_dst_path)
+
+
+install_package(sys.argv[1], sys.argv[2])
\ No newline at end of file diff --git a/PxShared/buildtools/steps/build_all_linux.sh b/PxShared/buildtools/steps/build_all_linux.sh new file mode 100644 index 0000000..167912f --- /dev/null +++ b/PxShared/buildtools/steps/build_all_linux.sh @@ -0,0 +1,22 @@ +#!/bin/bash +x + +set -e + +# get number of CPU cores +if [ -f /proc/cpuinfo ]; then + CPUS=`grep processor /proc/cpuinfo | wc -l` +else + CPUS=1 +fi + +# Stackoverflow suggests jobs count of (CPU cores + 1) as a respctively good number! +JOBS=`expr $CPUS + 1` + +# run make for all configs +pushd "$(dirname "$0")/../../compiler/linux-debug-clang" +make -j$JOBS || exit 1 +popd + +pushd "$(dirname "$0")/../../compiler/linux-release-clang" +make -j$JOBS || exit 1 +popd diff --git a/PxShared/buildtools/steps/build_all_mac.sh b/PxShared/buildtools/steps/build_all_mac.sh new file mode 100644 index 0000000..57437a0 --- /dev/null +++ b/PxShared/buildtools/steps/build_all_mac.sh @@ -0,0 +1,29 @@ +#!/bin/bash +x + +# exit script on first error +set -e + +# get number of CPU cores +CPUS=`sysctl -n hw.ncpu` + +# Stackoverflow suggests jobs count of (CPU cores + 1) as a respctively good number! +JOBS=`expr $CPUS + 1` + +build_config() +{ + CONFIG=$1 + echo "*** Building: $CONFIG ***" + pushd "$(dirname "$0")/../../compiler/$CONFIG" + make -j$JOBS install + popd +} + +# run make for all configs +build_config "osx32-checked" +build_config "osx32-debug" +build_config "osx32-profile" +build_config "osx32-release" +build_config "osx64-checked" +build_config "osx64-debug" +build_config "osx64-profile" +build_config "osx64-release" diff --git a/PxShared/buildtools/steps/build_all_windows.bat b/PxShared/buildtools/steps/build_all_windows.bat new file mode 100644 index 0000000..5708927 --- /dev/null +++ b/PxShared/buildtools/steps/build_all_windows.bat @@ -0,0 +1,12 @@ +@cmd /c "%~dp0build_all_windows_vc12.bat" +@if %ERRORLEVEL% neq 0 goto ERROR + +@cmd /c "%~dp0build_all_windows_vc14.bat" +@if %ERRORLEVEL% neq 0 goto ERROR + +:: Success +@exit /B 0 + +:ERROR +@echo !!! Failure while building for Windows!!! +@exit /B 1 diff --git a/PxShared/buildtools/steps/build_all_windows_vc12.bat b/PxShared/buildtools/steps/build_all_windows_vc12.bat new file mode 100644 index 0000000..695c20c --- /dev/null +++ b/PxShared/buildtools/steps/build_all_windows_vc12.bat @@ -0,0 +1,60 @@ +:: Setup VS2013 build environment +@call "%VS120COMNTOOLS%VsdevCmd.bat" + +:: Note that we use /build rather than /rebuild because cmake cleans the directories when we +:: generate the projects (making /rebuild redundant since it's basically /clean + /build). +:: By using /build these bat files can be useful during regular development (to verify changes) +:: Will rename them from rebuild to build at a future point in time. + +@set ROOT_PATH=%~dp0..\..\compiler + +@set SOLUTION_PATH=vc12win32-mt\PxShared.sln +@call :BUILD +@if %ERRORLEVEL% neq 0 goto ERROR + +@set SOLUTION_PATH=vc12win32-md\PxShared.sln +@call :BUILD +@if %ERRORLEVEL% neq 0 goto ERROR + +@set SOLUTION_PATH=vc12win64-mt\PxShared.sln +@call :BUILD +@if %ERRORLEVEL% neq 0 goto ERROR + +@set SOLUTION_PATH=vc12win64-md\PxShared.sln +@call :BUILD +@if %ERRORLEVEL% neq 0 goto ERROR + +:: Success +@exit /B 0 + +:ERROR +@echo Failure while building *Windows vc12* targets! +@exit /B 1 + +:BUILD +@echo | set /p dummyName=** Building %SOLUTION_PATH% debug ... ** +@devenv "%ROOT_PATH%\%SOLUTION_PATH%" /build "debug" /Project INSTALL +@echo ** End of %SOLUTION_PATH% debug ** +@echo. +@if %ERRORLEVEL% neq 0 goto ERROR + +@echo | set /p dummyName=** Building %SOLUTION_PATH% profile ... ** +@devenv "%ROOT_PATH%\%SOLUTION_PATH%" /build "profile" /Project INSTALL +@echo ** End of %SOLUTION_PATH% profile ** +@echo. +@if %ERRORLEVEL% neq 0 goto ERROR + +@echo | set /p dummyName=** Building %SOLUTION_PATH% profile ... ** +@devenv "%ROOT_PATH%\%SOLUTION_PATH%" /build "checked" /Project INSTALL +@echo ** End of %SOLUTION_PATH% checked ** +@echo. +@if %ERRORLEVEL% neq 0 goto ERROR + +@echo | set /p dummyName=** Building %SOLUTION_PATH% profile ... ** +@devenv "%ROOT_PATH%\%SOLUTION_PATH%" /build "release" /Project INSTALL +@echo ** End of %SOLUTION_PATH% release ** +@echo. +@if %ERRORLEVEL% neq 0 goto ERROR + + +@exit /B
\ No newline at end of file diff --git a/PxShared/buildtools/steps/build_all_windows_vc14.bat b/PxShared/buildtools/steps/build_all_windows_vc14.bat new file mode 100644 index 0000000..3baec1d --- /dev/null +++ b/PxShared/buildtools/steps/build_all_windows_vc14.bat @@ -0,0 +1,61 @@ +:: Setup VS2015 build environment +@call "%VS140COMNTOOLS%VsdevCmd.bat" + +:: Note that we use /build rather than /rebuild because cmake cleans the directories when we +:: generate the projects (making /rebuild redundant since it's basically /clean + /build). +:: By using /build these bat files can be useful during regular development (to verify changes) +:: Will rename them from rebuild to build at a future point in time. + +@set ROOT_PATH=%~dp0..\..\compiler + +:: Windows 'all' +@set SOLUTION_PATH=vc14win32-mt\PxShared.sln +@call :BUILD +@if %ERRORLEVEL% neq 0 goto ERROR + +@set SOLUTION_PATH=vc14win32-md\PxShared.sln +@call :BUILD +@if %ERRORLEVEL% neq 0 goto ERROR + +@set SOLUTION_PATH=vc14win64-mt\PxShared.sln +@call :BUILD +@if %ERRORLEVEL% neq 0 goto ERROR + +@set SOLUTION_PATH=vc14win64-md\PxShared.sln +@call :BUILD +@if %ERRORLEVEL% neq 0 goto ERROR + +:: Success +@exit /B 0 + +:ERROR +@echo Failure while building *Windows vc14* targets! +@exit /B 1 + +:BUILD +@echo | set /p dummyName=** Building %SOLUTION_PATH% debug ... ** +@devenv "%ROOT_PATH%\%SOLUTION_PATH%" /build "debug" /Project INSTALL +@echo ** End of %SOLUTION_PATH% debug ** +@echo. +@if %ERRORLEVEL% neq 0 goto ERROR + +@echo | set /p dummyName=** Building %SOLUTION_PATH% profile ... ** +@devenv "%ROOT_PATH%\%SOLUTION_PATH%" /build "profile" /Project INSTALL +@echo ** End of %SOLUTION_PATH% profile ** +@echo. +@if %ERRORLEVEL% neq 0 goto ERROR + +@echo | set /p dummyName=** Building %SOLUTION_PATH% profile ... ** +@devenv "%ROOT_PATH%\%SOLUTION_PATH%" /build "checked" /Project INSTALL +@echo ** End of %SOLUTION_PATH% checked ** +@echo. +@if %ERRORLEVEL% neq 0 goto ERROR + +@echo | set /p dummyName=** Building %SOLUTION_PATH% profile ... ** +@devenv "%ROOT_PATH%\%SOLUTION_PATH%" /build "release" /Project INSTALL +@echo ** End of %SOLUTION_PATH% release ** +@echo. +@if %ERRORLEVEL% neq 0 goto ERROR + + +@exit /B
\ No newline at end of file diff --git a/PxShared/buildtools/steps/package_all_linux.sh b/PxShared/buildtools/steps/package_all_linux.sh new file mode 100644 index 0000000..2b3d7af --- /dev/null +++ b/PxShared/buildtools/steps/package_all_linux.sh @@ -0,0 +1,28 @@ +#!/bin/bash +x + +set -e + +# build docs +pushd "$(dirname "$0")/../../docs/_compile" +./build_all.sh +popd + +# remove all zips +pushd "$(dirname "$0")/../.." +rm -f *.zip +popd + +# replace packman's config file to use s3 instead of gtl +echo "s3" > "$(dirname "$0")/../packman/source.conf" + +# run packager +if [ -z $1 ] ; then + OPTIONS="" +else + OPTIONS="-v $1" + shift +fi + +pushd "$(dirname "$0")/../packager/" +./create_packages.sh linux $OPTIONS $@ +popd
\ No newline at end of file diff --git a/PxShared/buildtools/steps/package_all_mac.sh b/PxShared/buildtools/steps/package_all_mac.sh new file mode 100644 index 0000000..e7566bc --- /dev/null +++ b/PxShared/buildtools/steps/package_all_mac.sh @@ -0,0 +1,24 @@ +#!/bin/bash +x + +# exit script on first error +set -e + +#@set ROOT_PATH=%~dp0..\.. + +#::Remove old builds to keep things clean (important on build agents so we don't fill them up) +#@del /q /f "%ROOT_PATH%\pxshared*.zip" + +# run packager +if [ -z $1 ] ; then + VERSION=0 +else + VERSION=$1 +fi + +ROOT_PATH=$(dirname ${BASH_SOURCE})/../.. +PACKMAN_CMD=$ROOT_PATH/buildtools/packman/packman +echo $PACKMAN_CMD + +source "$PACKMAN_CMD" install packman-packager 1.0.3 +echo "Launching create_packman_packages" +python "$PM_packman_packager_PATH/create_packman_packages.py" "$ROOT_PATH/install" --output-dir="$ROOT_PATH" osx pxshared $VERSION "$PM_packman_packager_PATH/templates/CMakeConfigWrapperNIX.cmake" "$PM_packman_packager_PATH/templates/CMakeConfigVersionTemplate.cmake" diff --git a/PxShared/buildtools/steps/package_all_ps4.bat b/PxShared/buildtools/steps/package_all_ps4.bat new file mode 100644 index 0000000..87455e9 --- /dev/null +++ b/PxShared/buildtools/steps/package_all_ps4.bat @@ -0,0 +1,20 @@ +@set ROOT_PATH=%~dp0..\.. + +::Remove old builds to keep things clean (important on build agents so we don't fill them up) +@del /q /f "%ROOT_PATH%\blast_*.zip" + +@pushd "%ROOT_PATH%\docs\_compile" +@call build_all.bat +@popd +@if %errorlevel% NEQ 0 goto :ERROR + +@set VERSION=%1 +@set OPTIONS= +@if ["%VERSION%"] NEQ [""] set OPTIONS=-v %VERSION% + +@call "%ROOT_PATH%\buildtools\packager\create_packages.bat" %OPTIONS% ps4 +@if %ERRORLEVEL% EQU 0 goto :eof + +:ERROR +@echo Failure during packaging for PS4!!! +@exit /b 1
\ No newline at end of file diff --git a/PxShared/buildtools/steps/package_all_windows.bat b/PxShared/buildtools/steps/package_all_windows.bat new file mode 100644 index 0000000..e55cb1b --- /dev/null +++ b/PxShared/buildtools/steps/package_all_windows.bat @@ -0,0 +1,26 @@ +@set ROOT_PATH=%~dp0..\.. + +::Remove old builds to keep things clean (important on build agents so we don't fill them up) +@del /q /f "%ROOT_PATH%\pxshared*.zip" + +@set VERSION=%1 +@set OPTIONS= +@if ["%VERSION%"] EQU [""] set VERSION=0 + +@call "%ROOT_PATH%\buildtools\packman\packman" install python 2.7.6-windows-x86 +@if %ERRORLEVEL% NEQ 0 goto :ERROR + +@call "%ROOT_PATH%\buildtools\packman\packman" install packman-packager 1.0 +@if %ERRORLEVEL% NEQ 0 goto :ERROR + +%PM_PYTHON% "%PM_packman_packager_PATH%/create_packman_packages.py" "%ROOT_PATH%\install" --output-dir="%ROOT_PATH%" vc14win pxshared %VERSION% "%PM_packman_packager_PATH%/templates/CMakeConfigWrapperWindows.cmake" "%PM_packman_packager_PATH%/templates/CMakeConfigVersionTemplate.cmake" +@if %ERRORLEVEL% NEQ 0 goto :ERROR + +%PM_PYTHON% "%PM_packman_packager_PATH%/create_packman_packages.py" "%ROOT_PATH%\install" --output-dir="%ROOT_PATH%" vc12win pxshared %VERSION% "%PM_packman_packager_PATH%/templates/CMakeConfigWrapperWindows.cmake" "%PM_packman_packager_PATH%/templates/CMakeConfigVersionTemplate.cmake" +@if %ERRORLEVEL% NEQ 0 goto :ERROR + +@goto :eof + +:ERROR +@echo Failure during packaging for Windows!!! +@exit /b 1 diff --git a/PxShared/buildtools/steps/package_all_xboxone.bat b/PxShared/buildtools/steps/package_all_xboxone.bat new file mode 100644 index 0000000..86d5ff0 --- /dev/null +++ b/PxShared/buildtools/steps/package_all_xboxone.bat @@ -0,0 +1,20 @@ +@set ROOT_PATH=%~dp0..\.. + +::Remove old builds to keep things clean (important on build agents so we don't fill them up) +@del /q /f "%ROOT_PATH%\blast_*.zip" + +@pushd "%ROOT_PATH%\docs\_compile" +@call build_all.bat +@popd +@if %errorlevel% NEQ 0 goto :ERROR + +@set VERSION=%1 +@set OPTIONS= +@if ["%VERSION%"] NEQ [""] set OPTIONS=-v %VERSION% + +@call "%ROOT_PATH%\buildtools\packager\create_packages.bat" %OPTIONS% xboxone +@if %ERRORLEVEL% EQU 0 goto :eof + +:ERROR +@echo Failure during packaging for xboxone!!! +@exit /b 1
\ No newline at end of file diff --git a/PxShared/buildtools/steps/pre-build_linux.sh b/PxShared/buildtools/steps/pre-build_linux.sh new file mode 100644 index 0000000..c6c3160 --- /dev/null +++ b/PxShared/buildtools/steps/pre-build_linux.sh @@ -0,0 +1,7 @@ +#!/bin/bash +x + +set -e +pushd "$(dirname "$0")/../.." +./generate_projects_linux.sh +popd + diff --git a/PxShared/buildtools/steps/pre-build_mac.sh b/PxShared/buildtools/steps/pre-build_mac.sh new file mode 100644 index 0000000..3094938 --- /dev/null +++ b/PxShared/buildtools/steps/pre-build_mac.sh @@ -0,0 +1,7 @@ +#!/bin/bash +x + +set -e +pushd "$(dirname "$0")/../.." +./generate_projects_mac.sh +popd + diff --git a/PxShared/buildtools/steps/pre-build_ps4.bat b/PxShared/buildtools/steps/pre-build_ps4.bat new file mode 100644 index 0000000..7be0ba8 --- /dev/null +++ b/PxShared/buildtools/steps/pre-build_ps4.bat @@ -0,0 +1,5 @@ +@pushd "%~dp0..\.." +@call generate_projects_vc14ps4.bat +@popd +@if %errorlevel% NEQ 0 exit /b 1 + diff --git a/PxShared/buildtools/steps/pre-build_windows.bat b/PxShared/buildtools/steps/pre-build_windows.bat new file mode 100644 index 0000000..cd80520 --- /dev/null +++ b/PxShared/buildtools/steps/pre-build_windows.bat @@ -0,0 +1,6 @@ +@pushd "%~dp0..\.." +@call generate_projects_win.bat vc12 +@call generate_projects_win.bat vc14 +@popd +@if %errorlevel% NEQ 0 exit /b 1 + diff --git a/PxShared/buildtools/steps/pre-build_xboxone.bat b/PxShared/buildtools/steps/pre-build_xboxone.bat new file mode 100644 index 0000000..2e9c950 --- /dev/null +++ b/PxShared/buildtools/steps/pre-build_xboxone.bat @@ -0,0 +1,5 @@ +@pushd "%~dp0..\.." +@call generate_projects_vc14xboxone.bat +@popd +@if %errorlevel% NEQ 0 exit /b 1 + diff --git a/PxShared/buildtools/steps/rebuild_all_ps4.bat b/PxShared/buildtools/steps/rebuild_all_ps4.bat new file mode 100644 index 0000000..405b4ea --- /dev/null +++ b/PxShared/buildtools/steps/rebuild_all_ps4.bat @@ -0,0 +1,18 @@ +:: Setup VS2015 build environment +@call "%VS140COMNTOOLS%VsdevCmd.bat" + +@set ROOT_PATH=%~dp0..\..\compiler +:: Xbox targets +@devenv "%ROOT_PATH%\vc14ps4-cmake\BlastAll.sln" /rebuild "debug" +@if %ERRORLEVEL% neq 0 goto ERROR + +@devenv "%ROOT_PATH%\vc14ps4-cmake\BlastAll.sln" /rebuild "profile" +@if %ERRORLEVEL% neq 0 goto ERROR + + +:: Success +@exit /B 0 + +:ERROR +@echo Failure while building *PS4* targets! +@exit /B 1 diff --git a/PxShared/buildtools/steps/rebuild_all_xboxone.bat b/PxShared/buildtools/steps/rebuild_all_xboxone.bat new file mode 100644 index 0000000..7c2d3f1 --- /dev/null +++ b/PxShared/buildtools/steps/rebuild_all_xboxone.bat @@ -0,0 +1,17 @@ +:: Setup VS2015 build environment +@call "%VS140COMNTOOLS%VsdevCmd.bat" + +@set ROOT_PATH=%~dp0..\..\compiler +:: Xbox targets +@devenv "%ROOT_PATH%\vc14xboxone-cmake\BlastAll.sln" /rebuild "debug" +@if %ERRORLEVEL% neq 0 goto ERROR + +@devenv "%ROOT_PATH%\vc14xboxone-cmake\BlastAll.sln" /rebuild "profile" +@if %ERRORLEVEL% neq 0 goto ERROR + +:: Success +@exit /B 0 + +:ERROR +@echo Failure while building *Xbox One* targets! +@exit /B 1 diff --git a/PxShared/buildtools/steps/run_tests_linux.sh b/PxShared/buildtools/steps/run_tests_linux.sh new file mode 100644 index 0000000..8770e39 --- /dev/null +++ b/PxShared/buildtools/steps/run_tests_linux.sh @@ -0,0 +1,11 @@ +#!/bin/bash +x + +set -e + +# run tests +pushd "$(dirname "$0")/../../bin/linux64-gcc" +./BlastUnitTestsDEBUG.elf --gtest_output=xml:BlastUnitTestsDEBUG.xml +echo \#\#teamcity[importData type=\'gtest\' parseOutOfDate=\'true\' file=\'bin/linux64-gcc/BlastUnitTestsDEBUG.xml\'] +./BlastUnitTests.elf --gtest_output=xml:BlastUnitTests.xml +echo \#\#teamcity[importData type=\'gtest\' parseOutOfDate=\'true\' file=\'bin/linux64-gcc/BlastUnitTests.xml\'] +popd diff --git a/PxShared/buildtools/steps/run_tests_windows.bat b/PxShared/buildtools/steps/run_tests_windows.bat new file mode 100644 index 0000000..b18e2b0 --- /dev/null +++ b/PxShared/buildtools/steps/run_tests_windows.bat @@ -0,0 +1,6 @@ +@set BIN_PATH=%~dp0..\..\bin\vc14win64-cmake +@pushd "%BIN_PATH%" +@call BlastUnitTestsDEBUG_x64.exe --gtest_output=xml:BlastUnitTestsDEBUG_x64.xml +@echo ##teamcity[importData type='gtest' parseOutOfDate='true' file='%BIN_PATH%\BlastUnitTestsDEBUG_x64.xml'] +@popd +@if %errorlevel% NEQ 0 exit /b 1
\ No newline at end of file diff --git a/PxShared/common.pm b/PxShared/common.pm new file mode 100644 index 0000000..a4a7ceb --- /dev/null +++ b/PxShared/common.pm @@ -0,0 +1,112 @@ +sub GetXPJ +{ + my $xpj = ""; + if ( $^O eq 'linux' ) + { + $xpj= "$ENV{P4ROOT_PATH}/physx/buildtools/xpj/1/linux/xpj4"; + } + elsif ( $^O eq 'darwin' ) + { + $xpj= "$ENV{P4ROOT_PATH}/physx/buildtools/xpj/1/osx32/xpj4"; + } + else + { + $xpj= "$ENV{P4ROOT_PATH}/physx/buildtools/xpj/1/win32/xpj4.exe"; + $xpj =~ s#/#\\#g; + } + return $xpj; +} + +sub EnsurePath +{ + my @missed_files; + + foreach (@_) + { + push @missed_files, $_ unless (-d $_ or -e $_); + } + + if ($#missed_files > 0) + { + print( "Not all necessaried directories in P4 were synced, please sync the following paths:\n" ); + foreach my $file (@missed_files) + { + print ("\t$file\n"); + } + + die "Missing files"; + } +} + +sub GenerateSolutions +{ + my $project = shift; + my $xpj = GetXPJ(); + if ( $^O eq 'MSWin32' ) + { + foreach my $platform (qw(win32 win64)) + { + $ENV{PLATFORM} = "windows"; + foreach my $tool (qw(vc11 vc12 vc14)) + { + print "Generating $tool for $platform ...\n"; + system( "\"$xpj\" -v 2 -t $tool -p $platform -x $project" ); + } + } + + foreach my $platform (qw(win32modern win64modern win8arm)) + { + $ENV{PLATFORM} = "windows"; + foreach my $tool (qw(vc11)) + { + print "Generating $tool for $platform ...\n"; + system( "\"$xpj\" -v 2 -t $tool -p $platform -x $project" ); + } + } + + foreach my $platform (qw(xboxone)) + { + $ENV{PLATFORM} = "xboxone"; + foreach my $tool (qw(vc11 vc14)) + { + print "Generating $tool for $platform ...\n"; + system( "\"$xpj\" -v 2 -t $tool -p $platform -x $project" ); + } + } + foreach my $platform (qw(ps4)) + { + $ENV{PLATFORM} = "ps4"; + foreach my $tool (qw(vc10 vc11 vc12 vc14)) + { + print "Generating $tool for $platform ...\n"; + system( "\"$xpj\" -v 2 -t $tool -p $platform -x $project" ); + } + } + } + elsif ( $^O eq 'darwin' ) + { + foreach my $platform (qw(osx32 osx64 ios ios64)) + { + $ENV{PLATFORM} = "unix"; + foreach my $tool (qw(make)) + { + print "Generating $tool for $platform ...\n"; + system( "\"$xpj\" -v 2 -t $tool -p $platform -x $project" ); + } + } + } + elsif ( $^O eq 'linux' ) + { + foreach my $platform (qw(linux32 linux64)) + { + $ENV{PLATFORM} = "unix"; + foreach my $tool (qw(make)) + { + print "Generating $tool for $platform ...\n"; + system( "\"$xpj\" -v 2 -t $tool -p $platform -x $project" ); + } + } + } +} + +1; diff --git a/PxShared/dependencies.xml b/PxShared/dependencies.xml new file mode 100644 index 0000000..ae4ba72 --- /dev/null +++ b/PxShared/dependencies.xml @@ -0,0 +1,62 @@ +<project toolsVersion="4.0"> + <platform name="common"> + <dependency name="CMakeModules" version="1.27.trunk.23612594"/> + </platform> + <platform name="windows-common" inherit="common"> + <dependency name="cmake-x64" version="3.10.1" exportAs="cmake"/> + </platform> + <platform name="windows-switch" inherit="common"> + <dependency name="cmake-x64" version="3.7.0" exportAs="cmake"/> + </platform> + <platform name="windows-vc15" inherit="windows-common"> + <dependency name="VsWhere" version="1.0.0"/> + </platform> + <platform name="linux-common" inherit="common"> + <dependency name="cmake-linux-x86_64" version="3.7.2" exportAs="cmake"/> + </platform> + <platform name="mac-common" inherit="common"> + <dependency name="cmake-mac-x86_64" version="3.7.2" exportAs="cmake"/> + </platform> + <platform name="vc11win" inherit="windows-common"> + <dependency name="nvToolsExt" version="1.0"/> + </platform> + <platform name="vc12win" inherit="windows-common"> + <dependency name="nvToolsExt" version="1.0"/> + <dependency name="CUDA" version="8.0.61"/> + </platform> + <platform name="vc14win" inherit="windows-common"> + <dependency name="nvToolsExt" version="1.0"/> + </platform> + <platform name="vc15win" inherit="windows-vc15"> + <dependency name="nvToolsExt" version="1.0"/> + </platform> + <platform name="vc14uwp" inherit="windows-common"> + </platform> + <platform name="vc15uwp" inherit="windows-vc15"> + </platform> + <platform name="vc14ps4" inherit="windows-common"> + </platform> + <platform name="vc15ps4" inherit="windows-vc15"> + </platform> + <platform name="vc14xboxone" inherit="windows-common"> + </platform> + <platform name="vc15xboxone" inherit="windows-vc15"> + </platform> + <platform name="vc14switch" inherit="windows-switch"> + </platform> + <platform name="vc15switch" inherit="windows-switch"> + </platform> + <platform name="linux" inherit="linux-common"> + </platform> + <platform name="linux-crosscompile" inherit="windows-common"> + <dependency name="MinGW" version="0.6.2"/> + <dependency name="clang-crosscompile" version="3.7.0" exportAs="ClangCrosscompile"/> + </platform> + <platform name="mac" inherit="mac-common"> + </platform> + <platform name="ios" inherit="mac-common"> + </platform> + <platform name="android" inherit="windows-common"> + <dependency name="android-ndk" version="13.2" exportAs="AndroidNDK"/> + </platform> +</project> diff --git a/PxShared/generate_projects_android.bat b/PxShared/generate_projects_android.bat new file mode 100644 index 0000000..9fd9ab6 --- /dev/null +++ b/PxShared/generate_projects_android.bat @@ -0,0 +1,19 @@ +:: Reset errorlevel status so we are not inheriting this state from the calling process: +@call :CLEAN_EXIT + +:: Use the "short" path so that we don't have to quote paths in that calls below. If we don't do that spaces can break us. +@SET PXSHARED_ROOT_DIR=%~dp0 +@SET PXSHARED_ROOT_DIR=%PXSHARED_ROOT_DIR:\=/% + +:: Run packman to ensure dependencies are present and run cmake generation script afterwards +@echo Running packman in preparation for cmake ... +@echo. +call "%~dp0buildtools\packman\packman.cmd" pull "%~dp0dependencies.xml" --platform android --postscript "%~dp0buildtools\cmake_projects_android.bat" +@if %ERRORLEVEL% neq 0 ( + @exit /b %errorlevel% +) else ( + @echo Success! +) + +:CLEAN_EXIT +@exit /b 0
\ No newline at end of file diff --git a/PxShared/generate_projects_ios.sh b/PxShared/generate_projects_ios.sh new file mode 100644 index 0000000..200d4a3 --- /dev/null +++ b/PxShared/generate_projects_ios.sh @@ -0,0 +1,15 @@ +#!/bin/sh +x + +export PXS_ROOT=$(dirname "$0") +export PXSHARED_ROOT_DIR=$PWD + +# Run packman to ensure dependencies are present and run cmake generation script afterwards +echo "Running packman in preparation for cmake ..." + +$PXS_ROOT/buildtools/packman/packman pull "$PXS_ROOT/dependencies.xml" --platform ios --postscript "$PXS_ROOT/buildtools/cmake_projects_ios.sh" +if [ "$?" -ne "0" ]; then + echo "Error $?" + exit 1 +fi + +echo "Success!"
\ No newline at end of file diff --git a/PxShared/generate_projects_linux.bat b/PxShared/generate_projects_linux.bat new file mode 100644 index 0000000..bd489d2 --- /dev/null +++ b/PxShared/generate_projects_linux.bat @@ -0,0 +1,21 @@ +:: Reset errorlevel status so we are not inheriting this state from the calling process: +@call :CLEAN_EXIT + +@SET PXSHARED_ROOT_DIR=%~dp0 +@SET PXSHARED_ROOT_DIR=%PXSHARED_ROOT_DIR:\=/% + +:: Run packman to ensure dependencies are present and run cmake generation script afterwards +@echo Running packman in preparation for cmake ... +@echo/ + +call "%~dp0buildtools\packman\packman.cmd" pull "%~dp0dependencies.xml" --platform linux-crosscompile --postscript "%~dp0buildtools\cmake_projects_linux.bat" +@if %ERRORLEVEL% neq 0 ( + @exit /b %errorlevel% +) else ( + @echo Success! + @goto CLEAN_EXIT +) + +:CLEAN_EXIT +@exit /b 0 + diff --git a/PxShared/generate_projects_linux.sh b/PxShared/generate_projects_linux.sh new file mode 100644 index 0000000..361078e --- /dev/null +++ b/PxShared/generate_projects_linux.sh @@ -0,0 +1,15 @@ +#!/bin/bash +x + +export PXSHARED_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Run packman to ensure dependencies are present and run cmake generation script afterwards +echo "Running packman in preparation for cmake ..." + +$PXSHARED_ROOT_DIR/buildtools/packman/packman pull "$PXSHARED_ROOT_DIR/dependencies.xml" --platform linux --postscript "$PXSHARED_ROOT_DIR/buildtools/cmake_projects_linux.sh" +if [ "$?" -ne "0" ]; then + echo "Error $?" + exit 1 +fi + +echo "Success!" + diff --git a/PxShared/generate_projects_mac.sh b/PxShared/generate_projects_mac.sh new file mode 100644 index 0000000..f5d526e --- /dev/null +++ b/PxShared/generate_projects_mac.sh @@ -0,0 +1,15 @@ +#!/bin/sh +x + +export PXS_ROOT=$(dirname "$0") +export PXSHARED_ROOT_DIR=$PWD + +# Run packman to ensure dependencies are present and run cmake generation script afterwards +echo "Running packman in preparation for cmake ..." + +$PXS_ROOT/buildtools/packman/packman pull "$PXS_ROOT/dependencies.xml" --platform mac --postscript "$PXS_ROOT/buildtools/cmake_projects_mac.sh" +if [ "$?" -ne "0" ]; then + echo "Error $?" + exit 1 +fi + +echo "Success!"
\ No newline at end of file diff --git a/PxShared/generate_projects_uwp.bat b/PxShared/generate_projects_uwp.bat new file mode 100644 index 0000000..7a105fe --- /dev/null +++ b/PxShared/generate_projects_uwp.bat @@ -0,0 +1,25 @@ +:: Reset errorlevel status so we are not inheriting this state from the calling process: +@call :CLEAN_EXIT + +@IF %1.==. GOTO ADDITIONAL_PARAMS_MISSING + +@SET PXSHARED_ROOT_DIR=%~dp0 +@SET PXSHARED_ROOT_DIR=%PXSHARED_ROOT_DIR:\=/% + +:: Run packman to ensure dependencies are present and run cmake generation script afterwards +@echo Running packman in preparation for cmake ... +@echo/ + +call "%~dp0buildtools\packman\packman.cmd" pull "%~dp0dependencies.xml" --platform %1uwp --postscript "%~dp0buildtools\cmake_projects_%1uwp.bat" +@if %ERRORLEVEL% neq 0 ( + @exit /b %errorlevel% +) else ( + @echo Success! + @goto CLEAN_EXIT +) + +:ADDITIONAL_PARAMS_MISSING +@echo Compiler needs to be specified (vc11, vc12, vc14, vc17 supported). Example: vc14 + +:CLEAN_EXIT +@exit /b 0
\ No newline at end of file diff --git a/PxShared/generate_projects_win.bat b/PxShared/generate_projects_win.bat new file mode 100644 index 0000000..9d8ef33 --- /dev/null +++ b/PxShared/generate_projects_win.bat @@ -0,0 +1,25 @@ +:: Reset errorlevel status so we are not inheriting this state from the calling process: +@call :CLEAN_EXIT + +@IF %1.==. GOTO ADDITIONAL_PARAMS_MISSING + +@SET PXSHARED_ROOT_DIR=%~dp0 +@SET PXSHARED_ROOT_DIR=%PXSHARED_ROOT_DIR:\=/% + +:: Run packman to ensure dependencies are present and run cmake generation script afterwards +@echo Running packman in preparation for cmake ... +@echo/ + +call "%~dp0buildtools\packman\packman.cmd" pull "%~dp0dependencies.xml" --platform %1win --postscript "%~dp0buildtools\cmake_projects_%1win.bat" +@if %ERRORLEVEL% neq 0 ( + @exit /b %errorlevel% +) else ( + @echo Success! + @goto CLEAN_EXIT +) + +:ADDITIONAL_PARAMS_MISSING +@echo Compiler needs to be specified (vc11, vc12, vc14, vc17 supported). Example: vc14 + +:CLEAN_EXIT +@exit /b 0
\ No newline at end of file diff --git a/PxShared/src/compiler/cmake/CMakeLists.txt b/PxShared/src/compiler/cmake/CMakeLists.txt new file mode 100644 index 0000000..680a8ca --- /dev/null +++ b/PxShared/src/compiler/cmake/CMakeLists.txt @@ -0,0 +1,84 @@ +cmake_minimum_required(VERSION 3.7) +PROJECT(PxShared C CXX) + +OPTION(PX_GENERATE_GPU_PROJECTS "Generate the GPU projects" ON) +OPTION(PX_SCALAR_MATH "Forces the usage of non-SIMD vector math" OFF) + +SET(PXSHARED_MAJOR_VERSION 1) +SET(PXSHARED_MINOR_VERSION 1) +SET(PXSHARED_PATCH_VERSION 0) +SET(PXSHARED_VERSION ${PXSHARED_MAJOR_VERSION}.${PXSHARED_MINOR_VERSION}.${PXSHARED_PATCH_VERSION}) + +CMAKE_POLICY(SET CMP0057 NEW) # Enable IN_LIST +CMAKE_POLICY(SET CMP0007 OLD) # Stop complaining about empty entries in lists + +IF(NOT DEFINED PXSHARED_ROOT_DIR) + + STRING(REPLACE "\\" "/" BRD_TEMP $ENV{PXSHARED_ROOT_DIR}) + + # This env variable is set by GenerateProjects.bat, and is no longer available when CMake rebuilds, so this stores it in the cache + SET(PXSHARED_ROOT_DIR ${BRD_TEMP} CACHE INTERNAL "Root of the PxShared source tree") + +ENDIF() + +MESSAGE("PXSHARED ROOT ${PXSHARED_ROOT_DIR}") + +IF(NOT EXISTS ${PXSHARED_ROOT_DIR}) + MESSAGE(FATAL_ERROR "PXSHARED_ROOT_DIR environment variable wasn't set or was invalid.") +ENDIF() + +# GW_DEPS_ROOT can be defined by user to avoid packman usage +IF(NOT EXISTS ${GW_DEPS_ROOT}) + SET(GW_DEPS_ROOT $ENV{PM_PACKAGES_ROOT}) +ENDIF() + +IF(NOT DEFINED CMAKEMODULES_VERSION) + SET(CMAKEMODULES_PATH $ENV{PM_CMakeModules_PATH} CACHE INTERNAL "Path to CMakeModules") + SET(CMAKEMODULES_NAME $ENV{PM_CMakeModules_NAME} CACHE INTERNAL "CMakeModules name") + SET(CMAKEMODULES_VERSION $ENV{PM_CMakeModules_VERSION} CACHE INTERNAL "CMakeModules version from generation batch") +ENDIF() + +#TODO: More elegance +IF(NOT EXISTS ${CMAKEMODULES_PATH}) + MESSAGE(FATAL_ERROR "Could not find ${CMAKEMODULES_PATH}") +ENDIF() + +SET(CMAKE_MODULE_PATH "${CMAKEMODULES_PATH}") + +# Now set the paths + +INCLUDE(NvidiaBuildOptions) + +IF(CMAKE_CONFIGURATION_TYPES) + SET(CMAKE_CONFIGURATION_TYPES debug checked profile release) + SET(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING + "Reset config to what we need" + FORCE) + + SET(CMAKE_SHARED_LINKER_FLAGS_CHECKED "") + SET(CMAKE_SHARED_LINKER_FLAGS_PROFILE "") + + # Build PDBs for all configurations + SET(CMAKE_SHARED_LINKER_FLAGS "/DEBUG") + +ENDIF() + +# Prevent failure due to command line limitations +IF(USE_RESPONSE_FILES) + SET(CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1) + SET(CMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES 1) + SET(CMAKE_C_USE_RESPONSE_FILE_FOR_LIBRARIES 1) + SET(CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS 1) + SET(CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES 1) + SET(CMAKE_CXX_USE_RESPONSE_FILE_FOR_LIBRARIES 1) +ENDIF() + +SET(PROJECT_CMAKE_FILES_DIR src/compiler/cmake) +SET(PLATFORM_CMAKELISTS ${PXSHARED_ROOT_DIR}/${PROJECT_CMAKE_FILES_DIR}/${TARGET_BUILD_PLATFORM}/CMakeLists.txt) + +IF(NOT EXISTS ${PLATFORM_CMAKELISTS}) + MESSAGE(FATAL_ERROR "Unable to find platform CMakeLists.txt for ${TARGET_BUILD_PLATFORM} at ${PLATFORM_CMAKELISTS}") +ENDIF() + +# Include the platform specific CMakeLists +INCLUDE(${PXSHARED_ROOT_DIR}/${PROJECT_CMAKE_FILES_DIR}/${TARGET_BUILD_PLATFORM}/CMakeLists.txt) diff --git a/PxShared/src/compiler/cmake/PxFoundation.cmake b/PxShared/src/compiler/cmake/PxFoundation.cmake new file mode 100644 index 0000000..098b216 --- /dev/null +++ b/PxShared/src/compiler/cmake/PxFoundation.cmake @@ -0,0 +1,171 @@ +# +# Build PxFoundation common +# + +SET(PXSHARED_SOURCE_DIR ${PXSHARED_ROOT_DIR}/src) +SET(LL_SOURCE_DIR ${PXSHARED_SOURCE_DIR}/foundation) + +# Include here after the directories are defined so that the platform specific file can use the variables. +include(${PXSHARED_ROOT_DIR}/${PROJECT_CMAKE_FILES_DIR}/${TARGET_BUILD_PLATFORM}/PxFoundation.cmake) + +SET(PXFOUNDATION_HEADERS + ${PXSHARED_ROOT_DIR}/include/foundation/Px.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxAllocatorCallback.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxAssert.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxBitAndData.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxBounds3.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxErrorCallback.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxErrors.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxFlags.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxFoundation.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxFoundationVersion.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxIntrinsics.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxIO.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxMat33.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxMat44.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxMath.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxMathUtils.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxMemory.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxPlane.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxPreprocessor.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxProfiler.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxQuat.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxSimpleTypes.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxStrideIterator.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxTransform.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxUnionCast.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxVec2.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxVec3.h + ${PXSHARED_ROOT_DIR}/include/foundation/PxVec4.h +) +SOURCE_GROUP(include FILES ${PXFOUNDATION_HEADERS}) + +SET(PXFOUNDATION_SOURCE + ${LL_SOURCE_DIR}/src/PsAllocator.cpp + ${LL_SOURCE_DIR}/src/PsAssert.cpp + ${LL_SOURCE_DIR}/src/PsFoundation.cpp + ${LL_SOURCE_DIR}/src/PsMathUtils.cpp + ${LL_SOURCE_DIR}/src/PsString.cpp + ${LL_SOURCE_DIR}/src/PsTempAllocator.cpp + ${LL_SOURCE_DIR}/src/PsUtilities.cpp +) +SOURCE_GROUP(src\\src FILES ${PXFOUNDATION_SOURCE}) + +SET(PXFOUNDATION_SOURCE_HEADERS + ${LL_SOURCE_DIR}/include/Ps.h + ${LL_SOURCE_DIR}/include/PsAlignedMalloc.h + ${LL_SOURCE_DIR}/include/PsAlloca.h + ${LL_SOURCE_DIR}/include/PsAllocator.h + ${LL_SOURCE_DIR}/include/PsAoS.h + ${LL_SOURCE_DIR}/include/PsArray.h + ${LL_SOURCE_DIR}/include/PsAtomic.h + ${LL_SOURCE_DIR}/include/PsBasicTemplates.h + ${LL_SOURCE_DIR}/include/PsBitUtils.h + ${LL_SOURCE_DIR}/include/PsBroadcast.h + ${LL_SOURCE_DIR}/include/PsCpu.h + ${LL_SOURCE_DIR}/include/PsFoundation.h + ${LL_SOURCE_DIR}/include/PsFPU.h + ${LL_SOURCE_DIR}/include/PsHash.h + ${LL_SOURCE_DIR}/include/PsHashInternals.h + ${LL_SOURCE_DIR}/include/PsHashMap.h + ${LL_SOURCE_DIR}/include/PsHashSet.h + ${LL_SOURCE_DIR}/include/PsInlineAllocator.h + ${LL_SOURCE_DIR}/include/PsInlineAoS.h + ${LL_SOURCE_DIR}/include/PsInlineArray.h + ${LL_SOURCE_DIR}/include/PsIntrinsics.h + ${LL_SOURCE_DIR}/include/PsMathUtils.h + ${LL_SOURCE_DIR}/include/PsMutex.h + ${LL_SOURCE_DIR}/include/PsPool.h + ${LL_SOURCE_DIR}/include/PsSList.h + ${LL_SOURCE_DIR}/include/PsSocket.h + ${LL_SOURCE_DIR}/include/PsSort.h + ${LL_SOURCE_DIR}/include/PsSortInternals.h + ${LL_SOURCE_DIR}/include/PsString.h + ${LL_SOURCE_DIR}/include/PsSync.h + ${LL_SOURCE_DIR}/include/PsTempAllocator.h + ${LL_SOURCE_DIR}/include/PsThread.h + ${LL_SOURCE_DIR}/include/PsTime.h + ${LL_SOURCE_DIR}/include/PsUserAllocated.h + ${LL_SOURCE_DIR}/include/PsUtilities.h + ${LL_SOURCE_DIR}/include/PsVecMath.h + ${LL_SOURCE_DIR}/include/PsVecMathAoSScalar.h + ${LL_SOURCE_DIR}/include/PsVecMathAoSScalarInline.h + ${LL_SOURCE_DIR}/include/PsVecMathSSE.h + ${LL_SOURCE_DIR}/include/PsVecMathUtilities.h + ${LL_SOURCE_DIR}/include/PsVecQuat.h + ${LL_SOURCE_DIR}/include/PsVecTransform.h +) +SOURCE_GROUP("src\\include" FILES ${PXFOUNDATION_SOURCE_HEADERS}) + +ADD_LIBRARY(PxFoundation ${PXFOUNDATION_LIBTYPE} + ${PXFOUNDATION_SOURCE} + ${PXFOUNDATION_SOURCE_HEADERS} + ${PXFOUNDATION_HEADERS} + + ${PXFOUNDATION_PLATFORM_FILES} +) + +# Add the headers to the install +INSTALL(FILES ${PXFOUNDATION_HEADERS} DESTINATION include/foundation) + +INSTALL(FILES ${PXFOUNDATION_SOURCE_HEADERS} DESTINATION src/foundation/include) + +TARGET_INCLUDE_DIRECTORIES(PxFoundation + PRIVATE ${PXSHARED_ROOT_DIR}/include + PRIVATE ${LL_SOURCE_DIR}/include + + PRIVATE ${PXFOUNDATION_PLATFORM_INCLUDES} + + INTERFACE $<INSTALL_INTERFACE:include>$<BUILD_INTERFACE:${PXSHARED_ROOT_DIR}/include> ${PXFOUNDATION_PLATFORM_INTERFACE_HEADERS} + INTERFACE $<INSTALL_INTERFACE:include/foundation>$<BUILD_INTERFACE:${PXSHARED_ROOT_DIR}/include/foundation> + #INTERFACE $<INSTALL_INTERFACE:include/foundation/windows>$<BUILD_INTERFACE:${PXSHARED_ROOT_DIR}/include/foundation/windows> + + # FIXME: This is really terrible! Don't export src directories + INTERFACE $<INSTALL_INTERFACE:src/foundation/include>$<BUILD_INTERFACE:${PXSHARED_ROOT_DIR}/src/foundation/include> + +) + +TARGET_COMPILE_DEFINITIONS(PxFoundation + PRIVATE ${PXFOUNDATION_COMPILE_DEFS} +) + +# Add linked libraries +TARGET_LINK_LIBRARIES(PxFoundation + PRIVATE ${PXFOUNDATION_PLATFORM_LINKED_LIBS} +) + + +IF(USE_GAMEWORKS_OUTPUT_DIRS AND PXFOUNDATION_LIBTYPE STREQUAL "STATIC") + SET_TARGET_PROPERTIES(PxFoundation PROPERTIES + ARCHIVE_OUTPUT_NAME_DEBUG "PxFoundation_static" + ARCHIVE_OUTPUT_NAME_CHECKED "PxFoundation_static" + ARCHIVE_OUTPUT_NAME_PROFILE "PxFoundation_static" + ARCHIVE_OUTPUT_NAME_RELEASE "PxFoundation_static" + ) + + IF(DEFINED CMAKE_DEBUG_POSTFIX) + SET_TARGET_PROPERTIES(PxFoundation PROPERTIES + COMPILE_PDB_NAME_DEBUG "PxFoundation_static_${CMAKE_DEBUG_POSTFIX}" + COMPILE_PDB_NAME_CHECKED "PxFoundation_static_${CMAKE_CHECKED_POSTFIX}" + COMPILE_PDB_NAME_PROFILE "PxFoundation_static_${CMAKE_PROFILE_POSTFIX}" + COMPILE_PDB_NAME_RELEASE "PxFoundation_static_${CMAKE_RELEASE_POSTFIX}" + ) + ELSE() + SET_TARGET_PROPERTIES(PxFoundation PROPERTIES + COMPILE_PDB_NAME_DEBUG "PxFoundation_static" + COMPILE_PDB_NAME_CHECKED "PxFoundation_static" + COMPILE_PDB_NAME_PROFILE "PxFoundation_static" + COMPILE_PDB_NAME_RELEASE "PxFoundation_static" + ) + ENDIF() +ELSE() + SET_TARGET_PROPERTIES(PxFoundation PROPERTIES + COMPILE_PDB_NAME_DEBUG "PxFoundation${CMAKE_DEBUG_POSTFIX}" + COMPILE_PDB_NAME_CHECKED "PxFoundation${CMAKE_CHECKED_POSTFIX}" + COMPILE_PDB_NAME_PROFILE "PxFoundation${CMAKE_PROFILE_POSTFIX}" + COMPILE_PDB_NAME_RELEASE "PxFoundation${CMAKE_RELEASE_POSTFIX}" + ) +ENDIF() + +# enable -fPIC so we can link static libs with the editor +SET_TARGET_PROPERTIES(PxFoundation PROPERTIES POSITION_INDEPENDENT_CODE TRUE) diff --git a/PxShared/src/compiler/cmake/templates/ProjectVersion.cmake.in b/PxShared/src/compiler/cmake/templates/ProjectVersion.cmake.in new file mode 100644 index 0000000..650b862 --- /dev/null +++ b/PxShared/src/compiler/cmake/templates/ProjectVersion.cmake.in @@ -0,0 +1,24 @@ +set(PACKAGE_VERSION "@PXSHARED_VERSION@") + +if("@PXSHARED_VERSION@" MATCHES "^([0-9]+\\.[0-9]+\\.[0-9]+)\\.") # strip the tweak version + set(CVF_VERSION_NO_TWEAK "${CMAKE_MATCH_1}") +else() + set(CVF_VERSION_NO_TWEAK "1.1.0") +endif() + +if(PACKAGE_FIND_VERSION MATCHES "^([0-9]+\\.[0-9]+\\.[0-9]+)\\.") # strip the tweak version + set(REQUESTED_VERSION_NO_TWEAK "${CMAKE_MATCH_1}") +else() + set(REQUESTED_VERSION_NO_TWEAK "${PACKAGE_FIND_VERSION}") +endif() + +if(REQUESTED_VERSION_NO_TWEAK STREQUAL CVF_VERSION_NO_TWEAK) + set(PACKAGE_VERSION_COMPATIBLE TRUE) +else() + set(PACKAGE_VERSION_COMPATIBLE FALSE) +endif() + +if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) +endif() + diff --git a/PxShared/src/compiler/cmake/uwp/CMakeLists.txt b/PxShared/src/compiler/cmake/uwp/CMakeLists.txt new file mode 100644 index 0000000..dd3250e --- /dev/null +++ b/PxShared/src/compiler/cmake/uwp/CMakeLists.txt @@ -0,0 +1,64 @@ + +SET(CMAKE_CXX_FLAGS "/Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4577 /wd4530 /d2Zi+ /WX /W4 /ZW /GF /GS- /GR- /Gd /fp:fast ${DISABLE_ITERATOR_DEBUGGING}") + +SET(CMAKE_CXX_FLAGS_DEBUG "/Od ${WINCRT_NDEBUG} /Zi") +SET(CMAKE_CXX_FLAGS_CHECKED "/Ox ${WINCRT_NDEBUG} /Zi") +SET(CMAKE_CXX_FLAGS_PROFILE "/Ox ${WINCRT_NDEBUG} /Zi") +SET(CMAKE_CXX_FLAGS_RELEASE "/Ox ${WINCRT_NDEBUG} /Zi") + +# Build PDBs for all configurations +SET(CMAKE_SHARED_LINKER_FLAGS "/DEBUG") + +# Controls PX_NVTX for all projects on windows +SET(PXSHARED_UWP_ENABLE_NVTX 0) + +# Disable cuda and dx for all projects on windows +SET(PXSHARED_UWP_COMPILE_DEFS WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;DISABLE_CUDA_PHYSX;) + +SET(PXSHARED_UWP_DEBUG_COMPILE_DEFS PX_DEBUG=1;PX_CHECKED=1;PX_NVTX=${PXSHARED_UWP_ENABLE_NVTX}) +SET(PXSHARED_UWP_CHECKED_COMPILE_DEFS PX_CHECKED=1;PX_NVTX=${PXSHARED_UWP_ENABLE_NVTX}) +SET(PXSHARED_UWP_PROFILE_COMPILE_DEFS PX_PROFILE=1;PX_NVTX=${PXSHARED_UWP_ENABLE_NVTX}) +SET(PXSHARED_UWP_RELEASE_COMPILE_DEFS ) + +IF(PX_SCALAR_MATH) + ADD_DEFINITIONS(-DPX_SIMD_DISABLED) +ENDIF() + +IF(CMAKE_CL_64) + ADD_DEFINITIONS(-DWIN64) +ENDIF(CMAKE_CL_64) + + +# Include project cmake files here +IF(DEFINED PX_SELECT_COMPONENTS) + if ("PxFoundation" IN_LIST PX_SELECT_COMPONENTS) + INCLUDE(PxFoundation.cmake) + endif() +ELSE() + INCLUDE(PxFoundation.cmake) + + INCLUDE(CMakePackageConfigHelpers) + + configure_file(templates/ProjectVersion.cmake.in ${PXSHARED_ROOT_DIR}/pxshared-config-version.cmake @ONLY) + +# WRITE_BASIC_PACKAGE_VERSION_FILE(${PXSHARED_ROOT_DIR}/pxshared-config-version.cmake VERSION ${PXSHARED_VERSION} COMPATIBILITY ExactVersion) + + SET(PXSHARED_LIBS PxFoundation) + + # PX_ROOT_LIB_DIR is set by NvidiaBuildOptions and put into the cache. It's a relative path to the lib dir without config + + install( + TARGETS ${PXSHARED_LIBS} + EXPORT PxShared + DESTINATION $<$<CONFIG:debug>:${PX_ROOT_LIB_DIR}/debug>$<$<CONFIG:release>:${PX_ROOT_LIB_DIR}/release>$<$<CONFIG:checked>:${PX_ROOT_LIB_DIR}/checked>$<$<CONFIG:profile>:${PX_ROOT_LIB_DIR}/profile> ) + + install(EXPORT PxShared FILE pxshared-config.cmake DESTINATION cmake) + + install(FILES ${PXSHARED_ROOT_DIR}/pxshared-config-version.cmake DESTINATION ${CMAKE_INSTALL_PREFIX}/cmake) + + # This doesn't use libpath-suffix, as it won't have the "wrapper" top + export(EXPORT PxShared FILE ${PXSHARED_ROOT_DIR}/pxshared-config.cmake) + + +ENDIF() + diff --git a/PxShared/src/compiler/cmake/uwp/PxFoundation.cmake b/PxShared/src/compiler/cmake/uwp/PxFoundation.cmake new file mode 100644 index 0000000..a4b666d --- /dev/null +++ b/PxShared/src/compiler/cmake/uwp/PxFoundation.cmake @@ -0,0 +1,97 @@ +# +# Build PxFoundation +# + +# Can no longer just use LIBPATH_SUFFIX since it depends on build type +IF(CMAKE_CL_64) + SET(RESOURCE_LIBPATH_SUFFIX "x64") +ELSEIF(${PX_OUTPUT_ARCH} STREQUAL "arm") + SET(RESOURCE_LIBPATH_SUFFIX "arm") +ELSE(CMAKE_CL_64) + SET(RESOURCE_LIBPATH_SUFFIX "x86") +ENDIF(CMAKE_CL_64) + +SET(PXFOUNDATION_LIBTYPE SHARED) + +SET(PXFOUNDATION_RESOURCE_FILE + ${PXSHARED_SOURCE_DIR}/compiler/resource_${RESOURCE_LIBPATH_SUFFIX}/PxFoundation.rc +) +SOURCE_GROUP(resource FILES ${PXFOUNDATION_RESOURCE_FILE}) + +SET(PXFOUNDATION_PLATFORM_HEADERS + ${PXSHARED_ROOT_DIR}/include/foundation/windows/PxWindowsIntrinsics.h +) +SOURCE_GROUP("include\\windows" FILES ${PXFOUNDATION_PLATFORM_HEADERS}) + +SET(PXFOUNDATION_PLATFORM_SOURCE + ${LL_SOURCE_DIR}/src/windows/PsWindowsAtomic.cpp + ${LL_SOURCE_DIR}/src/windows/PsWindowsCpu.cpp + ${LL_SOURCE_DIR}/src/windows/PsWindowsFPU.cpp + ${LL_SOURCE_DIR}/src/windows/PsWindowsMutex.cpp + ${LL_SOURCE_DIR}/src/windows/PsWindowsPrintString.cpp + ${LL_SOURCE_DIR}/src/windows/PsWindowsSList.cpp + ${LL_SOURCE_DIR}/src/windows/PsWindowsSocket.cpp + ${LL_SOURCE_DIR}/src/windows/PsWindowsSync.cpp + ${LL_SOURCE_DIR}/src/windows/PsWindowsTime.cpp +) +SOURCE_GROUP("src\\src\\windows" FILES ${PXFOUNDATION_PLATFORM_SOURCE}) + +SET(PXFOUNDATION_UWP_PLATFORM_SOURCE + ${LL_SOURCE_DIR}/src/windows/PsUWPThread.cpp +) +SOURCE_GROUP("src\\src\\uwp" FILES ${PXFOUNDATION_UWP_PLATFORM_SOURCE}) + + +SET(PXFOUNDATION_PLATFORM_SOURCE_HEADERS + ${LL_SOURCE_DIR}/include/windows/PsWindowsAoS.h + ${LL_SOURCE_DIR}/include/windows/PsWindowsFPU.h + ${LL_SOURCE_DIR}/include/windows/PsWindowsInclude.h + ${LL_SOURCE_DIR}/include/windows/PsWindowsInlineAoS.h + ${LL_SOURCE_DIR}/include/windows/PsWindowsIntrinsics.h + ${LL_SOURCE_DIR}/include/windows/PsWindowsLoadLibrary.h + ${LL_SOURCE_DIR}/include/windows/PsWindowsTrigConstants.h +) +SOURCE_GROUP("src\\include\\windows" FILES ${PXFOUNDATION_PLATFORM_SOURCE_HEADERS}) + +SET(PXFOUNDATION_PLATFORM_SOURCE_HEADERS_2 + ${LL_SOURCE_DIR}/include/unix/PsUnixInlineAoS.h + ${LL_SOURCE_DIR}/include/unix/PsUnixTrigConstants.h +) +SOURCE_GROUP("src\\include\\unix" FILES ${PXFOUNDATION_PLATFORM_SOURCE_HEADERS_2}) + +SET(PXFOUNDATION_PLATFORM_SOURCE_HEADERS_3 + ${LL_SOURCE_DIR}/include/unix/neon/PsUnixNeonAoS.h + ${LL_SOURCE_DIR}/include/unix/neon/PsUnixNeonInlineAoS.h +) +SOURCE_GROUP("src\\include\\unix\\neon" FILES ${PXFOUNDATION_PLATFORM_SOURCE_HEADERS_3}) + +INSTALL(FILES ${PXFOUNDATION_PLATFORM_HEADERS} DESTINATION include/foundation/windows) + +INSTALL(FILES ${PXFOUNDATION_PLATFORM_SOURCE_HEADERS} DESTINATION src/foundation/include/windows) +INSTALL(FILES ${PXFOUNDATION_PLATFORM_SOURCE_HEADERS_2} DESTINATION src/foundation/include/unix) +INSTALL(FILES ${PXFOUNDATION_PLATFORM_SOURCE_HEADERS_3} DESTINATION src/foundation/include/unix/neon) + +SET(PXFOUNDATION_PLATFORM_FILES + ${PXFOUNDATION_PLATFORM_HEADERS} + ${PXFOUNDATION_PLATFORM_SOURCE} + ${PXFOUNDATION_UWP_PLATFORM_SOURCE} + ${PXFOUNDATION_PLATFORM_SOURCE_HEADERS} + ${PXFOUNDATION_RESOURCE_FILE} +) + +SET(PXFOUNDATION_PLATFORM_INCLUDES + ${LL_SOURCE_DIR}/include/windows +) + +SET(PXFOUNDATION_COMPILE_DEFS + # Common to all configurations + ${PXSHARED_UWP_COMPILE_DEFS};PX_FOUNDATION_DLL=1; + + $<$<CONFIG:debug>:${PXSHARED_UWP_DEBUG_COMPILE_DEFS};> + $<$<CONFIG:checked>:${PXSHARED_UWP_CHECKED_COMPILE_DEFS};> + $<$<CONFIG:profile>:${PXSHARED_UWP_PROFILE_COMPILE_DEFS};> + $<$<CONFIG:release>:${PXSHARED_UWP_RELEASE_COMPILE_DEFS};> +) + +SET(PXFOUNDATION_PLATFORM_INTERFACE_HEADERS "$<INSTALL_INTERFACE:include/foundation/windows>$<BUILD_INTERFACE:${PXSHARED_ROOT_DIR}/include/foundation/windows>") + diff --git a/PxShared/src/compiler/linux32/Makefile b/PxShared/src/compiler/linux32/Makefile new file mode 100644 index 0000000..1815d2e --- /dev/null +++ b/PxShared/src/compiler/linux32/Makefile @@ -0,0 +1,209 @@ +#!/usr/bin/make +# Makefile generated by XPJ for linux32 + +DEPSDIR = .deps +#default defines +OBJS_DIR = build +RMDIR = rm -fr +ECHO = echo +CCLD = g++ +CXX = g++ +CC = gcc +RANLIB = ranlib +AR = ar +STRIP = strip +OBJDUMP = objdump +OBJCOPY = objcopy +-include Makedefs.linux32.mk + +all: checked debug profile release + +checked: build_PxCudaContextManager_checked + +debug: build_PxCudaContextManager_debug + +profile: build_PxCudaContextManager_profile + +release: build_PxCudaContextManager_release + +clean: clean_PxCudaContextManager_debug clean_PxCudaContextManager_checked clean_PxCudaContextManager_profile clean_PxCudaContextManager_release + rm -rf $(DEPSDIR) + + +clean_debug: clean_PxCudaContextManager_debug + rm -rf $(DEPSDIR) + + +clean_checked: clean_PxCudaContextManager_checked + rm -rf $(DEPSDIR) + + +clean_profile: clean_PxCudaContextManager_profile + rm -rf $(DEPSDIR) + + +clean_release: clean_PxCudaContextManager_release + rm -rf $(DEPSDIR) + + +include Makefile.PxCudaContextManager.mk + + +# Disable implicit rules to speedup build +.SUFFIXES: +SUFFIXES := +%.out: +%.a: +%.ln: +%.o: +%: %.o +%.c: +%: %.c +%.ln: %.c +%.o: %.c +%.cc: +%: %.cc +%.o: %.cc +%.C: +%: %.C +%.o: %.C +%.cpp: +%: %.cpp +%.o: %.cpp +%.p: +%: %.p +%.o: %.p +%.f: +%: + %.f%.o: %.f +%.F: +%: %.F +%.o: %.F +%.f: %.F +%.r: +%: %.r +%.o: %.r +%.f: %.r +%.y: +%.ln: %.y +%.c: %.y +%.l: +%.ln: %.l +%.c: %.l +%.r: %.l +%.s: +%: %.s +%.o: %.s +%.S: +%: %.S +%.o: %.S +%.s: %.S +%.mod: +%: %.mod +%.o: %.mod +%.sym: +%.def: +%.sym: %.def +%.h: +%.info: +%.dvi: +%.tex: +%.dvi: %.tex +%.texinfo: +%.info: %.texinfo +%.dvi: %.texinfo +%.texi: +%.info: %.texi +%.dvi: %.texi +%.txinfo: +%.info: %.txinfo +%.dvi: %.txinfo +%.w: +%.c: %.w +%.tex: %.w +%.ch: +%.web: +%.p: %.web +%.tex: %.web +%.sh: +%: %.sh +%.elc: +%.el: +(%): % +%.out: % +%.c: %.w %.ch +%.tex: %.w %.ch +%: %,v +%: RCS/%,v +%: RCS/% +%: s.% +%: SCCS/s.% +.web.p: +.l.r: +.dvi: +.F.o: +.l: +.y.ln: +.o: +.y: +.def.sym: +.p.o: +.p: +.txinfo.dvi: +.a: +.l.ln: +.w.c: +.texi.dvi: +.sh: +.cc: +.cc.o: +.def: +.c.o: +.r.o: +.r: +.info: +.elc: +.l.c: +.out: +.C: +.r.f: +.S: +.texinfo.info: +.c: +.w.tex: +.c.ln: +.s.o: +.s: +.texinfo.dvi: +.el: +.texinfo: +.y.c: +.web.tex: +.texi.info: +.DEFAULT: +.h: +.tex.dvi: +.cpp.o: +.cpp: +.C.o: +.ln: +.texi: +.txinfo: +.tex: +.txinfo.info: +.ch: +.S.s: +.mod: +.mod.o: +.F.f: +.w: +.S.o: +.F: +.web: +.sym: +.f: +.f.o: +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux32/Makefile.PsFastXml.mk b/PxShared/src/compiler/linux32/Makefile.PsFastXml.mk new file mode 100644 index 0000000..0177779 --- /dev/null +++ b/PxShared/src/compiler/linux32/Makefile.PsFastXml.mk @@ -0,0 +1,356 @@ +# Makefile generated by XPJ for linux32 +-include Makefile.custom +ProjectName = PsFastXml +PsFastXml_cppfiles += ./../../fastxml/src/PsFastXml.cpp + +PsFastXml_cpp_debug_dep = $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PsFastXml_cppfiles))))) +PsFastXml_cc_debug_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(PsFastXml_ccfiles))))) +PsFastXml_c_debug_dep = $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PsFastXml_cfiles))))) +PsFastXml_debug_dep = $(PsFastXml_cpp_debug_dep) $(PsFastXml_cc_debug_dep) $(PsFastXml_c_debug_dep) +-include $(PsFastXml_debug_dep) +PsFastXml_cpp_release_dep = $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PsFastXml_cppfiles))))) +PsFastXml_cc_release_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(PsFastXml_ccfiles))))) +PsFastXml_c_release_dep = $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PsFastXml_cfiles))))) +PsFastXml_release_dep = $(PsFastXml_cpp_release_dep) $(PsFastXml_cc_release_dep) $(PsFastXml_c_release_dep) +-include $(PsFastXml_release_dep) +PsFastXml_cpp_checked_dep = $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PsFastXml_cppfiles))))) +PsFastXml_cc_checked_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.checked.P, $(PsFastXml_ccfiles))))) +PsFastXml_c_checked_dep = $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PsFastXml_cfiles))))) +PsFastXml_checked_dep = $(PsFastXml_cpp_checked_dep) $(PsFastXml_cc_checked_dep) $(PsFastXml_c_checked_dep) +-include $(PsFastXml_checked_dep) +PsFastXml_cpp_profile_dep = $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PsFastXml_cppfiles))))) +PsFastXml_cc_profile_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.profile.P, $(PsFastXml_ccfiles))))) +PsFastXml_c_profile_dep = $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PsFastXml_cfiles))))) +PsFastXml_profile_dep = $(PsFastXml_cpp_profile_dep) $(PsFastXml_cc_profile_dep) $(PsFastXml_c_profile_dep) +-include $(PsFastXml_profile_dep) +PsFastXml_debug_hpaths := +PsFastXml_debug_hpaths += ./../../../include +PsFastXml_debug_hpaths += ./../../foundation/include +PsFastXml_debug_hpaths += ./../../fastxml/include +PsFastXml_debug_lpaths := +PsFastXml_debug_defines := $(PsFastXml_custom_defines) +PsFastXml_debug_defines += PX_FOUNDATION_DLL=0 +PsFastXml_debug_defines += _DEBUG +PsFastXml_debug_defines += PX_DEBUG=1 +PsFastXml_debug_defines += PX_CHECKED=1 +PsFastXml_debug_libraries := +PsFastXml_debug_common_cflags := $(PsFastXml_custom_cflags) +PsFastXml_debug_common_cflags += -MMD +PsFastXml_debug_common_cflags += $(addprefix -D, $(PsFastXml_debug_defines)) +PsFastXml_debug_common_cflags += $(addprefix -I, $(PsFastXml_debug_hpaths)) +PsFastXml_debug_common_cflags += -m32 +PsFastXml_debug_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PsFastXml_debug_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PsFastXml_debug_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PsFastXml_debug_common_cflags += -Wno-missing-field-initializers +PsFastXml_debug_common_cflags += -g3 -gdwarf-2 +PsFastXml_debug_cflags := $(PsFastXml_debug_common_cflags) +PsFastXml_debug_cppflags := $(PsFastXml_debug_common_cflags) +PsFastXml_debug_lflags := $(PsFastXml_custom_lflags) +PsFastXml_debug_lflags += $(addprefix -L, $(PsFastXml_debug_lpaths)) +PsFastXml_debug_lflags += -Wl,--start-group $(addprefix -l, $(PsFastXml_debug_libraries)) -Wl,--end-group +PsFastXml_debug_lflags += -lrt +PsFastXml_debug_lflags += -m32 +PsFastXml_debug_objsdir = $(OBJS_DIR)/PsFastXml_debug +PsFastXml_debug_cpp_o = $(addprefix $(PsFastXml_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PsFastXml_cppfiles))))) +PsFastXml_debug_cc_o = $(addprefix $(PsFastXml_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PsFastXml_ccfiles))))) +PsFastXml_debug_c_o = $(addprefix $(PsFastXml_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PsFastXml_cfiles))))) +PsFastXml_debug_obj = $(PsFastXml_debug_cpp_o) $(PsFastXml_debug_cc_o) $(PsFastXml_debug_c_o) +PsFastXml_debug_bin := ./../../../lib/linux32/libPsFastXmlDEBUG.a + +clean_PsFastXml_debug: + @$(ECHO) clean PsFastXml debug + @$(RMDIR) $(PsFastXml_debug_objsdir) + @$(RMDIR) $(PsFastXml_debug_bin) + @$(RMDIR) $(DEPSDIR)/PsFastXml/debug + +build_PsFastXml_debug: postbuild_PsFastXml_debug +postbuild_PsFastXml_debug: mainbuild_PsFastXml_debug +mainbuild_PsFastXml_debug: prebuild_PsFastXml_debug $(PsFastXml_debug_bin) +prebuild_PsFastXml_debug: + +$(PsFastXml_debug_bin): $(PsFastXml_debug_obj) + mkdir -p `dirname ./../../../lib/linux32/libPsFastXmlDEBUG.a` + @$(AR) rcs $(PsFastXml_debug_bin) $(PsFastXml_debug_obj) + $(ECHO) building $@ complete! + +PsFastXml_debug_DEPDIR = $(dir $(@))/$(*F) +$(PsFastXml_debug_cpp_o): $(PsFastXml_debug_objsdir)/%.o: + $(ECHO) PsFastXml: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cppfiles)))))) + cp $(PsFastXml_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + rm -f $(PsFastXml_debug_DEPDIR).d + +$(PsFastXml_debug_cc_o): $(PsFastXml_debug_objsdir)/%.o: + $(ECHO) PsFastXml: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_ccfiles)))))) + cp $(PsFastXml_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_ccfiles))))).debug.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_ccfiles))))).debug.P; \ + rm -f $(PsFastXml_debug_DEPDIR).d + +$(PsFastXml_debug_c_o): $(PsFastXml_debug_objsdir)/%.o: + $(ECHO) PsFastXml: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PsFastXml_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cfiles)))))) + cp $(PsFastXml_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + rm -f $(PsFastXml_debug_DEPDIR).d + +PsFastXml_release_hpaths := +PsFastXml_release_hpaths += ./../../../include +PsFastXml_release_hpaths += ./../../foundation/include +PsFastXml_release_hpaths += ./../../fastxml/include +PsFastXml_release_lpaths := +PsFastXml_release_defines := $(PsFastXml_custom_defines) +PsFastXml_release_defines += PX_FOUNDATION_DLL=0 +PsFastXml_release_defines += NDEBUG +PsFastXml_release_libraries := +PsFastXml_release_common_cflags := $(PsFastXml_custom_cflags) +PsFastXml_release_common_cflags += -MMD +PsFastXml_release_common_cflags += $(addprefix -D, $(PsFastXml_release_defines)) +PsFastXml_release_common_cflags += $(addprefix -I, $(PsFastXml_release_hpaths)) +PsFastXml_release_common_cflags += -m32 +PsFastXml_release_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PsFastXml_release_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PsFastXml_release_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PsFastXml_release_common_cflags += -Wno-missing-field-initializers +PsFastXml_release_common_cflags += -O3 -fno-strict-aliasing +PsFastXml_release_cflags := $(PsFastXml_release_common_cflags) +PsFastXml_release_cppflags := $(PsFastXml_release_common_cflags) +PsFastXml_release_lflags := $(PsFastXml_custom_lflags) +PsFastXml_release_lflags += $(addprefix -L, $(PsFastXml_release_lpaths)) +PsFastXml_release_lflags += -Wl,--start-group $(addprefix -l, $(PsFastXml_release_libraries)) -Wl,--end-group +PsFastXml_release_lflags += -lrt +PsFastXml_release_lflags += -m32 +PsFastXml_release_objsdir = $(OBJS_DIR)/PsFastXml_release +PsFastXml_release_cpp_o = $(addprefix $(PsFastXml_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PsFastXml_cppfiles))))) +PsFastXml_release_cc_o = $(addprefix $(PsFastXml_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PsFastXml_ccfiles))))) +PsFastXml_release_c_o = $(addprefix $(PsFastXml_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PsFastXml_cfiles))))) +PsFastXml_release_obj = $(PsFastXml_release_cpp_o) $(PsFastXml_release_cc_o) $(PsFastXml_release_c_o) +PsFastXml_release_bin := ./../../../lib/linux32/libPsFastXml.a + +clean_PsFastXml_release: + @$(ECHO) clean PsFastXml release + @$(RMDIR) $(PsFastXml_release_objsdir) + @$(RMDIR) $(PsFastXml_release_bin) + @$(RMDIR) $(DEPSDIR)/PsFastXml/release + +build_PsFastXml_release: postbuild_PsFastXml_release +postbuild_PsFastXml_release: mainbuild_PsFastXml_release +mainbuild_PsFastXml_release: prebuild_PsFastXml_release $(PsFastXml_release_bin) +prebuild_PsFastXml_release: + +$(PsFastXml_release_bin): $(PsFastXml_release_obj) + mkdir -p `dirname ./../../../lib/linux32/libPsFastXml.a` + @$(AR) rcs $(PsFastXml_release_bin) $(PsFastXml_release_obj) + $(ECHO) building $@ complete! + +PsFastXml_release_DEPDIR = $(dir $(@))/$(*F) +$(PsFastXml_release_cpp_o): $(PsFastXml_release_objsdir)/%.o: + $(ECHO) PsFastXml: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cppfiles)))))) + cp $(PsFastXml_release_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + rm -f $(PsFastXml_release_DEPDIR).d + +$(PsFastXml_release_cc_o): $(PsFastXml_release_objsdir)/%.o: + $(ECHO) PsFastXml: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_ccfiles)))))) + cp $(PsFastXml_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_ccfiles))))).release.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_ccfiles))))).release.P; \ + rm -f $(PsFastXml_release_DEPDIR).d + +$(PsFastXml_release_c_o): $(PsFastXml_release_objsdir)/%.o: + $(ECHO) PsFastXml: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PsFastXml_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cfiles)))))) + cp $(PsFastXml_release_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + rm -f $(PsFastXml_release_DEPDIR).d + +PsFastXml_checked_hpaths := +PsFastXml_checked_hpaths += ./../../../include +PsFastXml_checked_hpaths += ./../../foundation/include +PsFastXml_checked_hpaths += ./../../fastxml/include +PsFastXml_checked_lpaths := +PsFastXml_checked_defines := $(PsFastXml_custom_defines) +PsFastXml_checked_defines += PX_FOUNDATION_DLL=0 +PsFastXml_checked_defines += NDEBUG +PsFastXml_checked_defines += PX_CHECKED=1 +PsFastXml_checked_libraries := +PsFastXml_checked_common_cflags := $(PsFastXml_custom_cflags) +PsFastXml_checked_common_cflags += -MMD +PsFastXml_checked_common_cflags += $(addprefix -D, $(PsFastXml_checked_defines)) +PsFastXml_checked_common_cflags += $(addprefix -I, $(PsFastXml_checked_hpaths)) +PsFastXml_checked_common_cflags += -m32 +PsFastXml_checked_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PsFastXml_checked_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PsFastXml_checked_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PsFastXml_checked_common_cflags += -Wno-missing-field-initializers +PsFastXml_checked_common_cflags += -g3 -gdwarf-2 -O3 -fno-strict-aliasing +PsFastXml_checked_cflags := $(PsFastXml_checked_common_cflags) +PsFastXml_checked_cppflags := $(PsFastXml_checked_common_cflags) +PsFastXml_checked_lflags := $(PsFastXml_custom_lflags) +PsFastXml_checked_lflags += $(addprefix -L, $(PsFastXml_checked_lpaths)) +PsFastXml_checked_lflags += -Wl,--start-group $(addprefix -l, $(PsFastXml_checked_libraries)) -Wl,--end-group +PsFastXml_checked_lflags += -lrt +PsFastXml_checked_lflags += -m32 +PsFastXml_checked_objsdir = $(OBJS_DIR)/PsFastXml_checked +PsFastXml_checked_cpp_o = $(addprefix $(PsFastXml_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PsFastXml_cppfiles))))) +PsFastXml_checked_cc_o = $(addprefix $(PsFastXml_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PsFastXml_ccfiles))))) +PsFastXml_checked_c_o = $(addprefix $(PsFastXml_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PsFastXml_cfiles))))) +PsFastXml_checked_obj = $(PsFastXml_checked_cpp_o) $(PsFastXml_checked_cc_o) $(PsFastXml_checked_c_o) +PsFastXml_checked_bin := ./../../../lib/linux32/libPsFastXmlCHECKED.a + +clean_PsFastXml_checked: + @$(ECHO) clean PsFastXml checked + @$(RMDIR) $(PsFastXml_checked_objsdir) + @$(RMDIR) $(PsFastXml_checked_bin) + @$(RMDIR) $(DEPSDIR)/PsFastXml/checked + +build_PsFastXml_checked: postbuild_PsFastXml_checked +postbuild_PsFastXml_checked: mainbuild_PsFastXml_checked +mainbuild_PsFastXml_checked: prebuild_PsFastXml_checked $(PsFastXml_checked_bin) +prebuild_PsFastXml_checked: + +$(PsFastXml_checked_bin): $(PsFastXml_checked_obj) + mkdir -p `dirname ./../../../lib/linux32/libPsFastXmlCHECKED.a` + @$(AR) rcs $(PsFastXml_checked_bin) $(PsFastXml_checked_obj) + $(ECHO) building $@ complete! + +PsFastXml_checked_DEPDIR = $(dir $(@))/$(*F) +$(PsFastXml_checked_cpp_o): $(PsFastXml_checked_objsdir)/%.o: + $(ECHO) PsFastXml: compiling checked $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_checked_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cppfiles)))))) + cp $(PsFastXml_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + rm -f $(PsFastXml_checked_DEPDIR).d + +$(PsFastXml_checked_cc_o): $(PsFastXml_checked_objsdir)/%.o: + $(ECHO) PsFastXml: compiling checked $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_checked_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_ccfiles)))))) + cp $(PsFastXml_checked_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_ccfiles))))).checked.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_ccfiles))))).checked.P; \ + rm -f $(PsFastXml_checked_DEPDIR).d + +$(PsFastXml_checked_c_o): $(PsFastXml_checked_objsdir)/%.o: + $(ECHO) PsFastXml: compiling checked $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PsFastXml_checked_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cfiles)))))) + cp $(PsFastXml_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + rm -f $(PsFastXml_checked_DEPDIR).d + +PsFastXml_profile_hpaths := +PsFastXml_profile_hpaths += ./../../../include +PsFastXml_profile_hpaths += ./../../foundation/include +PsFastXml_profile_hpaths += ./../../fastxml/include +PsFastXml_profile_lpaths := +PsFastXml_profile_defines := $(PsFastXml_custom_defines) +PsFastXml_profile_defines += PX_FOUNDATION_DLL=0 +PsFastXml_profile_defines += NDEBUG +PsFastXml_profile_defines += PX_PROFILE=1 +PsFastXml_profile_libraries := +PsFastXml_profile_common_cflags := $(PsFastXml_custom_cflags) +PsFastXml_profile_common_cflags += -MMD +PsFastXml_profile_common_cflags += $(addprefix -D, $(PsFastXml_profile_defines)) +PsFastXml_profile_common_cflags += $(addprefix -I, $(PsFastXml_profile_hpaths)) +PsFastXml_profile_common_cflags += -m32 +PsFastXml_profile_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PsFastXml_profile_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PsFastXml_profile_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PsFastXml_profile_common_cflags += -Wno-missing-field-initializers +PsFastXml_profile_common_cflags += -O3 -fno-strict-aliasing +PsFastXml_profile_cflags := $(PsFastXml_profile_common_cflags) +PsFastXml_profile_cppflags := $(PsFastXml_profile_common_cflags) +PsFastXml_profile_lflags := $(PsFastXml_custom_lflags) +PsFastXml_profile_lflags += $(addprefix -L, $(PsFastXml_profile_lpaths)) +PsFastXml_profile_lflags += -Wl,--start-group $(addprefix -l, $(PsFastXml_profile_libraries)) -Wl,--end-group +PsFastXml_profile_lflags += -lrt +PsFastXml_profile_lflags += -m32 +PsFastXml_profile_objsdir = $(OBJS_DIR)/PsFastXml_profile +PsFastXml_profile_cpp_o = $(addprefix $(PsFastXml_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PsFastXml_cppfiles))))) +PsFastXml_profile_cc_o = $(addprefix $(PsFastXml_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PsFastXml_ccfiles))))) +PsFastXml_profile_c_o = $(addprefix $(PsFastXml_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PsFastXml_cfiles))))) +PsFastXml_profile_obj = $(PsFastXml_profile_cpp_o) $(PsFastXml_profile_cc_o) $(PsFastXml_profile_c_o) +PsFastXml_profile_bin := ./../../../lib/linux32/libPsFastXmlPROFILE.a + +clean_PsFastXml_profile: + @$(ECHO) clean PsFastXml profile + @$(RMDIR) $(PsFastXml_profile_objsdir) + @$(RMDIR) $(PsFastXml_profile_bin) + @$(RMDIR) $(DEPSDIR)/PsFastXml/profile + +build_PsFastXml_profile: postbuild_PsFastXml_profile +postbuild_PsFastXml_profile: mainbuild_PsFastXml_profile +mainbuild_PsFastXml_profile: prebuild_PsFastXml_profile $(PsFastXml_profile_bin) +prebuild_PsFastXml_profile: + +$(PsFastXml_profile_bin): $(PsFastXml_profile_obj) + mkdir -p `dirname ./../../../lib/linux32/libPsFastXmlPROFILE.a` + @$(AR) rcs $(PsFastXml_profile_bin) $(PsFastXml_profile_obj) + $(ECHO) building $@ complete! + +PsFastXml_profile_DEPDIR = $(dir $(@))/$(*F) +$(PsFastXml_profile_cpp_o): $(PsFastXml_profile_objsdir)/%.o: + $(ECHO) PsFastXml: compiling profile $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_profile_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cppfiles)))))) + cp $(PsFastXml_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + rm -f $(PsFastXml_profile_DEPDIR).d + +$(PsFastXml_profile_cc_o): $(PsFastXml_profile_objsdir)/%.o: + $(ECHO) PsFastXml: compiling profile $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_profile_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_ccfiles)))))) + cp $(PsFastXml_profile_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_ccfiles))))).profile.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_ccfiles))))).profile.P; \ + rm -f $(PsFastXml_profile_DEPDIR).d + +$(PsFastXml_profile_c_o): $(PsFastXml_profile_objsdir)/%.o: + $(ECHO) PsFastXml: compiling profile $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PsFastXml_profile_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cfiles)))))) + cp $(PsFastXml_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + rm -f $(PsFastXml_profile_DEPDIR).d + +clean_PsFastXml: clean_PsFastXml_debug clean_PsFastXml_release clean_PsFastXml_checked clean_PsFastXml_profile + rm -rf $(DEPSDIR) + +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux32/Makefile.PxCudaContextManager.mk b/PxShared/src/compiler/linux32/Makefile.PxCudaContextManager.mk new file mode 100644 index 0000000..620a468 --- /dev/null +++ b/PxShared/src/compiler/linux32/Makefile.PxCudaContextManager.mk @@ -0,0 +1,391 @@ +# Makefile generated by XPJ for linux32 +-include Makefile.custom +ProjectName = PxCudaContextManager +PxCudaContextManager_cppfiles += ./../../cudamanager/src/BlockingWait.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/CudaContextManager.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/CudaKernelWrangler.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/CudaMemoryManager.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/GpuDispatcher.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/HeapManagerRef.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/PhysXDeviceSettings.cpp +PxCudaContextManager_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu += ./../../cudamanager/src/CUDA/UtilKernels.cu + +PxCudaContextManager_cpp_debug_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_cc_debug_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_c_debug_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_debug_dep = $(PxCudaContextManager_cpp_debug_dep) $(PxCudaContextManager_cc_debug_dep) $(PxCudaContextManager_c_debug_dep) +-include $(PxCudaContextManager_debug_dep) +PxCudaContextManager_cpp_checked_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_cc_checked_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.checked.P, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_c_checked_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_checked_dep = $(PxCudaContextManager_cpp_checked_dep) $(PxCudaContextManager_cc_checked_dep) $(PxCudaContextManager_c_checked_dep) +-include $(PxCudaContextManager_checked_dep) +PxCudaContextManager_cpp_profile_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_cc_profile_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.profile.P, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_c_profile_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_profile_dep = $(PxCudaContextManager_cpp_profile_dep) $(PxCudaContextManager_cc_profile_dep) $(PxCudaContextManager_c_profile_dep) +-include $(PxCudaContextManager_profile_dep) +PxCudaContextManager_cpp_release_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_cc_release_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_c_release_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_release_dep = $(PxCudaContextManager_cpp_release_dep) $(PxCudaContextManager_cc_release_dep) $(PxCudaContextManager_c_release_dep) +-include $(PxCudaContextManager_release_dep) +PxCudaContextManager_debug_hpaths := +PxCudaContextManager_debug_hpaths += ./../../../include +PxCudaContextManager_debug_hpaths += ./../../foundation/include +PxCudaContextManager_debug_hpaths += ./../../task/include +PxCudaContextManager_debug_hpaths += ./../../cudamanager/include +PxCudaContextManager_debug_hpaths += ./../../../../../../externals/CUDA/6.5.19-linux/include +PxCudaContextManager_debug_lpaths := +PxCudaContextManager_debug_defines := $(PxCudaContextManager_custom_defines) +PxCudaContextManager_debug_defines += _DEBUG +PxCudaContextManager_debug_defines += PX_DEBUG=1 +PxCudaContextManager_debug_defines += PX_CHECKED=1 +PxCudaContextManager_debug_libraries := +PxCudaContextManager_debug_common_cflags := $(PxCudaContextManager_custom_cflags) +PxCudaContextManager_debug_common_cflags += -MMD +PxCudaContextManager_debug_common_cflags += $(addprefix -D, $(PxCudaContextManager_debug_defines)) +PxCudaContextManager_debug_common_cflags += $(addprefix -I, $(PxCudaContextManager_debug_hpaths)) +PxCudaContextManager_debug_common_cflags += -m32 +PxCudaContextManager_debug_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxCudaContextManager_debug_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxCudaContextManager_debug_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxCudaContextManager_debug_common_cflags += -Wno-missing-field-initializers +PxCudaContextManager_debug_common_cflags += -g3 -gdwarf-2 +PxCudaContextManager_debug_cflags := $(PxCudaContextManager_debug_common_cflags) +PxCudaContextManager_debug_cppflags := $(PxCudaContextManager_debug_common_cflags) +PxCudaContextManager_debug_lflags := $(PxCudaContextManager_custom_lflags) +PxCudaContextManager_debug_lflags += $(addprefix -L, $(PxCudaContextManager_debug_lpaths)) +PxCudaContextManager_debug_lflags += -Wl,--start-group $(addprefix -l, $(PxCudaContextManager_debug_libraries)) -Wl,--end-group +PxCudaContextManager_debug_lflags += -lrt +PxCudaContextManager_debug_lflags += -m32 +PxCudaContextManager_debug_objsdir = $(OBJS_DIR)/PxCudaContextManager_debug +PxCudaContextManager_debug_cpp_o = $(addprefix $(PxCudaContextManager_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_debug_cc_o = $(addprefix $(PxCudaContextManager_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_debug_c_o = $(addprefix $(PxCudaContextManager_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_debug_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o += $(OBJS_DIR)/PxCudaContextManager_debug/CUDA_src/cudamanager/src/CUDAUtilKernels.o +PxCudaContextManager_debug_obj = $(PxCudaContextManager_debug_cpp_o) $(PxCudaContextManager_debug_cc_o) $(PxCudaContextManager_debug_c_o) $(PxCudaContextManager_debug_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o) +PxCudaContextManager_debug_bin := ./../../../lib/linux32/libPxCudaContextManagerDEBUG.a + +clean_PxCudaContextManager_debug: + @$(ECHO) clean PxCudaContextManager debug + @$(RMDIR) $(PxCudaContextManager_debug_objsdir) + @$(RMDIR) $(PxCudaContextManager_debug_bin) + @$(RMDIR) $(DEPSDIR)/PxCudaContextManager/debug + +build_PxCudaContextManager_debug: postbuild_PxCudaContextManager_debug +postbuild_PxCudaContextManager_debug: mainbuild_PxCudaContextManager_debug +mainbuild_PxCudaContextManager_debug: prebuild_PxCudaContextManager_debug $(PxCudaContextManager_debug_bin) +prebuild_PxCudaContextManager_debug: + +$(PxCudaContextManager_debug_bin): $(PxCudaContextManager_debug_obj) + mkdir -p `dirname ./../../../lib/linux32/libPxCudaContextManagerDEBUG.a` + @$(AR) rcs $(PxCudaContextManager_debug_bin) $(PxCudaContextManager_debug_obj) + $(ECHO) building $@ complete! + +$(PxCudaContextManager_debug_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o): $(PxCudaContextManager_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu) + @mkdir -p `dirname $(OBJS_DIR)/PxCudaContextManager_debug/CUDA_src/cudamanager/src/CUDAUtilKernels.o` + $(ECHO) "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin/nvcc" -m32 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -D_DEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m32,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_debug/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin/nvcc" -m32 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -D_DEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m32,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_debug/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + +PxCudaContextManager_debug_DEPDIR = $(dir $(@))/$(*F) +$(PxCudaContextManager_debug_cpp_o): $(PxCudaContextManager_debug_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cppfiles)))))) + cp $(PxCudaContextManager_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + rm -f $(PxCudaContextManager_debug_DEPDIR).d + +$(PxCudaContextManager_debug_cc_o): $(PxCudaContextManager_debug_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_ccfiles)))))) + cp $(PxCudaContextManager_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).debug.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).debug.P; \ + rm -f $(PxCudaContextManager_debug_DEPDIR).d + +$(PxCudaContextManager_debug_c_o): $(PxCudaContextManager_debug_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxCudaContextManager_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cfiles)))))) + cp $(PxCudaContextManager_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + rm -f $(PxCudaContextManager_debug_DEPDIR).d + +PxCudaContextManager_checked_hpaths := +PxCudaContextManager_checked_hpaths += ./../../../include +PxCudaContextManager_checked_hpaths += ./../../foundation/include +PxCudaContextManager_checked_hpaths += ./../../task/include +PxCudaContextManager_checked_hpaths += ./../../cudamanager/include +PxCudaContextManager_checked_hpaths += ./../../../../../../externals/CUDA/6.5.19-linux/include +PxCudaContextManager_checked_lpaths := +PxCudaContextManager_checked_defines := $(PxCudaContextManager_custom_defines) +PxCudaContextManager_checked_defines += NDEBUG +PxCudaContextManager_checked_defines += PX_CHECKED=1 +PxCudaContextManager_checked_libraries := +PxCudaContextManager_checked_common_cflags := $(PxCudaContextManager_custom_cflags) +PxCudaContextManager_checked_common_cflags += -MMD +PxCudaContextManager_checked_common_cflags += $(addprefix -D, $(PxCudaContextManager_checked_defines)) +PxCudaContextManager_checked_common_cflags += $(addprefix -I, $(PxCudaContextManager_checked_hpaths)) +PxCudaContextManager_checked_common_cflags += -m32 +PxCudaContextManager_checked_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxCudaContextManager_checked_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxCudaContextManager_checked_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxCudaContextManager_checked_common_cflags += -Wno-missing-field-initializers +PxCudaContextManager_checked_common_cflags += -g3 -gdwarf-2 -O3 -fno-strict-aliasing +PxCudaContextManager_checked_cflags := $(PxCudaContextManager_checked_common_cflags) +PxCudaContextManager_checked_cppflags := $(PxCudaContextManager_checked_common_cflags) +PxCudaContextManager_checked_lflags := $(PxCudaContextManager_custom_lflags) +PxCudaContextManager_checked_lflags += $(addprefix -L, $(PxCudaContextManager_checked_lpaths)) +PxCudaContextManager_checked_lflags += -Wl,--start-group $(addprefix -l, $(PxCudaContextManager_checked_libraries)) -Wl,--end-group +PxCudaContextManager_checked_lflags += -lrt +PxCudaContextManager_checked_lflags += -m32 +PxCudaContextManager_checked_objsdir = $(OBJS_DIR)/PxCudaContextManager_checked +PxCudaContextManager_checked_cpp_o = $(addprefix $(PxCudaContextManager_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_checked_cc_o = $(addprefix $(PxCudaContextManager_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_checked_c_o = $(addprefix $(PxCudaContextManager_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_checked_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o += $(OBJS_DIR)/PxCudaContextManager_checked/CUDA_src/cudamanager/src/CUDAUtilKernels.o +PxCudaContextManager_checked_obj = $(PxCudaContextManager_checked_cpp_o) $(PxCudaContextManager_checked_cc_o) $(PxCudaContextManager_checked_c_o) $(PxCudaContextManager_checked_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o) +PxCudaContextManager_checked_bin := ./../../../lib/linux32/libPxCudaContextManagerCHECKED.a + +clean_PxCudaContextManager_checked: + @$(ECHO) clean PxCudaContextManager checked + @$(RMDIR) $(PxCudaContextManager_checked_objsdir) + @$(RMDIR) $(PxCudaContextManager_checked_bin) + @$(RMDIR) $(DEPSDIR)/PxCudaContextManager/checked + +build_PxCudaContextManager_checked: postbuild_PxCudaContextManager_checked +postbuild_PxCudaContextManager_checked: mainbuild_PxCudaContextManager_checked +mainbuild_PxCudaContextManager_checked: prebuild_PxCudaContextManager_checked $(PxCudaContextManager_checked_bin) +prebuild_PxCudaContextManager_checked: + +$(PxCudaContextManager_checked_bin): $(PxCudaContextManager_checked_obj) + mkdir -p `dirname ./../../../lib/linux32/libPxCudaContextManagerCHECKED.a` + @$(AR) rcs $(PxCudaContextManager_checked_bin) $(PxCudaContextManager_checked_obj) + $(ECHO) building $@ complete! + +$(PxCudaContextManager_checked_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o): $(PxCudaContextManager_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu) + @mkdir -p `dirname $(OBJS_DIR)/PxCudaContextManager_checked/CUDA_src/cudamanager/src/CUDAUtilKernels.o` + $(ECHO) "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin/nvcc" -m32 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m32,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_checked/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin/nvcc" -m32 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m32,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_checked/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + +PxCudaContextManager_checked_DEPDIR = $(dir $(@))/$(*F) +$(PxCudaContextManager_checked_cpp_o): $(PxCudaContextManager_checked_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling checked $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_checked_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cppfiles)))))) + cp $(PxCudaContextManager_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + rm -f $(PxCudaContextManager_checked_DEPDIR).d + +$(PxCudaContextManager_checked_cc_o): $(PxCudaContextManager_checked_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling checked $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_checked_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_ccfiles)))))) + cp $(PxCudaContextManager_checked_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).checked.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).checked.P; \ + rm -f $(PxCudaContextManager_checked_DEPDIR).d + +$(PxCudaContextManager_checked_c_o): $(PxCudaContextManager_checked_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling checked $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxCudaContextManager_checked_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cfiles)))))) + cp $(PxCudaContextManager_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + rm -f $(PxCudaContextManager_checked_DEPDIR).d + +PxCudaContextManager_profile_hpaths := +PxCudaContextManager_profile_hpaths += ./../../../include +PxCudaContextManager_profile_hpaths += ./../../foundation/include +PxCudaContextManager_profile_hpaths += ./../../task/include +PxCudaContextManager_profile_hpaths += ./../../cudamanager/include +PxCudaContextManager_profile_hpaths += ./../../../../../../externals/CUDA/6.5.19-linux/include +PxCudaContextManager_profile_lpaths := +PxCudaContextManager_profile_defines := $(PxCudaContextManager_custom_defines) +PxCudaContextManager_profile_defines += NDEBUG +PxCudaContextManager_profile_defines += PX_PROFILE=1 +PxCudaContextManager_profile_libraries := +PxCudaContextManager_profile_common_cflags := $(PxCudaContextManager_custom_cflags) +PxCudaContextManager_profile_common_cflags += -MMD +PxCudaContextManager_profile_common_cflags += $(addprefix -D, $(PxCudaContextManager_profile_defines)) +PxCudaContextManager_profile_common_cflags += $(addprefix -I, $(PxCudaContextManager_profile_hpaths)) +PxCudaContextManager_profile_common_cflags += -m32 +PxCudaContextManager_profile_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxCudaContextManager_profile_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxCudaContextManager_profile_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxCudaContextManager_profile_common_cflags += -Wno-missing-field-initializers +PxCudaContextManager_profile_common_cflags += -O3 -fno-strict-aliasing +PxCudaContextManager_profile_cflags := $(PxCudaContextManager_profile_common_cflags) +PxCudaContextManager_profile_cppflags := $(PxCudaContextManager_profile_common_cflags) +PxCudaContextManager_profile_lflags := $(PxCudaContextManager_custom_lflags) +PxCudaContextManager_profile_lflags += $(addprefix -L, $(PxCudaContextManager_profile_lpaths)) +PxCudaContextManager_profile_lflags += -Wl,--start-group $(addprefix -l, $(PxCudaContextManager_profile_libraries)) -Wl,--end-group +PxCudaContextManager_profile_lflags += -lrt +PxCudaContextManager_profile_lflags += -m32 +PxCudaContextManager_profile_objsdir = $(OBJS_DIR)/PxCudaContextManager_profile +PxCudaContextManager_profile_cpp_o = $(addprefix $(PxCudaContextManager_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_profile_cc_o = $(addprefix $(PxCudaContextManager_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_profile_c_o = $(addprefix $(PxCudaContextManager_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_profile_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o += $(OBJS_DIR)/PxCudaContextManager_profile/CUDA_src/cudamanager/src/CUDAUtilKernels.o +PxCudaContextManager_profile_obj = $(PxCudaContextManager_profile_cpp_o) $(PxCudaContextManager_profile_cc_o) $(PxCudaContextManager_profile_c_o) $(PxCudaContextManager_profile_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o) +PxCudaContextManager_profile_bin := ./../../../lib/linux32/libPxCudaContextManagerPROFILE.a + +clean_PxCudaContextManager_profile: + @$(ECHO) clean PxCudaContextManager profile + @$(RMDIR) $(PxCudaContextManager_profile_objsdir) + @$(RMDIR) $(PxCudaContextManager_profile_bin) + @$(RMDIR) $(DEPSDIR)/PxCudaContextManager/profile + +build_PxCudaContextManager_profile: postbuild_PxCudaContextManager_profile +postbuild_PxCudaContextManager_profile: mainbuild_PxCudaContextManager_profile +mainbuild_PxCudaContextManager_profile: prebuild_PxCudaContextManager_profile $(PxCudaContextManager_profile_bin) +prebuild_PxCudaContextManager_profile: + +$(PxCudaContextManager_profile_bin): $(PxCudaContextManager_profile_obj) + mkdir -p `dirname ./../../../lib/linux32/libPxCudaContextManagerPROFILE.a` + @$(AR) rcs $(PxCudaContextManager_profile_bin) $(PxCudaContextManager_profile_obj) + $(ECHO) building $@ complete! + +$(PxCudaContextManager_profile_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o): $(PxCudaContextManager_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu) + @mkdir -p `dirname $(OBJS_DIR)/PxCudaContextManager_profile/CUDA_src/cudamanager/src/CUDAUtilKernels.o` + $(ECHO) "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin/nvcc" -m32 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m32,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_profile/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin/nvcc" -m32 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m32,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_profile/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + +PxCudaContextManager_profile_DEPDIR = $(dir $(@))/$(*F) +$(PxCudaContextManager_profile_cpp_o): $(PxCudaContextManager_profile_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling profile $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_profile_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cppfiles)))))) + cp $(PxCudaContextManager_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + rm -f $(PxCudaContextManager_profile_DEPDIR).d + +$(PxCudaContextManager_profile_cc_o): $(PxCudaContextManager_profile_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling profile $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_profile_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_ccfiles)))))) + cp $(PxCudaContextManager_profile_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).profile.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).profile.P; \ + rm -f $(PxCudaContextManager_profile_DEPDIR).d + +$(PxCudaContextManager_profile_c_o): $(PxCudaContextManager_profile_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling profile $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxCudaContextManager_profile_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cfiles)))))) + cp $(PxCudaContextManager_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + rm -f $(PxCudaContextManager_profile_DEPDIR).d + +PxCudaContextManager_release_hpaths := +PxCudaContextManager_release_hpaths += ./../../../include +PxCudaContextManager_release_hpaths += ./../../foundation/include +PxCudaContextManager_release_hpaths += ./../../task/include +PxCudaContextManager_release_hpaths += ./../../cudamanager/include +PxCudaContextManager_release_hpaths += ./../../../../../../externals/CUDA/6.5.19-linux/include +PxCudaContextManager_release_lpaths := +PxCudaContextManager_release_defines := $(PxCudaContextManager_custom_defines) +PxCudaContextManager_release_defines += NDEBUG +PxCudaContextManager_release_libraries := +PxCudaContextManager_release_common_cflags := $(PxCudaContextManager_custom_cflags) +PxCudaContextManager_release_common_cflags += -MMD +PxCudaContextManager_release_common_cflags += $(addprefix -D, $(PxCudaContextManager_release_defines)) +PxCudaContextManager_release_common_cflags += $(addprefix -I, $(PxCudaContextManager_release_hpaths)) +PxCudaContextManager_release_common_cflags += -m32 +PxCudaContextManager_release_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxCudaContextManager_release_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxCudaContextManager_release_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxCudaContextManager_release_common_cflags += -Wno-missing-field-initializers +PxCudaContextManager_release_common_cflags += -O3 -fno-strict-aliasing +PxCudaContextManager_release_cflags := $(PxCudaContextManager_release_common_cflags) +PxCudaContextManager_release_cppflags := $(PxCudaContextManager_release_common_cflags) +PxCudaContextManager_release_lflags := $(PxCudaContextManager_custom_lflags) +PxCudaContextManager_release_lflags += $(addprefix -L, $(PxCudaContextManager_release_lpaths)) +PxCudaContextManager_release_lflags += -Wl,--start-group $(addprefix -l, $(PxCudaContextManager_release_libraries)) -Wl,--end-group +PxCudaContextManager_release_lflags += -lrt +PxCudaContextManager_release_lflags += -m32 +PxCudaContextManager_release_objsdir = $(OBJS_DIR)/PxCudaContextManager_release +PxCudaContextManager_release_cpp_o = $(addprefix $(PxCudaContextManager_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_release_cc_o = $(addprefix $(PxCudaContextManager_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_release_c_o = $(addprefix $(PxCudaContextManager_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_release_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o += $(OBJS_DIR)/PxCudaContextManager_release/CUDA_src/cudamanager/src/CUDAUtilKernels.o +PxCudaContextManager_release_obj = $(PxCudaContextManager_release_cpp_o) $(PxCudaContextManager_release_cc_o) $(PxCudaContextManager_release_c_o) $(PxCudaContextManager_release_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o) +PxCudaContextManager_release_bin := ./../../../lib/linux32/libPxCudaContextManager.a + +clean_PxCudaContextManager_release: + @$(ECHO) clean PxCudaContextManager release + @$(RMDIR) $(PxCudaContextManager_release_objsdir) + @$(RMDIR) $(PxCudaContextManager_release_bin) + @$(RMDIR) $(DEPSDIR)/PxCudaContextManager/release + +build_PxCudaContextManager_release: postbuild_PxCudaContextManager_release +postbuild_PxCudaContextManager_release: mainbuild_PxCudaContextManager_release +mainbuild_PxCudaContextManager_release: prebuild_PxCudaContextManager_release $(PxCudaContextManager_release_bin) +prebuild_PxCudaContextManager_release: + +$(PxCudaContextManager_release_bin): $(PxCudaContextManager_release_obj) + mkdir -p `dirname ./../../../lib/linux32/libPxCudaContextManager.a` + @$(AR) rcs $(PxCudaContextManager_release_bin) $(PxCudaContextManager_release_obj) + $(ECHO) building $@ complete! + +$(PxCudaContextManager_release_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o): $(PxCudaContextManager_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu) + @mkdir -p `dirname $(OBJS_DIR)/PxCudaContextManager_release/CUDA_src/cudamanager/src/CUDAUtilKernels.o` + $(ECHO) "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin/nvcc" -m32 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m32,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_release/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin/nvcc" -m32 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m32,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_release/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + +PxCudaContextManager_release_DEPDIR = $(dir $(@))/$(*F) +$(PxCudaContextManager_release_cpp_o): $(PxCudaContextManager_release_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cppfiles)))))) + cp $(PxCudaContextManager_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + rm -f $(PxCudaContextManager_release_DEPDIR).d + +$(PxCudaContextManager_release_cc_o): $(PxCudaContextManager_release_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_ccfiles)))))) + cp $(PxCudaContextManager_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).release.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).release.P; \ + rm -f $(PxCudaContextManager_release_DEPDIR).d + +$(PxCudaContextManager_release_c_o): $(PxCudaContextManager_release_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxCudaContextManager_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cfiles)))))) + cp $(PxCudaContextManager_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + rm -f $(PxCudaContextManager_release_DEPDIR).d + +clean_PxCudaContextManager: clean_PxCudaContextManager_debug clean_PxCudaContextManager_checked clean_PxCudaContextManager_profile clean_PxCudaContextManager_release + rm -rf $(DEPSDIR) + +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux32/Makefile.PxFoundation.mk b/PxShared/src/compiler/linux32/Makefile.PxFoundation.mk new file mode 100644 index 0000000..d309bbf --- /dev/null +++ b/PxShared/src/compiler/linux32/Makefile.PxFoundation.mk @@ -0,0 +1,372 @@ +# Makefile generated by XPJ for linux32 +-include Makefile.custom +ProjectName = PxFoundation +PxFoundation_cppfiles += ./../../foundation/src/PsAllocator.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsAssert.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsFoundation.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsMathUtils.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsString.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsTempAllocator.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsUtilities.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixAtomic.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixCpu.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixFPU.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixMutex.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixPrintString.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixSList.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixSocket.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixSync.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixThread.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixTime.cpp + +PxFoundation_cpp_debug_dep = $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxFoundation_cppfiles))))) +PxFoundation_cc_debug_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(PxFoundation_ccfiles))))) +PxFoundation_c_debug_dep = $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxFoundation_cfiles))))) +PxFoundation_debug_dep = $(PxFoundation_cpp_debug_dep) $(PxFoundation_cc_debug_dep) $(PxFoundation_c_debug_dep) +-include $(PxFoundation_debug_dep) +PxFoundation_cpp_release_dep = $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxFoundation_cppfiles))))) +PxFoundation_cc_release_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(PxFoundation_ccfiles))))) +PxFoundation_c_release_dep = $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxFoundation_cfiles))))) +PxFoundation_release_dep = $(PxFoundation_cpp_release_dep) $(PxFoundation_cc_release_dep) $(PxFoundation_c_release_dep) +-include $(PxFoundation_release_dep) +PxFoundation_cpp_checked_dep = $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxFoundation_cppfiles))))) +PxFoundation_cc_checked_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.checked.P, $(PxFoundation_ccfiles))))) +PxFoundation_c_checked_dep = $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxFoundation_cfiles))))) +PxFoundation_checked_dep = $(PxFoundation_cpp_checked_dep) $(PxFoundation_cc_checked_dep) $(PxFoundation_c_checked_dep) +-include $(PxFoundation_checked_dep) +PxFoundation_cpp_profile_dep = $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxFoundation_cppfiles))))) +PxFoundation_cc_profile_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.profile.P, $(PxFoundation_ccfiles))))) +PxFoundation_c_profile_dep = $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxFoundation_cfiles))))) +PxFoundation_profile_dep = $(PxFoundation_cpp_profile_dep) $(PxFoundation_cc_profile_dep) $(PxFoundation_c_profile_dep) +-include $(PxFoundation_profile_dep) +PxFoundation_debug_hpaths := +PxFoundation_debug_hpaths += ./../../../include +PxFoundation_debug_hpaths += ./../../foundation/include +PxFoundation_debug_hpaths += ./../../foundation/include/unix +PxFoundation_debug_lpaths := +PxFoundation_debug_defines := $(PxFoundation_custom_defines) +PxFoundation_debug_defines += PX_FOUNDATION_DLL=1 +PxFoundation_debug_defines += _DEBUG +PxFoundation_debug_defines += PX_DEBUG=1 +PxFoundation_debug_defines += PX_CHECKED=1 +PxFoundation_debug_libraries := +PxFoundation_debug_common_cflags := $(PxFoundation_custom_cflags) +PxFoundation_debug_common_cflags += -MMD +PxFoundation_debug_common_cflags += $(addprefix -D, $(PxFoundation_debug_defines)) +PxFoundation_debug_common_cflags += $(addprefix -I, $(PxFoundation_debug_hpaths)) +PxFoundation_debug_common_cflags += -m32 +PxFoundation_debug_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxFoundation_debug_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxFoundation_debug_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxFoundation_debug_common_cflags += -Wno-missing-field-initializers +PxFoundation_debug_common_cflags += -g3 -gdwarf-2 +PxFoundation_debug_cflags := $(PxFoundation_debug_common_cflags) +PxFoundation_debug_cppflags := $(PxFoundation_debug_common_cflags) +PxFoundation_debug_lflags := $(PxFoundation_custom_lflags) +PxFoundation_debug_lflags += $(addprefix -L, $(PxFoundation_debug_lpaths)) +PxFoundation_debug_lflags += -Wl,--start-group $(addprefix -l, $(PxFoundation_debug_libraries)) -Wl,--end-group +PxFoundation_debug_lflags += -lrt +PxFoundation_debug_lflags += -m32 +PxFoundation_debug_objsdir = $(OBJS_DIR)/PxFoundation_debug +PxFoundation_debug_cpp_o = $(addprefix $(PxFoundation_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxFoundation_cppfiles))))) +PxFoundation_debug_cc_o = $(addprefix $(PxFoundation_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxFoundation_ccfiles))))) +PxFoundation_debug_c_o = $(addprefix $(PxFoundation_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxFoundation_cfiles))))) +PxFoundation_debug_obj = $(PxFoundation_debug_cpp_o) $(PxFoundation_debug_cc_o) $(PxFoundation_debug_c_o) +PxFoundation_debug_bin := ./../../../bin/linux32/libPxFoundationDEBUG_x86.so + +clean_PxFoundation_debug: + @$(ECHO) clean PxFoundation debug + @$(RMDIR) $(PxFoundation_debug_objsdir) + @$(RMDIR) $(PxFoundation_debug_bin) + @$(RMDIR) $(DEPSDIR)/PxFoundation/debug + +build_PxFoundation_debug: postbuild_PxFoundation_debug +postbuild_PxFoundation_debug: mainbuild_PxFoundation_debug +mainbuild_PxFoundation_debug: prebuild_PxFoundation_debug $(PxFoundation_debug_bin) +prebuild_PxFoundation_debug: + +$(PxFoundation_debug_bin): $(PxFoundation_debug_obj) + mkdir -p `dirname ./../../../bin/linux32/libPxFoundationDEBUG_x86.so` + $(CXX) -shared $(PxFoundation_debug_obj) $(PxFoundation_debug_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxFoundation_debug_DEPDIR = $(dir $(@))/$(*F) +$(PxFoundation_debug_cpp_o): $(PxFoundation_debug_objsdir)/%.o: + $(ECHO) PxFoundation: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cppfiles)))))) + cp $(PxFoundation_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + rm -f $(PxFoundation_debug_DEPDIR).d + +$(PxFoundation_debug_cc_o): $(PxFoundation_debug_objsdir)/%.o: + $(ECHO) PxFoundation: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_ccfiles)))))) + cp $(PxFoundation_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_ccfiles))))).debug.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_ccfiles))))).debug.P; \ + rm -f $(PxFoundation_debug_DEPDIR).d + +$(PxFoundation_debug_c_o): $(PxFoundation_debug_objsdir)/%.o: + $(ECHO) PxFoundation: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxFoundation_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cfiles)))))) + cp $(PxFoundation_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + rm -f $(PxFoundation_debug_DEPDIR).d + +PxFoundation_release_hpaths := +PxFoundation_release_hpaths += ./../../../include +PxFoundation_release_hpaths += ./../../foundation/include +PxFoundation_release_hpaths += ./../../foundation/include/unix +PxFoundation_release_lpaths := +PxFoundation_release_defines := $(PxFoundation_custom_defines) +PxFoundation_release_defines += PX_FOUNDATION_DLL=1 +PxFoundation_release_defines += NDEBUG +PxFoundation_release_libraries := +PxFoundation_release_common_cflags := $(PxFoundation_custom_cflags) +PxFoundation_release_common_cflags += -MMD +PxFoundation_release_common_cflags += $(addprefix -D, $(PxFoundation_release_defines)) +PxFoundation_release_common_cflags += $(addprefix -I, $(PxFoundation_release_hpaths)) +PxFoundation_release_common_cflags += -m32 +PxFoundation_release_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxFoundation_release_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxFoundation_release_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxFoundation_release_common_cflags += -Wno-missing-field-initializers +PxFoundation_release_common_cflags += -O3 -fno-strict-aliasing +PxFoundation_release_cflags := $(PxFoundation_release_common_cflags) +PxFoundation_release_cppflags := $(PxFoundation_release_common_cflags) +PxFoundation_release_lflags := $(PxFoundation_custom_lflags) +PxFoundation_release_lflags += $(addprefix -L, $(PxFoundation_release_lpaths)) +PxFoundation_release_lflags += -Wl,--start-group $(addprefix -l, $(PxFoundation_release_libraries)) -Wl,--end-group +PxFoundation_release_lflags += -lrt +PxFoundation_release_lflags += -m32 +PxFoundation_release_objsdir = $(OBJS_DIR)/PxFoundation_release +PxFoundation_release_cpp_o = $(addprefix $(PxFoundation_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxFoundation_cppfiles))))) +PxFoundation_release_cc_o = $(addprefix $(PxFoundation_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxFoundation_ccfiles))))) +PxFoundation_release_c_o = $(addprefix $(PxFoundation_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxFoundation_cfiles))))) +PxFoundation_release_obj = $(PxFoundation_release_cpp_o) $(PxFoundation_release_cc_o) $(PxFoundation_release_c_o) +PxFoundation_release_bin := ./../../../bin/linux32/libPxFoundation_x86.so + +clean_PxFoundation_release: + @$(ECHO) clean PxFoundation release + @$(RMDIR) $(PxFoundation_release_objsdir) + @$(RMDIR) $(PxFoundation_release_bin) + @$(RMDIR) $(DEPSDIR)/PxFoundation/release + +build_PxFoundation_release: postbuild_PxFoundation_release +postbuild_PxFoundation_release: mainbuild_PxFoundation_release +mainbuild_PxFoundation_release: prebuild_PxFoundation_release $(PxFoundation_release_bin) +prebuild_PxFoundation_release: + +$(PxFoundation_release_bin): $(PxFoundation_release_obj) + mkdir -p `dirname ./../../../bin/linux32/libPxFoundation_x86.so` + $(CXX) -shared $(PxFoundation_release_obj) $(PxFoundation_release_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxFoundation_release_DEPDIR = $(dir $(@))/$(*F) +$(PxFoundation_release_cpp_o): $(PxFoundation_release_objsdir)/%.o: + $(ECHO) PxFoundation: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cppfiles)))))) + cp $(PxFoundation_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + rm -f $(PxFoundation_release_DEPDIR).d + +$(PxFoundation_release_cc_o): $(PxFoundation_release_objsdir)/%.o: + $(ECHO) PxFoundation: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_ccfiles)))))) + cp $(PxFoundation_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_ccfiles))))).release.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_ccfiles))))).release.P; \ + rm -f $(PxFoundation_release_DEPDIR).d + +$(PxFoundation_release_c_o): $(PxFoundation_release_objsdir)/%.o: + $(ECHO) PxFoundation: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxFoundation_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cfiles)))))) + cp $(PxFoundation_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + rm -f $(PxFoundation_release_DEPDIR).d + +PxFoundation_checked_hpaths := +PxFoundation_checked_hpaths += ./../../../include +PxFoundation_checked_hpaths += ./../../foundation/include +PxFoundation_checked_hpaths += ./../../foundation/include/unix +PxFoundation_checked_lpaths := +PxFoundation_checked_defines := $(PxFoundation_custom_defines) +PxFoundation_checked_defines += PX_FOUNDATION_DLL=1 +PxFoundation_checked_defines += NDEBUG +PxFoundation_checked_defines += PX_CHECKED=1 +PxFoundation_checked_libraries := +PxFoundation_checked_common_cflags := $(PxFoundation_custom_cflags) +PxFoundation_checked_common_cflags += -MMD +PxFoundation_checked_common_cflags += $(addprefix -D, $(PxFoundation_checked_defines)) +PxFoundation_checked_common_cflags += $(addprefix -I, $(PxFoundation_checked_hpaths)) +PxFoundation_checked_common_cflags += -m32 +PxFoundation_checked_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxFoundation_checked_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxFoundation_checked_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxFoundation_checked_common_cflags += -Wno-missing-field-initializers +PxFoundation_checked_common_cflags += -g3 -gdwarf-2 -O3 -fno-strict-aliasing +PxFoundation_checked_cflags := $(PxFoundation_checked_common_cflags) +PxFoundation_checked_cppflags := $(PxFoundation_checked_common_cflags) +PxFoundation_checked_lflags := $(PxFoundation_custom_lflags) +PxFoundation_checked_lflags += $(addprefix -L, $(PxFoundation_checked_lpaths)) +PxFoundation_checked_lflags += -Wl,--start-group $(addprefix -l, $(PxFoundation_checked_libraries)) -Wl,--end-group +PxFoundation_checked_lflags += -lrt +PxFoundation_checked_lflags += -m32 +PxFoundation_checked_objsdir = $(OBJS_DIR)/PxFoundation_checked +PxFoundation_checked_cpp_o = $(addprefix $(PxFoundation_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxFoundation_cppfiles))))) +PxFoundation_checked_cc_o = $(addprefix $(PxFoundation_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxFoundation_ccfiles))))) +PxFoundation_checked_c_o = $(addprefix $(PxFoundation_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxFoundation_cfiles))))) +PxFoundation_checked_obj = $(PxFoundation_checked_cpp_o) $(PxFoundation_checked_cc_o) $(PxFoundation_checked_c_o) +PxFoundation_checked_bin := ./../../../bin/linux32/libPxFoundationCHECKED_x86.so + +clean_PxFoundation_checked: + @$(ECHO) clean PxFoundation checked + @$(RMDIR) $(PxFoundation_checked_objsdir) + @$(RMDIR) $(PxFoundation_checked_bin) + @$(RMDIR) $(DEPSDIR)/PxFoundation/checked + +build_PxFoundation_checked: postbuild_PxFoundation_checked +postbuild_PxFoundation_checked: mainbuild_PxFoundation_checked +mainbuild_PxFoundation_checked: prebuild_PxFoundation_checked $(PxFoundation_checked_bin) +prebuild_PxFoundation_checked: + +$(PxFoundation_checked_bin): $(PxFoundation_checked_obj) + mkdir -p `dirname ./../../../bin/linux32/libPxFoundationCHECKED_x86.so` + $(CXX) -shared $(PxFoundation_checked_obj) $(PxFoundation_checked_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxFoundation_checked_DEPDIR = $(dir $(@))/$(*F) +$(PxFoundation_checked_cpp_o): $(PxFoundation_checked_objsdir)/%.o: + $(ECHO) PxFoundation: compiling checked $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_checked_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cppfiles)))))) + cp $(PxFoundation_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + rm -f $(PxFoundation_checked_DEPDIR).d + +$(PxFoundation_checked_cc_o): $(PxFoundation_checked_objsdir)/%.o: + $(ECHO) PxFoundation: compiling checked $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_checked_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_ccfiles)))))) + cp $(PxFoundation_checked_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_ccfiles))))).checked.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_ccfiles))))).checked.P; \ + rm -f $(PxFoundation_checked_DEPDIR).d + +$(PxFoundation_checked_c_o): $(PxFoundation_checked_objsdir)/%.o: + $(ECHO) PxFoundation: compiling checked $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxFoundation_checked_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cfiles)))))) + cp $(PxFoundation_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + rm -f $(PxFoundation_checked_DEPDIR).d + +PxFoundation_profile_hpaths := +PxFoundation_profile_hpaths += ./../../../include +PxFoundation_profile_hpaths += ./../../foundation/include +PxFoundation_profile_hpaths += ./../../foundation/include/unix +PxFoundation_profile_lpaths := +PxFoundation_profile_defines := $(PxFoundation_custom_defines) +PxFoundation_profile_defines += PX_FOUNDATION_DLL=1 +PxFoundation_profile_defines += NDEBUG +PxFoundation_profile_defines += PX_PROFILE=1 +PxFoundation_profile_libraries := +PxFoundation_profile_common_cflags := $(PxFoundation_custom_cflags) +PxFoundation_profile_common_cflags += -MMD +PxFoundation_profile_common_cflags += $(addprefix -D, $(PxFoundation_profile_defines)) +PxFoundation_profile_common_cflags += $(addprefix -I, $(PxFoundation_profile_hpaths)) +PxFoundation_profile_common_cflags += -m32 +PxFoundation_profile_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxFoundation_profile_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxFoundation_profile_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxFoundation_profile_common_cflags += -Wno-missing-field-initializers +PxFoundation_profile_common_cflags += -O3 -fno-strict-aliasing +PxFoundation_profile_cflags := $(PxFoundation_profile_common_cflags) +PxFoundation_profile_cppflags := $(PxFoundation_profile_common_cflags) +PxFoundation_profile_lflags := $(PxFoundation_custom_lflags) +PxFoundation_profile_lflags += $(addprefix -L, $(PxFoundation_profile_lpaths)) +PxFoundation_profile_lflags += -Wl,--start-group $(addprefix -l, $(PxFoundation_profile_libraries)) -Wl,--end-group +PxFoundation_profile_lflags += -lrt +PxFoundation_profile_lflags += -m32 +PxFoundation_profile_objsdir = $(OBJS_DIR)/PxFoundation_profile +PxFoundation_profile_cpp_o = $(addprefix $(PxFoundation_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxFoundation_cppfiles))))) +PxFoundation_profile_cc_o = $(addprefix $(PxFoundation_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxFoundation_ccfiles))))) +PxFoundation_profile_c_o = $(addprefix $(PxFoundation_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxFoundation_cfiles))))) +PxFoundation_profile_obj = $(PxFoundation_profile_cpp_o) $(PxFoundation_profile_cc_o) $(PxFoundation_profile_c_o) +PxFoundation_profile_bin := ./../../../bin/linux32/libPxFoundationPROFILE_x86.so + +clean_PxFoundation_profile: + @$(ECHO) clean PxFoundation profile + @$(RMDIR) $(PxFoundation_profile_objsdir) + @$(RMDIR) $(PxFoundation_profile_bin) + @$(RMDIR) $(DEPSDIR)/PxFoundation/profile + +build_PxFoundation_profile: postbuild_PxFoundation_profile +postbuild_PxFoundation_profile: mainbuild_PxFoundation_profile +mainbuild_PxFoundation_profile: prebuild_PxFoundation_profile $(PxFoundation_profile_bin) +prebuild_PxFoundation_profile: + +$(PxFoundation_profile_bin): $(PxFoundation_profile_obj) + mkdir -p `dirname ./../../../bin/linux32/libPxFoundationPROFILE_x86.so` + $(CXX) -shared $(PxFoundation_profile_obj) $(PxFoundation_profile_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxFoundation_profile_DEPDIR = $(dir $(@))/$(*F) +$(PxFoundation_profile_cpp_o): $(PxFoundation_profile_objsdir)/%.o: + $(ECHO) PxFoundation: compiling profile $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_profile_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cppfiles)))))) + cp $(PxFoundation_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + rm -f $(PxFoundation_profile_DEPDIR).d + +$(PxFoundation_profile_cc_o): $(PxFoundation_profile_objsdir)/%.o: + $(ECHO) PxFoundation: compiling profile $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_profile_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_ccfiles)))))) + cp $(PxFoundation_profile_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_ccfiles))))).profile.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_ccfiles))))).profile.P; \ + rm -f $(PxFoundation_profile_DEPDIR).d + +$(PxFoundation_profile_c_o): $(PxFoundation_profile_objsdir)/%.o: + $(ECHO) PxFoundation: compiling profile $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxFoundation_profile_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cfiles)))))) + cp $(PxFoundation_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + rm -f $(PxFoundation_profile_DEPDIR).d + +clean_PxFoundation: clean_PxFoundation_debug clean_PxFoundation_release clean_PxFoundation_checked clean_PxFoundation_profile + rm -rf $(DEPSDIR) + +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux32/Makefile.PxPvdSDK.mk b/PxShared/src/compiler/linux32/Makefile.PxPvdSDK.mk new file mode 100644 index 0000000..06b184f --- /dev/null +++ b/PxShared/src/compiler/linux32/Makefile.PxPvdSDK.mk @@ -0,0 +1,386 @@ +# Makefile generated by XPJ for linux32 +-include Makefile.custom +ProjectName = PxPvdSDK +PxPvdSDK_cppfiles += ./../../pvd/src/PxProfileEventImpl.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvd.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdDataStream.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdDefaultFileTransport.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdDefaultSocketTransport.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdImpl.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdMemClient.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdObjectModelMetaData.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdObjectRegistrar.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdProfileZoneClient.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdUserRenderer.cpp + +PxPvdSDK_cpp_debug_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_cc_debug_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_c_debug_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxPvdSDK_cfiles))))) +PxPvdSDK_debug_dep = $(PxPvdSDK_cpp_debug_dep) $(PxPvdSDK_cc_debug_dep) $(PxPvdSDK_c_debug_dep) +-include $(PxPvdSDK_debug_dep) +PxPvdSDK_cpp_release_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_cc_release_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_c_release_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxPvdSDK_cfiles))))) +PxPvdSDK_release_dep = $(PxPvdSDK_cpp_release_dep) $(PxPvdSDK_cc_release_dep) $(PxPvdSDK_c_release_dep) +-include $(PxPvdSDK_release_dep) +PxPvdSDK_cpp_checked_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_cc_checked_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.checked.P, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_c_checked_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxPvdSDK_cfiles))))) +PxPvdSDK_checked_dep = $(PxPvdSDK_cpp_checked_dep) $(PxPvdSDK_cc_checked_dep) $(PxPvdSDK_c_checked_dep) +-include $(PxPvdSDK_checked_dep) +PxPvdSDK_cpp_profile_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_cc_profile_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.profile.P, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_c_profile_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxPvdSDK_cfiles))))) +PxPvdSDK_profile_dep = $(PxPvdSDK_cpp_profile_dep) $(PxPvdSDK_cc_profile_dep) $(PxPvdSDK_c_profile_dep) +-include $(PxPvdSDK_profile_dep) +PxPvdSDK_debug_hpaths := +PxPvdSDK_debug_hpaths += ./../../../include +PxPvdSDK_debug_hpaths += ./../../pvd/include +PxPvdSDK_debug_hpaths += ./../../foundation/include +PxPvdSDK_debug_hpaths += ./../../filebuf/include +PxPvdSDK_debug_hpaths += ./../../../../../../externals/nvToolsExt/1/include +PxPvdSDK_debug_lpaths := +PxPvdSDK_debug_lpaths += ./../../../bin/linux32 +PxPvdSDK_debug_defines := $(PxPvdSDK_custom_defines) +PxPvdSDK_debug_defines += PX_PVDSDK_DLL=1 +PxPvdSDK_debug_defines += PX_FOUNDATION_DLL=1 +PxPvdSDK_debug_defines += _DEBUG +PxPvdSDK_debug_defines += PX_DEBUG=1 +PxPvdSDK_debug_defines += PX_CHECKED=1 +PxPvdSDK_debug_libraries := +PxPvdSDK_debug_libraries += PxFoundationDEBUG_x86 +PxPvdSDK_debug_common_cflags := $(PxPvdSDK_custom_cflags) +PxPvdSDK_debug_common_cflags += -MMD +PxPvdSDK_debug_common_cflags += $(addprefix -D, $(PxPvdSDK_debug_defines)) +PxPvdSDK_debug_common_cflags += $(addprefix -I, $(PxPvdSDK_debug_hpaths)) +PxPvdSDK_debug_common_cflags += -m32 +PxPvdSDK_debug_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxPvdSDK_debug_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxPvdSDK_debug_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxPvdSDK_debug_common_cflags += -Wno-missing-field-initializers +PxPvdSDK_debug_common_cflags += -g3 -gdwarf-2 +PxPvdSDK_debug_cflags := $(PxPvdSDK_debug_common_cflags) +PxPvdSDK_debug_cppflags := $(PxPvdSDK_debug_common_cflags) +PxPvdSDK_debug_lflags := $(PxPvdSDK_custom_lflags) +PxPvdSDK_debug_lflags += $(addprefix -L, $(PxPvdSDK_debug_lpaths)) +PxPvdSDK_debug_lflags += -Wl,--start-group $(addprefix -l, $(PxPvdSDK_debug_libraries)) -Wl,--end-group +PxPvdSDK_debug_lflags += -lrt +PxPvdSDK_debug_lflags += -m32 +PxPvdSDK_debug_objsdir = $(OBJS_DIR)/PxPvdSDK_debug +PxPvdSDK_debug_cpp_o = $(addprefix $(PxPvdSDK_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_debug_cc_o = $(addprefix $(PxPvdSDK_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_debug_c_o = $(addprefix $(PxPvdSDK_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxPvdSDK_cfiles))))) +PxPvdSDK_debug_obj = $(PxPvdSDK_debug_cpp_o) $(PxPvdSDK_debug_cc_o) $(PxPvdSDK_debug_c_o) +PxPvdSDK_debug_bin := ./../../../bin/linux32/libPxPvdSDKDEBUG_x86.so + +clean_PxPvdSDK_debug: + @$(ECHO) clean PxPvdSDK debug + @$(RMDIR) $(PxPvdSDK_debug_objsdir) + @$(RMDIR) $(PxPvdSDK_debug_bin) + @$(RMDIR) $(DEPSDIR)/PxPvdSDK/debug + +build_PxPvdSDK_debug: postbuild_PxPvdSDK_debug +postbuild_PxPvdSDK_debug: mainbuild_PxPvdSDK_debug +mainbuild_PxPvdSDK_debug: prebuild_PxPvdSDK_debug $(PxPvdSDK_debug_bin) +prebuild_PxPvdSDK_debug: + +$(PxPvdSDK_debug_bin): $(PxPvdSDK_debug_obj) build_PxFoundation_debug + mkdir -p `dirname ./../../../bin/linux32/libPxPvdSDKDEBUG_x86.so` + $(CXX) -shared $(PxPvdSDK_debug_obj) $(PxPvdSDK_debug_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxPvdSDK_debug_DEPDIR = $(dir $(@))/$(*F) +$(PxPvdSDK_debug_cpp_o): $(PxPvdSDK_debug_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cppfiles)))))) + cp $(PxPvdSDK_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + rm -f $(PxPvdSDK_debug_DEPDIR).d + +$(PxPvdSDK_debug_cc_o): $(PxPvdSDK_debug_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_ccfiles)))))) + cp $(PxPvdSDK_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).debug.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).debug.P; \ + rm -f $(PxPvdSDK_debug_DEPDIR).d + +$(PxPvdSDK_debug_c_o): $(PxPvdSDK_debug_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxPvdSDK_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cfiles)))))) + cp $(PxPvdSDK_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + rm -f $(PxPvdSDK_debug_DEPDIR).d + +PxPvdSDK_release_hpaths := +PxPvdSDK_release_hpaths += ./../../../include +PxPvdSDK_release_hpaths += ./../../pvd/include +PxPvdSDK_release_hpaths += ./../../foundation/include +PxPvdSDK_release_hpaths += ./../../filebuf/include +PxPvdSDK_release_hpaths += ./../../../../../../externals/nvToolsExt/1/include +PxPvdSDK_release_lpaths := +PxPvdSDK_release_lpaths += ./../../../bin/linux32 +PxPvdSDK_release_defines := $(PxPvdSDK_custom_defines) +PxPvdSDK_release_defines += PX_PVDSDK_DLL=1 +PxPvdSDK_release_defines += PX_FOUNDATION_DLL=1 +PxPvdSDK_release_defines += NDEBUG +PxPvdSDK_release_libraries := +PxPvdSDK_release_libraries += PxFoundation_x86 +PxPvdSDK_release_common_cflags := $(PxPvdSDK_custom_cflags) +PxPvdSDK_release_common_cflags += -MMD +PxPvdSDK_release_common_cflags += $(addprefix -D, $(PxPvdSDK_release_defines)) +PxPvdSDK_release_common_cflags += $(addprefix -I, $(PxPvdSDK_release_hpaths)) +PxPvdSDK_release_common_cflags += -m32 +PxPvdSDK_release_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxPvdSDK_release_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxPvdSDK_release_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxPvdSDK_release_common_cflags += -Wno-missing-field-initializers +PxPvdSDK_release_common_cflags += -O3 -fno-strict-aliasing +PxPvdSDK_release_cflags := $(PxPvdSDK_release_common_cflags) +PxPvdSDK_release_cppflags := $(PxPvdSDK_release_common_cflags) +PxPvdSDK_release_lflags := $(PxPvdSDK_custom_lflags) +PxPvdSDK_release_lflags += $(addprefix -L, $(PxPvdSDK_release_lpaths)) +PxPvdSDK_release_lflags += -Wl,--start-group $(addprefix -l, $(PxPvdSDK_release_libraries)) -Wl,--end-group +PxPvdSDK_release_lflags += -lrt +PxPvdSDK_release_lflags += -m32 +PxPvdSDK_release_objsdir = $(OBJS_DIR)/PxPvdSDK_release +PxPvdSDK_release_cpp_o = $(addprefix $(PxPvdSDK_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_release_cc_o = $(addprefix $(PxPvdSDK_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_release_c_o = $(addprefix $(PxPvdSDK_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxPvdSDK_cfiles))))) +PxPvdSDK_release_obj = $(PxPvdSDK_release_cpp_o) $(PxPvdSDK_release_cc_o) $(PxPvdSDK_release_c_o) +PxPvdSDK_release_bin := ./../../../bin/linux32/libPxPvdSDK_x86.so + +clean_PxPvdSDK_release: + @$(ECHO) clean PxPvdSDK release + @$(RMDIR) $(PxPvdSDK_release_objsdir) + @$(RMDIR) $(PxPvdSDK_release_bin) + @$(RMDIR) $(DEPSDIR)/PxPvdSDK/release + +build_PxPvdSDK_release: postbuild_PxPvdSDK_release +postbuild_PxPvdSDK_release: mainbuild_PxPvdSDK_release +mainbuild_PxPvdSDK_release: prebuild_PxPvdSDK_release $(PxPvdSDK_release_bin) +prebuild_PxPvdSDK_release: + +$(PxPvdSDK_release_bin): $(PxPvdSDK_release_obj) build_PxFoundation_release + mkdir -p `dirname ./../../../bin/linux32/libPxPvdSDK_x86.so` + $(CXX) -shared $(PxPvdSDK_release_obj) $(PxPvdSDK_release_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxPvdSDK_release_DEPDIR = $(dir $(@))/$(*F) +$(PxPvdSDK_release_cpp_o): $(PxPvdSDK_release_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cppfiles)))))) + cp $(PxPvdSDK_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + rm -f $(PxPvdSDK_release_DEPDIR).d + +$(PxPvdSDK_release_cc_o): $(PxPvdSDK_release_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_ccfiles)))))) + cp $(PxPvdSDK_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).release.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).release.P; \ + rm -f $(PxPvdSDK_release_DEPDIR).d + +$(PxPvdSDK_release_c_o): $(PxPvdSDK_release_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxPvdSDK_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cfiles)))))) + cp $(PxPvdSDK_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + rm -f $(PxPvdSDK_release_DEPDIR).d + +PxPvdSDK_checked_hpaths := +PxPvdSDK_checked_hpaths += ./../../../include +PxPvdSDK_checked_hpaths += ./../../pvd/include +PxPvdSDK_checked_hpaths += ./../../foundation/include +PxPvdSDK_checked_hpaths += ./../../filebuf/include +PxPvdSDK_checked_hpaths += ./../../../../../../externals/nvToolsExt/1/include +PxPvdSDK_checked_lpaths := +PxPvdSDK_checked_lpaths += ./../../../bin/linux32 +PxPvdSDK_checked_defines := $(PxPvdSDK_custom_defines) +PxPvdSDK_checked_defines += PX_PVDSDK_DLL=1 +PxPvdSDK_checked_defines += PX_FOUNDATION_DLL=1 +PxPvdSDK_checked_defines += NDEBUG +PxPvdSDK_checked_defines += PX_CHECKED=1 +PxPvdSDK_checked_libraries := +PxPvdSDK_checked_libraries += PxFoundationCHECKED_x86 +PxPvdSDK_checked_common_cflags := $(PxPvdSDK_custom_cflags) +PxPvdSDK_checked_common_cflags += -MMD +PxPvdSDK_checked_common_cflags += $(addprefix -D, $(PxPvdSDK_checked_defines)) +PxPvdSDK_checked_common_cflags += $(addprefix -I, $(PxPvdSDK_checked_hpaths)) +PxPvdSDK_checked_common_cflags += -m32 +PxPvdSDK_checked_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxPvdSDK_checked_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxPvdSDK_checked_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxPvdSDK_checked_common_cflags += -Wno-missing-field-initializers +PxPvdSDK_checked_common_cflags += -g3 -gdwarf-2 -O3 -fno-strict-aliasing +PxPvdSDK_checked_cflags := $(PxPvdSDK_checked_common_cflags) +PxPvdSDK_checked_cppflags := $(PxPvdSDK_checked_common_cflags) +PxPvdSDK_checked_lflags := $(PxPvdSDK_custom_lflags) +PxPvdSDK_checked_lflags += $(addprefix -L, $(PxPvdSDK_checked_lpaths)) +PxPvdSDK_checked_lflags += -Wl,--start-group $(addprefix -l, $(PxPvdSDK_checked_libraries)) -Wl,--end-group +PxPvdSDK_checked_lflags += -lrt +PxPvdSDK_checked_lflags += -m32 +PxPvdSDK_checked_objsdir = $(OBJS_DIR)/PxPvdSDK_checked +PxPvdSDK_checked_cpp_o = $(addprefix $(PxPvdSDK_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_checked_cc_o = $(addprefix $(PxPvdSDK_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_checked_c_o = $(addprefix $(PxPvdSDK_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxPvdSDK_cfiles))))) +PxPvdSDK_checked_obj = $(PxPvdSDK_checked_cpp_o) $(PxPvdSDK_checked_cc_o) $(PxPvdSDK_checked_c_o) +PxPvdSDK_checked_bin := ./../../../bin/linux32/libPxPvdSDKCHECKED_x86.so + +clean_PxPvdSDK_checked: + @$(ECHO) clean PxPvdSDK checked + @$(RMDIR) $(PxPvdSDK_checked_objsdir) + @$(RMDIR) $(PxPvdSDK_checked_bin) + @$(RMDIR) $(DEPSDIR)/PxPvdSDK/checked + +build_PxPvdSDK_checked: postbuild_PxPvdSDK_checked +postbuild_PxPvdSDK_checked: mainbuild_PxPvdSDK_checked +mainbuild_PxPvdSDK_checked: prebuild_PxPvdSDK_checked $(PxPvdSDK_checked_bin) +prebuild_PxPvdSDK_checked: + +$(PxPvdSDK_checked_bin): $(PxPvdSDK_checked_obj) build_PxFoundation_checked + mkdir -p `dirname ./../../../bin/linux32/libPxPvdSDKCHECKED_x86.so` + $(CXX) -shared $(PxPvdSDK_checked_obj) $(PxPvdSDK_checked_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxPvdSDK_checked_DEPDIR = $(dir $(@))/$(*F) +$(PxPvdSDK_checked_cpp_o): $(PxPvdSDK_checked_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling checked $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_checked_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cppfiles)))))) + cp $(PxPvdSDK_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + rm -f $(PxPvdSDK_checked_DEPDIR).d + +$(PxPvdSDK_checked_cc_o): $(PxPvdSDK_checked_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling checked $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_checked_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_ccfiles)))))) + cp $(PxPvdSDK_checked_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).checked.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).checked.P; \ + rm -f $(PxPvdSDK_checked_DEPDIR).d + +$(PxPvdSDK_checked_c_o): $(PxPvdSDK_checked_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling checked $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxPvdSDK_checked_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cfiles)))))) + cp $(PxPvdSDK_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + rm -f $(PxPvdSDK_checked_DEPDIR).d + +PxPvdSDK_profile_hpaths := +PxPvdSDK_profile_hpaths += ./../../../include +PxPvdSDK_profile_hpaths += ./../../pvd/include +PxPvdSDK_profile_hpaths += ./../../foundation/include +PxPvdSDK_profile_hpaths += ./../../filebuf/include +PxPvdSDK_profile_hpaths += ./../../../../../../externals/nvToolsExt/1/include +PxPvdSDK_profile_lpaths := +PxPvdSDK_profile_lpaths += ./../../../bin/linux32 +PxPvdSDK_profile_defines := $(PxPvdSDK_custom_defines) +PxPvdSDK_profile_defines += PX_PVDSDK_DLL=1 +PxPvdSDK_profile_defines += PX_FOUNDATION_DLL=1 +PxPvdSDK_profile_defines += NDEBUG +PxPvdSDK_profile_defines += PX_PROFILE=1 +PxPvdSDK_profile_libraries := +PxPvdSDK_profile_libraries += PxFoundationPROFILE_x86 +PxPvdSDK_profile_common_cflags := $(PxPvdSDK_custom_cflags) +PxPvdSDK_profile_common_cflags += -MMD +PxPvdSDK_profile_common_cflags += $(addprefix -D, $(PxPvdSDK_profile_defines)) +PxPvdSDK_profile_common_cflags += $(addprefix -I, $(PxPvdSDK_profile_hpaths)) +PxPvdSDK_profile_common_cflags += -m32 +PxPvdSDK_profile_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxPvdSDK_profile_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxPvdSDK_profile_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxPvdSDK_profile_common_cflags += -Wno-missing-field-initializers +PxPvdSDK_profile_common_cflags += -O3 -fno-strict-aliasing +PxPvdSDK_profile_cflags := $(PxPvdSDK_profile_common_cflags) +PxPvdSDK_profile_cppflags := $(PxPvdSDK_profile_common_cflags) +PxPvdSDK_profile_lflags := $(PxPvdSDK_custom_lflags) +PxPvdSDK_profile_lflags += $(addprefix -L, $(PxPvdSDK_profile_lpaths)) +PxPvdSDK_profile_lflags += -Wl,--start-group $(addprefix -l, $(PxPvdSDK_profile_libraries)) -Wl,--end-group +PxPvdSDK_profile_lflags += -lrt +PxPvdSDK_profile_lflags += -m32 +PxPvdSDK_profile_objsdir = $(OBJS_DIR)/PxPvdSDK_profile +PxPvdSDK_profile_cpp_o = $(addprefix $(PxPvdSDK_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_profile_cc_o = $(addprefix $(PxPvdSDK_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_profile_c_o = $(addprefix $(PxPvdSDK_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxPvdSDK_cfiles))))) +PxPvdSDK_profile_obj = $(PxPvdSDK_profile_cpp_o) $(PxPvdSDK_profile_cc_o) $(PxPvdSDK_profile_c_o) +PxPvdSDK_profile_bin := ./../../../bin/linux32/libPxPvdSDKPROFILE_x86.so + +clean_PxPvdSDK_profile: + @$(ECHO) clean PxPvdSDK profile + @$(RMDIR) $(PxPvdSDK_profile_objsdir) + @$(RMDIR) $(PxPvdSDK_profile_bin) + @$(RMDIR) $(DEPSDIR)/PxPvdSDK/profile + +build_PxPvdSDK_profile: postbuild_PxPvdSDK_profile +postbuild_PxPvdSDK_profile: mainbuild_PxPvdSDK_profile +mainbuild_PxPvdSDK_profile: prebuild_PxPvdSDK_profile $(PxPvdSDK_profile_bin) +prebuild_PxPvdSDK_profile: + +$(PxPvdSDK_profile_bin): $(PxPvdSDK_profile_obj) build_PxFoundation_profile + mkdir -p `dirname ./../../../bin/linux32/libPxPvdSDKPROFILE_x86.so` + $(CXX) -shared $(PxPvdSDK_profile_obj) $(PxPvdSDK_profile_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxPvdSDK_profile_DEPDIR = $(dir $(@))/$(*F) +$(PxPvdSDK_profile_cpp_o): $(PxPvdSDK_profile_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling profile $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_profile_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cppfiles)))))) + cp $(PxPvdSDK_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + rm -f $(PxPvdSDK_profile_DEPDIR).d + +$(PxPvdSDK_profile_cc_o): $(PxPvdSDK_profile_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling profile $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_profile_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_ccfiles)))))) + cp $(PxPvdSDK_profile_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).profile.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).profile.P; \ + rm -f $(PxPvdSDK_profile_DEPDIR).d + +$(PxPvdSDK_profile_c_o): $(PxPvdSDK_profile_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling profile $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxPvdSDK_profile_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cfiles)))))) + cp $(PxPvdSDK_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + rm -f $(PxPvdSDK_profile_DEPDIR).d + +clean_PxPvdSDK: clean_PxPvdSDK_debug clean_PxPvdSDK_release clean_PxPvdSDK_checked clean_PxPvdSDK_profile + rm -rf $(DEPSDIR) + +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux32/Makefile.PxTask.mk b/PxShared/src/compiler/linux32/Makefile.PxTask.mk new file mode 100644 index 0000000..4dabdcc --- /dev/null +++ b/PxShared/src/compiler/linux32/Makefile.PxTask.mk @@ -0,0 +1,352 @@ +# Makefile generated by XPJ for linux32 +-include Makefile.custom +ProjectName = PxTask +PxTask_cppfiles += ./../../task/src/TaskManager.cpp + +PxTask_cpp_debug_dep = $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxTask_cppfiles))))) +PxTask_cc_debug_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(PxTask_ccfiles))))) +PxTask_c_debug_dep = $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxTask_cfiles))))) +PxTask_debug_dep = $(PxTask_cpp_debug_dep) $(PxTask_cc_debug_dep) $(PxTask_c_debug_dep) +-include $(PxTask_debug_dep) +PxTask_cpp_release_dep = $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxTask_cppfiles))))) +PxTask_cc_release_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(PxTask_ccfiles))))) +PxTask_c_release_dep = $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxTask_cfiles))))) +PxTask_release_dep = $(PxTask_cpp_release_dep) $(PxTask_cc_release_dep) $(PxTask_c_release_dep) +-include $(PxTask_release_dep) +PxTask_cpp_checked_dep = $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxTask_cppfiles))))) +PxTask_cc_checked_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.checked.P, $(PxTask_ccfiles))))) +PxTask_c_checked_dep = $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxTask_cfiles))))) +PxTask_checked_dep = $(PxTask_cpp_checked_dep) $(PxTask_cc_checked_dep) $(PxTask_c_checked_dep) +-include $(PxTask_checked_dep) +PxTask_cpp_profile_dep = $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxTask_cppfiles))))) +PxTask_cc_profile_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.profile.P, $(PxTask_ccfiles))))) +PxTask_c_profile_dep = $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxTask_cfiles))))) +PxTask_profile_dep = $(PxTask_cpp_profile_dep) $(PxTask_cc_profile_dep) $(PxTask_c_profile_dep) +-include $(PxTask_profile_dep) +PxTask_debug_hpaths := +PxTask_debug_hpaths += ./../../../include +PxTask_debug_hpaths += ./../../task/include +PxTask_debug_hpaths += ./../../foundation/include +PxTask_debug_lpaths := +PxTask_debug_defines := $(PxTask_custom_defines) +PxTask_debug_defines += _DEBUG +PxTask_debug_defines += PX_DEBUG=1 +PxTask_debug_defines += PX_CHECKED=1 +PxTask_debug_libraries := +PxTask_debug_common_cflags := $(PxTask_custom_cflags) +PxTask_debug_common_cflags += -MMD +PxTask_debug_common_cflags += $(addprefix -D, $(PxTask_debug_defines)) +PxTask_debug_common_cflags += $(addprefix -I, $(PxTask_debug_hpaths)) +PxTask_debug_common_cflags += -m32 +PxTask_debug_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxTask_debug_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxTask_debug_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxTask_debug_common_cflags += -Wno-missing-field-initializers +PxTask_debug_common_cflags += -g3 -gdwarf-2 +PxTask_debug_cflags := $(PxTask_debug_common_cflags) +PxTask_debug_cppflags := $(PxTask_debug_common_cflags) +PxTask_debug_lflags := $(PxTask_custom_lflags) +PxTask_debug_lflags += $(addprefix -L, $(PxTask_debug_lpaths)) +PxTask_debug_lflags += -Wl,--start-group $(addprefix -l, $(PxTask_debug_libraries)) -Wl,--end-group +PxTask_debug_lflags += -lrt +PxTask_debug_lflags += -m32 +PxTask_debug_objsdir = $(OBJS_DIR)/PxTask_debug +PxTask_debug_cpp_o = $(addprefix $(PxTask_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxTask_cppfiles))))) +PxTask_debug_cc_o = $(addprefix $(PxTask_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxTask_ccfiles))))) +PxTask_debug_c_o = $(addprefix $(PxTask_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxTask_cfiles))))) +PxTask_debug_obj = $(PxTask_debug_cpp_o) $(PxTask_debug_cc_o) $(PxTask_debug_c_o) +PxTask_debug_bin := ./../../../lib/linux32/libPxTaskDEBUG.a + +clean_PxTask_debug: + @$(ECHO) clean PxTask debug + @$(RMDIR) $(PxTask_debug_objsdir) + @$(RMDIR) $(PxTask_debug_bin) + @$(RMDIR) $(DEPSDIR)/PxTask/debug + +build_PxTask_debug: postbuild_PxTask_debug +postbuild_PxTask_debug: mainbuild_PxTask_debug +mainbuild_PxTask_debug: prebuild_PxTask_debug $(PxTask_debug_bin) +prebuild_PxTask_debug: + +$(PxTask_debug_bin): $(PxTask_debug_obj) + mkdir -p `dirname ./../../../lib/linux32/libPxTaskDEBUG.a` + @$(AR) rcs $(PxTask_debug_bin) $(PxTask_debug_obj) + $(ECHO) building $@ complete! + +PxTask_debug_DEPDIR = $(dir $(@))/$(*F) +$(PxTask_debug_cpp_o): $(PxTask_debug_objsdir)/%.o: + $(ECHO) PxTask: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cppfiles)))))) + cp $(PxTask_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + rm -f $(PxTask_debug_DEPDIR).d + +$(PxTask_debug_cc_o): $(PxTask_debug_objsdir)/%.o: + $(ECHO) PxTask: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_ccfiles)))))) + cp $(PxTask_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_ccfiles))))).debug.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_ccfiles))))).debug.P; \ + rm -f $(PxTask_debug_DEPDIR).d + +$(PxTask_debug_c_o): $(PxTask_debug_objsdir)/%.o: + $(ECHO) PxTask: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxTask_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cfiles)))))) + cp $(PxTask_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + rm -f $(PxTask_debug_DEPDIR).d + +PxTask_release_hpaths := +PxTask_release_hpaths += ./../../../include +PxTask_release_hpaths += ./../../task/include +PxTask_release_hpaths += ./../../foundation/include +PxTask_release_lpaths := +PxTask_release_defines := $(PxTask_custom_defines) +PxTask_release_defines += NDEBUG +PxTask_release_libraries := +PxTask_release_common_cflags := $(PxTask_custom_cflags) +PxTask_release_common_cflags += -MMD +PxTask_release_common_cflags += $(addprefix -D, $(PxTask_release_defines)) +PxTask_release_common_cflags += $(addprefix -I, $(PxTask_release_hpaths)) +PxTask_release_common_cflags += -m32 +PxTask_release_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxTask_release_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxTask_release_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxTask_release_common_cflags += -Wno-missing-field-initializers +PxTask_release_common_cflags += -O3 -fno-strict-aliasing +PxTask_release_cflags := $(PxTask_release_common_cflags) +PxTask_release_cppflags := $(PxTask_release_common_cflags) +PxTask_release_lflags := $(PxTask_custom_lflags) +PxTask_release_lflags += $(addprefix -L, $(PxTask_release_lpaths)) +PxTask_release_lflags += -Wl,--start-group $(addprefix -l, $(PxTask_release_libraries)) -Wl,--end-group +PxTask_release_lflags += -lrt +PxTask_release_lflags += -m32 +PxTask_release_objsdir = $(OBJS_DIR)/PxTask_release +PxTask_release_cpp_o = $(addprefix $(PxTask_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxTask_cppfiles))))) +PxTask_release_cc_o = $(addprefix $(PxTask_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxTask_ccfiles))))) +PxTask_release_c_o = $(addprefix $(PxTask_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxTask_cfiles))))) +PxTask_release_obj = $(PxTask_release_cpp_o) $(PxTask_release_cc_o) $(PxTask_release_c_o) +PxTask_release_bin := ./../../../lib/linux32/libPxTask.a + +clean_PxTask_release: + @$(ECHO) clean PxTask release + @$(RMDIR) $(PxTask_release_objsdir) + @$(RMDIR) $(PxTask_release_bin) + @$(RMDIR) $(DEPSDIR)/PxTask/release + +build_PxTask_release: postbuild_PxTask_release +postbuild_PxTask_release: mainbuild_PxTask_release +mainbuild_PxTask_release: prebuild_PxTask_release $(PxTask_release_bin) +prebuild_PxTask_release: + +$(PxTask_release_bin): $(PxTask_release_obj) + mkdir -p `dirname ./../../../lib/linux32/libPxTask.a` + @$(AR) rcs $(PxTask_release_bin) $(PxTask_release_obj) + $(ECHO) building $@ complete! + +PxTask_release_DEPDIR = $(dir $(@))/$(*F) +$(PxTask_release_cpp_o): $(PxTask_release_objsdir)/%.o: + $(ECHO) PxTask: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cppfiles)))))) + cp $(PxTask_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + rm -f $(PxTask_release_DEPDIR).d + +$(PxTask_release_cc_o): $(PxTask_release_objsdir)/%.o: + $(ECHO) PxTask: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_ccfiles)))))) + cp $(PxTask_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_ccfiles))))).release.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_ccfiles))))).release.P; \ + rm -f $(PxTask_release_DEPDIR).d + +$(PxTask_release_c_o): $(PxTask_release_objsdir)/%.o: + $(ECHO) PxTask: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxTask_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cfiles)))))) + cp $(PxTask_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + rm -f $(PxTask_release_DEPDIR).d + +PxTask_checked_hpaths := +PxTask_checked_hpaths += ./../../../include +PxTask_checked_hpaths += ./../../task/include +PxTask_checked_hpaths += ./../../foundation/include +PxTask_checked_lpaths := +PxTask_checked_defines := $(PxTask_custom_defines) +PxTask_checked_defines += NDEBUG +PxTask_checked_defines += PX_CHECKED=1 +PxTask_checked_libraries := +PxTask_checked_common_cflags := $(PxTask_custom_cflags) +PxTask_checked_common_cflags += -MMD +PxTask_checked_common_cflags += $(addprefix -D, $(PxTask_checked_defines)) +PxTask_checked_common_cflags += $(addprefix -I, $(PxTask_checked_hpaths)) +PxTask_checked_common_cflags += -m32 +PxTask_checked_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxTask_checked_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxTask_checked_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxTask_checked_common_cflags += -Wno-missing-field-initializers +PxTask_checked_common_cflags += -g3 -gdwarf-2 -O3 -fno-strict-aliasing +PxTask_checked_cflags := $(PxTask_checked_common_cflags) +PxTask_checked_cppflags := $(PxTask_checked_common_cflags) +PxTask_checked_lflags := $(PxTask_custom_lflags) +PxTask_checked_lflags += $(addprefix -L, $(PxTask_checked_lpaths)) +PxTask_checked_lflags += -Wl,--start-group $(addprefix -l, $(PxTask_checked_libraries)) -Wl,--end-group +PxTask_checked_lflags += -lrt +PxTask_checked_lflags += -m32 +PxTask_checked_objsdir = $(OBJS_DIR)/PxTask_checked +PxTask_checked_cpp_o = $(addprefix $(PxTask_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxTask_cppfiles))))) +PxTask_checked_cc_o = $(addprefix $(PxTask_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxTask_ccfiles))))) +PxTask_checked_c_o = $(addprefix $(PxTask_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxTask_cfiles))))) +PxTask_checked_obj = $(PxTask_checked_cpp_o) $(PxTask_checked_cc_o) $(PxTask_checked_c_o) +PxTask_checked_bin := ./../../../lib/linux32/libPxTaskCHECKED.a + +clean_PxTask_checked: + @$(ECHO) clean PxTask checked + @$(RMDIR) $(PxTask_checked_objsdir) + @$(RMDIR) $(PxTask_checked_bin) + @$(RMDIR) $(DEPSDIR)/PxTask/checked + +build_PxTask_checked: postbuild_PxTask_checked +postbuild_PxTask_checked: mainbuild_PxTask_checked +mainbuild_PxTask_checked: prebuild_PxTask_checked $(PxTask_checked_bin) +prebuild_PxTask_checked: + +$(PxTask_checked_bin): $(PxTask_checked_obj) + mkdir -p `dirname ./../../../lib/linux32/libPxTaskCHECKED.a` + @$(AR) rcs $(PxTask_checked_bin) $(PxTask_checked_obj) + $(ECHO) building $@ complete! + +PxTask_checked_DEPDIR = $(dir $(@))/$(*F) +$(PxTask_checked_cpp_o): $(PxTask_checked_objsdir)/%.o: + $(ECHO) PxTask: compiling checked $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_checked_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cppfiles)))))) + cp $(PxTask_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + rm -f $(PxTask_checked_DEPDIR).d + +$(PxTask_checked_cc_o): $(PxTask_checked_objsdir)/%.o: + $(ECHO) PxTask: compiling checked $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_checked_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_ccfiles)))))) + cp $(PxTask_checked_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_ccfiles))))).checked.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_ccfiles))))).checked.P; \ + rm -f $(PxTask_checked_DEPDIR).d + +$(PxTask_checked_c_o): $(PxTask_checked_objsdir)/%.o: + $(ECHO) PxTask: compiling checked $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxTask_checked_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cfiles)))))) + cp $(PxTask_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + rm -f $(PxTask_checked_DEPDIR).d + +PxTask_profile_hpaths := +PxTask_profile_hpaths += ./../../../include +PxTask_profile_hpaths += ./../../task/include +PxTask_profile_hpaths += ./../../foundation/include +PxTask_profile_lpaths := +PxTask_profile_defines := $(PxTask_custom_defines) +PxTask_profile_defines += NDEBUG +PxTask_profile_defines += PX_PROFILE=1 +PxTask_profile_libraries := +PxTask_profile_common_cflags := $(PxTask_custom_cflags) +PxTask_profile_common_cflags += -MMD +PxTask_profile_common_cflags += $(addprefix -D, $(PxTask_profile_defines)) +PxTask_profile_common_cflags += $(addprefix -I, $(PxTask_profile_hpaths)) +PxTask_profile_common_cflags += -m32 +PxTask_profile_common_cflags += -Werror -m32 -fPIC -msse2 -mfpmath=sse -malign-double -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxTask_profile_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxTask_profile_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxTask_profile_common_cflags += -Wno-missing-field-initializers +PxTask_profile_common_cflags += -O3 -fno-strict-aliasing +PxTask_profile_cflags := $(PxTask_profile_common_cflags) +PxTask_profile_cppflags := $(PxTask_profile_common_cflags) +PxTask_profile_lflags := $(PxTask_custom_lflags) +PxTask_profile_lflags += $(addprefix -L, $(PxTask_profile_lpaths)) +PxTask_profile_lflags += -Wl,--start-group $(addprefix -l, $(PxTask_profile_libraries)) -Wl,--end-group +PxTask_profile_lflags += -lrt +PxTask_profile_lflags += -m32 +PxTask_profile_objsdir = $(OBJS_DIR)/PxTask_profile +PxTask_profile_cpp_o = $(addprefix $(PxTask_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxTask_cppfiles))))) +PxTask_profile_cc_o = $(addprefix $(PxTask_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxTask_ccfiles))))) +PxTask_profile_c_o = $(addprefix $(PxTask_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxTask_cfiles))))) +PxTask_profile_obj = $(PxTask_profile_cpp_o) $(PxTask_profile_cc_o) $(PxTask_profile_c_o) +PxTask_profile_bin := ./../../../lib/linux32/libPxTaskPROFILE.a + +clean_PxTask_profile: + @$(ECHO) clean PxTask profile + @$(RMDIR) $(PxTask_profile_objsdir) + @$(RMDIR) $(PxTask_profile_bin) + @$(RMDIR) $(DEPSDIR)/PxTask/profile + +build_PxTask_profile: postbuild_PxTask_profile +postbuild_PxTask_profile: mainbuild_PxTask_profile +mainbuild_PxTask_profile: prebuild_PxTask_profile $(PxTask_profile_bin) +prebuild_PxTask_profile: + +$(PxTask_profile_bin): $(PxTask_profile_obj) + mkdir -p `dirname ./../../../lib/linux32/libPxTaskPROFILE.a` + @$(AR) rcs $(PxTask_profile_bin) $(PxTask_profile_obj) + $(ECHO) building $@ complete! + +PxTask_profile_DEPDIR = $(dir $(@))/$(*F) +$(PxTask_profile_cpp_o): $(PxTask_profile_objsdir)/%.o: + $(ECHO) PxTask: compiling profile $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_profile_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cppfiles)))))) + cp $(PxTask_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + rm -f $(PxTask_profile_DEPDIR).d + +$(PxTask_profile_cc_o): $(PxTask_profile_objsdir)/%.o: + $(ECHO) PxTask: compiling profile $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_profile_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_ccfiles)))))) + cp $(PxTask_profile_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_ccfiles))))).profile.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_ccfiles))))).profile.P; \ + rm -f $(PxTask_profile_DEPDIR).d + +$(PxTask_profile_c_o): $(PxTask_profile_objsdir)/%.o: + $(ECHO) PxTask: compiling profile $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxTask_profile_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cfiles)))))) + cp $(PxTask_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + rm -f $(PxTask_profile_DEPDIR).d + +clean_PxTask: clean_PxTask_debug clean_PxTask_release clean_PxTask_checked clean_PxTask_profile + rm -rf $(DEPSDIR) + +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux64/Makefile b/PxShared/src/compiler/linux64/Makefile new file mode 100644 index 0000000..fa9ad43 --- /dev/null +++ b/PxShared/src/compiler/linux64/Makefile @@ -0,0 +1,209 @@ +#!/usr/bin/make +# Makefile generated by XPJ for linux64 + +DEPSDIR = .deps +#default defines +OBJS_DIR = build +RMDIR = rm -fr +ECHO = echo +CCLD = g++ +CXX = g++ +CC = gcc +RANLIB = ranlib +AR = ar +STRIP = strip +OBJDUMP = objdump +OBJCOPY = objcopy +-include Makedefs.linux64.mk + +all: checked debug profile release + +checked: build_PxCudaContextManager_checked + +debug: build_PxCudaContextManager_debug + +profile: build_PxCudaContextManager_profile + +release: build_PxCudaContextManager_release + +clean: clean_PxCudaContextManager_debug clean_PxCudaContextManager_checked clean_PxCudaContextManager_profile clean_PxCudaContextManager_release + rm -rf $(DEPSDIR) + + +clean_debug: clean_PxCudaContextManager_debug + rm -rf $(DEPSDIR) + + +clean_checked: clean_PxCudaContextManager_checked + rm -rf $(DEPSDIR) + + +clean_profile: clean_PxCudaContextManager_profile + rm -rf $(DEPSDIR) + + +clean_release: clean_PxCudaContextManager_release + rm -rf $(DEPSDIR) + + +include Makefile.PxCudaContextManager.mk + + +# Disable implicit rules to speedup build +.SUFFIXES: +SUFFIXES := +%.out: +%.a: +%.ln: +%.o: +%: %.o +%.c: +%: %.c +%.ln: %.c +%.o: %.c +%.cc: +%: %.cc +%.o: %.cc +%.C: +%: %.C +%.o: %.C +%.cpp: +%: %.cpp +%.o: %.cpp +%.p: +%: %.p +%.o: %.p +%.f: +%: + %.f%.o: %.f +%.F: +%: %.F +%.o: %.F +%.f: %.F +%.r: +%: %.r +%.o: %.r +%.f: %.r +%.y: +%.ln: %.y +%.c: %.y +%.l: +%.ln: %.l +%.c: %.l +%.r: %.l +%.s: +%: %.s +%.o: %.s +%.S: +%: %.S +%.o: %.S +%.s: %.S +%.mod: +%: %.mod +%.o: %.mod +%.sym: +%.def: +%.sym: %.def +%.h: +%.info: +%.dvi: +%.tex: +%.dvi: %.tex +%.texinfo: +%.info: %.texinfo +%.dvi: %.texinfo +%.texi: +%.info: %.texi +%.dvi: %.texi +%.txinfo: +%.info: %.txinfo +%.dvi: %.txinfo +%.w: +%.c: %.w +%.tex: %.w +%.ch: +%.web: +%.p: %.web +%.tex: %.web +%.sh: +%: %.sh +%.elc: +%.el: +(%): % +%.out: % +%.c: %.w %.ch +%.tex: %.w %.ch +%: %,v +%: RCS/%,v +%: RCS/% +%: s.% +%: SCCS/s.% +.web.p: +.l.r: +.dvi: +.F.o: +.l: +.y.ln: +.o: +.y: +.def.sym: +.p.o: +.p: +.txinfo.dvi: +.a: +.l.ln: +.w.c: +.texi.dvi: +.sh: +.cc: +.cc.o: +.def: +.c.o: +.r.o: +.r: +.info: +.elc: +.l.c: +.out: +.C: +.r.f: +.S: +.texinfo.info: +.c: +.w.tex: +.c.ln: +.s.o: +.s: +.texinfo.dvi: +.el: +.texinfo: +.y.c: +.web.tex: +.texi.info: +.DEFAULT: +.h: +.tex.dvi: +.cpp.o: +.cpp: +.C.o: +.ln: +.texi: +.txinfo: +.tex: +.txinfo.info: +.ch: +.S.s: +.mod: +.mod.o: +.F.f: +.w: +.S.o: +.F: +.web: +.sym: +.f: +.f.o: +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux64/Makefile.PsFastXml.mk b/PxShared/src/compiler/linux64/Makefile.PsFastXml.mk new file mode 100644 index 0000000..ae3d9da --- /dev/null +++ b/PxShared/src/compiler/linux64/Makefile.PsFastXml.mk @@ -0,0 +1,356 @@ +# Makefile generated by XPJ for linux64 +-include Makefile.custom +ProjectName = PsFastXml +PsFastXml_cppfiles += ./../../fastxml/src/PsFastXml.cpp + +PsFastXml_cpp_debug_dep = $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PsFastXml_cppfiles))))) +PsFastXml_cc_debug_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(PsFastXml_ccfiles))))) +PsFastXml_c_debug_dep = $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PsFastXml_cfiles))))) +PsFastXml_debug_dep = $(PsFastXml_cpp_debug_dep) $(PsFastXml_cc_debug_dep) $(PsFastXml_c_debug_dep) +-include $(PsFastXml_debug_dep) +PsFastXml_cpp_release_dep = $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PsFastXml_cppfiles))))) +PsFastXml_cc_release_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(PsFastXml_ccfiles))))) +PsFastXml_c_release_dep = $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PsFastXml_cfiles))))) +PsFastXml_release_dep = $(PsFastXml_cpp_release_dep) $(PsFastXml_cc_release_dep) $(PsFastXml_c_release_dep) +-include $(PsFastXml_release_dep) +PsFastXml_cpp_checked_dep = $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PsFastXml_cppfiles))))) +PsFastXml_cc_checked_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.checked.P, $(PsFastXml_ccfiles))))) +PsFastXml_c_checked_dep = $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PsFastXml_cfiles))))) +PsFastXml_checked_dep = $(PsFastXml_cpp_checked_dep) $(PsFastXml_cc_checked_dep) $(PsFastXml_c_checked_dep) +-include $(PsFastXml_checked_dep) +PsFastXml_cpp_profile_dep = $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PsFastXml_cppfiles))))) +PsFastXml_cc_profile_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.profile.P, $(PsFastXml_ccfiles))))) +PsFastXml_c_profile_dep = $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PsFastXml_cfiles))))) +PsFastXml_profile_dep = $(PsFastXml_cpp_profile_dep) $(PsFastXml_cc_profile_dep) $(PsFastXml_c_profile_dep) +-include $(PsFastXml_profile_dep) +PsFastXml_debug_hpaths := +PsFastXml_debug_hpaths += ./../../../include +PsFastXml_debug_hpaths += ./../../foundation/include +PsFastXml_debug_hpaths += ./../../fastxml/include +PsFastXml_debug_lpaths := +PsFastXml_debug_defines := $(PsFastXml_custom_defines) +PsFastXml_debug_defines += PX_FOUNDATION_DLL=0 +PsFastXml_debug_defines += _DEBUG +PsFastXml_debug_defines += PX_DEBUG=1 +PsFastXml_debug_defines += PX_CHECKED=1 +PsFastXml_debug_libraries := +PsFastXml_debug_common_cflags := $(PsFastXml_custom_cflags) +PsFastXml_debug_common_cflags += -MMD +PsFastXml_debug_common_cflags += $(addprefix -D, $(PsFastXml_debug_defines)) +PsFastXml_debug_common_cflags += $(addprefix -I, $(PsFastXml_debug_hpaths)) +PsFastXml_debug_common_cflags += -m64 +PsFastXml_debug_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PsFastXml_debug_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PsFastXml_debug_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PsFastXml_debug_common_cflags += -Wno-missing-field-initializers +PsFastXml_debug_common_cflags += -g3 -gdwarf-2 +PsFastXml_debug_cflags := $(PsFastXml_debug_common_cflags) +PsFastXml_debug_cppflags := $(PsFastXml_debug_common_cflags) +PsFastXml_debug_lflags := $(PsFastXml_custom_lflags) +PsFastXml_debug_lflags += $(addprefix -L, $(PsFastXml_debug_lpaths)) +PsFastXml_debug_lflags += -Wl,--start-group $(addprefix -l, $(PsFastXml_debug_libraries)) -Wl,--end-group +PsFastXml_debug_lflags += -lrt +PsFastXml_debug_lflags += -m64 +PsFastXml_debug_objsdir = $(OBJS_DIR)/PsFastXml_debug +PsFastXml_debug_cpp_o = $(addprefix $(PsFastXml_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PsFastXml_cppfiles))))) +PsFastXml_debug_cc_o = $(addprefix $(PsFastXml_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PsFastXml_ccfiles))))) +PsFastXml_debug_c_o = $(addprefix $(PsFastXml_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PsFastXml_cfiles))))) +PsFastXml_debug_obj = $(PsFastXml_debug_cpp_o) $(PsFastXml_debug_cc_o) $(PsFastXml_debug_c_o) +PsFastXml_debug_bin := ./../../../lib/linux64/libPsFastXmlDEBUG.a + +clean_PsFastXml_debug: + @$(ECHO) clean PsFastXml debug + @$(RMDIR) $(PsFastXml_debug_objsdir) + @$(RMDIR) $(PsFastXml_debug_bin) + @$(RMDIR) $(DEPSDIR)/PsFastXml/debug + +build_PsFastXml_debug: postbuild_PsFastXml_debug +postbuild_PsFastXml_debug: mainbuild_PsFastXml_debug +mainbuild_PsFastXml_debug: prebuild_PsFastXml_debug $(PsFastXml_debug_bin) +prebuild_PsFastXml_debug: + +$(PsFastXml_debug_bin): $(PsFastXml_debug_obj) + mkdir -p `dirname ./../../../lib/linux64/libPsFastXmlDEBUG.a` + @$(AR) rcs $(PsFastXml_debug_bin) $(PsFastXml_debug_obj) + $(ECHO) building $@ complete! + +PsFastXml_debug_DEPDIR = $(dir $(@))/$(*F) +$(PsFastXml_debug_cpp_o): $(PsFastXml_debug_objsdir)/%.o: + $(ECHO) PsFastXml: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cppfiles)))))) + cp $(PsFastXml_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + rm -f $(PsFastXml_debug_DEPDIR).d + +$(PsFastXml_debug_cc_o): $(PsFastXml_debug_objsdir)/%.o: + $(ECHO) PsFastXml: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_ccfiles)))))) + cp $(PsFastXml_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_ccfiles))))).debug.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_ccfiles))))).debug.P; \ + rm -f $(PsFastXml_debug_DEPDIR).d + +$(PsFastXml_debug_c_o): $(PsFastXml_debug_objsdir)/%.o: + $(ECHO) PsFastXml: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PsFastXml_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cfiles)))))) + cp $(PsFastXml_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_debug_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + rm -f $(PsFastXml_debug_DEPDIR).d + +PsFastXml_release_hpaths := +PsFastXml_release_hpaths += ./../../../include +PsFastXml_release_hpaths += ./../../foundation/include +PsFastXml_release_hpaths += ./../../fastxml/include +PsFastXml_release_lpaths := +PsFastXml_release_defines := $(PsFastXml_custom_defines) +PsFastXml_release_defines += PX_FOUNDATION_DLL=0 +PsFastXml_release_defines += NDEBUG +PsFastXml_release_libraries := +PsFastXml_release_common_cflags := $(PsFastXml_custom_cflags) +PsFastXml_release_common_cflags += -MMD +PsFastXml_release_common_cflags += $(addprefix -D, $(PsFastXml_release_defines)) +PsFastXml_release_common_cflags += $(addprefix -I, $(PsFastXml_release_hpaths)) +PsFastXml_release_common_cflags += -m64 +PsFastXml_release_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PsFastXml_release_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PsFastXml_release_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PsFastXml_release_common_cflags += -Wno-missing-field-initializers +PsFastXml_release_common_cflags += -O3 -fno-strict-aliasing +PsFastXml_release_cflags := $(PsFastXml_release_common_cflags) +PsFastXml_release_cppflags := $(PsFastXml_release_common_cflags) +PsFastXml_release_lflags := $(PsFastXml_custom_lflags) +PsFastXml_release_lflags += $(addprefix -L, $(PsFastXml_release_lpaths)) +PsFastXml_release_lflags += -Wl,--start-group $(addprefix -l, $(PsFastXml_release_libraries)) -Wl,--end-group +PsFastXml_release_lflags += -lrt +PsFastXml_release_lflags += -m64 +PsFastXml_release_objsdir = $(OBJS_DIR)/PsFastXml_release +PsFastXml_release_cpp_o = $(addprefix $(PsFastXml_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PsFastXml_cppfiles))))) +PsFastXml_release_cc_o = $(addprefix $(PsFastXml_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PsFastXml_ccfiles))))) +PsFastXml_release_c_o = $(addprefix $(PsFastXml_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PsFastXml_cfiles))))) +PsFastXml_release_obj = $(PsFastXml_release_cpp_o) $(PsFastXml_release_cc_o) $(PsFastXml_release_c_o) +PsFastXml_release_bin := ./../../../lib/linux64/libPsFastXml.a + +clean_PsFastXml_release: + @$(ECHO) clean PsFastXml release + @$(RMDIR) $(PsFastXml_release_objsdir) + @$(RMDIR) $(PsFastXml_release_bin) + @$(RMDIR) $(DEPSDIR)/PsFastXml/release + +build_PsFastXml_release: postbuild_PsFastXml_release +postbuild_PsFastXml_release: mainbuild_PsFastXml_release +mainbuild_PsFastXml_release: prebuild_PsFastXml_release $(PsFastXml_release_bin) +prebuild_PsFastXml_release: + +$(PsFastXml_release_bin): $(PsFastXml_release_obj) + mkdir -p `dirname ./../../../lib/linux64/libPsFastXml.a` + @$(AR) rcs $(PsFastXml_release_bin) $(PsFastXml_release_obj) + $(ECHO) building $@ complete! + +PsFastXml_release_DEPDIR = $(dir $(@))/$(*F) +$(PsFastXml_release_cpp_o): $(PsFastXml_release_objsdir)/%.o: + $(ECHO) PsFastXml: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cppfiles)))))) + cp $(PsFastXml_release_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + rm -f $(PsFastXml_release_DEPDIR).d + +$(PsFastXml_release_cc_o): $(PsFastXml_release_objsdir)/%.o: + $(ECHO) PsFastXml: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_ccfiles)))))) + cp $(PsFastXml_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_ccfiles))))).release.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_ccfiles))))).release.P; \ + rm -f $(PsFastXml_release_DEPDIR).d + +$(PsFastXml_release_c_o): $(PsFastXml_release_objsdir)/%.o: + $(ECHO) PsFastXml: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PsFastXml_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cfiles)))))) + cp $(PsFastXml_release_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_release_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + rm -f $(PsFastXml_release_DEPDIR).d + +PsFastXml_checked_hpaths := +PsFastXml_checked_hpaths += ./../../../include +PsFastXml_checked_hpaths += ./../../foundation/include +PsFastXml_checked_hpaths += ./../../fastxml/include +PsFastXml_checked_lpaths := +PsFastXml_checked_defines := $(PsFastXml_custom_defines) +PsFastXml_checked_defines += PX_FOUNDATION_DLL=0 +PsFastXml_checked_defines += NDEBUG +PsFastXml_checked_defines += PX_CHECKED=1 +PsFastXml_checked_libraries := +PsFastXml_checked_common_cflags := $(PsFastXml_custom_cflags) +PsFastXml_checked_common_cflags += -MMD +PsFastXml_checked_common_cflags += $(addprefix -D, $(PsFastXml_checked_defines)) +PsFastXml_checked_common_cflags += $(addprefix -I, $(PsFastXml_checked_hpaths)) +PsFastXml_checked_common_cflags += -m64 +PsFastXml_checked_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PsFastXml_checked_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PsFastXml_checked_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PsFastXml_checked_common_cflags += -Wno-missing-field-initializers +PsFastXml_checked_common_cflags += -g3 -gdwarf-2 -O3 -fno-strict-aliasing +PsFastXml_checked_cflags := $(PsFastXml_checked_common_cflags) +PsFastXml_checked_cppflags := $(PsFastXml_checked_common_cflags) +PsFastXml_checked_lflags := $(PsFastXml_custom_lflags) +PsFastXml_checked_lflags += $(addprefix -L, $(PsFastXml_checked_lpaths)) +PsFastXml_checked_lflags += -Wl,--start-group $(addprefix -l, $(PsFastXml_checked_libraries)) -Wl,--end-group +PsFastXml_checked_lflags += -lrt +PsFastXml_checked_lflags += -m64 +PsFastXml_checked_objsdir = $(OBJS_DIR)/PsFastXml_checked +PsFastXml_checked_cpp_o = $(addprefix $(PsFastXml_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PsFastXml_cppfiles))))) +PsFastXml_checked_cc_o = $(addprefix $(PsFastXml_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PsFastXml_ccfiles))))) +PsFastXml_checked_c_o = $(addprefix $(PsFastXml_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PsFastXml_cfiles))))) +PsFastXml_checked_obj = $(PsFastXml_checked_cpp_o) $(PsFastXml_checked_cc_o) $(PsFastXml_checked_c_o) +PsFastXml_checked_bin := ./../../../lib/linux64/libPsFastXmlCHECKED.a + +clean_PsFastXml_checked: + @$(ECHO) clean PsFastXml checked + @$(RMDIR) $(PsFastXml_checked_objsdir) + @$(RMDIR) $(PsFastXml_checked_bin) + @$(RMDIR) $(DEPSDIR)/PsFastXml/checked + +build_PsFastXml_checked: postbuild_PsFastXml_checked +postbuild_PsFastXml_checked: mainbuild_PsFastXml_checked +mainbuild_PsFastXml_checked: prebuild_PsFastXml_checked $(PsFastXml_checked_bin) +prebuild_PsFastXml_checked: + +$(PsFastXml_checked_bin): $(PsFastXml_checked_obj) + mkdir -p `dirname ./../../../lib/linux64/libPsFastXmlCHECKED.a` + @$(AR) rcs $(PsFastXml_checked_bin) $(PsFastXml_checked_obj) + $(ECHO) building $@ complete! + +PsFastXml_checked_DEPDIR = $(dir $(@))/$(*F) +$(PsFastXml_checked_cpp_o): $(PsFastXml_checked_objsdir)/%.o: + $(ECHO) PsFastXml: compiling checked $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_checked_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cppfiles)))))) + cp $(PsFastXml_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + rm -f $(PsFastXml_checked_DEPDIR).d + +$(PsFastXml_checked_cc_o): $(PsFastXml_checked_objsdir)/%.o: + $(ECHO) PsFastXml: compiling checked $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_checked_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_ccfiles)))))) + cp $(PsFastXml_checked_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_ccfiles))))).checked.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_ccfiles))))).checked.P; \ + rm -f $(PsFastXml_checked_DEPDIR).d + +$(PsFastXml_checked_c_o): $(PsFastXml_checked_objsdir)/%.o: + $(ECHO) PsFastXml: compiling checked $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PsFastXml_checked_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cfiles)))))) + cp $(PsFastXml_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_checked_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + rm -f $(PsFastXml_checked_DEPDIR).d + +PsFastXml_profile_hpaths := +PsFastXml_profile_hpaths += ./../../../include +PsFastXml_profile_hpaths += ./../../foundation/include +PsFastXml_profile_hpaths += ./../../fastxml/include +PsFastXml_profile_lpaths := +PsFastXml_profile_defines := $(PsFastXml_custom_defines) +PsFastXml_profile_defines += PX_FOUNDATION_DLL=0 +PsFastXml_profile_defines += NDEBUG +PsFastXml_profile_defines += PX_PROFILE=1 +PsFastXml_profile_libraries := +PsFastXml_profile_common_cflags := $(PsFastXml_custom_cflags) +PsFastXml_profile_common_cflags += -MMD +PsFastXml_profile_common_cflags += $(addprefix -D, $(PsFastXml_profile_defines)) +PsFastXml_profile_common_cflags += $(addprefix -I, $(PsFastXml_profile_hpaths)) +PsFastXml_profile_common_cflags += -m64 +PsFastXml_profile_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PsFastXml_profile_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PsFastXml_profile_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PsFastXml_profile_common_cflags += -Wno-missing-field-initializers +PsFastXml_profile_common_cflags += -O3 -fno-strict-aliasing +PsFastXml_profile_cflags := $(PsFastXml_profile_common_cflags) +PsFastXml_profile_cppflags := $(PsFastXml_profile_common_cflags) +PsFastXml_profile_lflags := $(PsFastXml_custom_lflags) +PsFastXml_profile_lflags += $(addprefix -L, $(PsFastXml_profile_lpaths)) +PsFastXml_profile_lflags += -Wl,--start-group $(addprefix -l, $(PsFastXml_profile_libraries)) -Wl,--end-group +PsFastXml_profile_lflags += -lrt +PsFastXml_profile_lflags += -m64 +PsFastXml_profile_objsdir = $(OBJS_DIR)/PsFastXml_profile +PsFastXml_profile_cpp_o = $(addprefix $(PsFastXml_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PsFastXml_cppfiles))))) +PsFastXml_profile_cc_o = $(addprefix $(PsFastXml_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PsFastXml_ccfiles))))) +PsFastXml_profile_c_o = $(addprefix $(PsFastXml_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PsFastXml_cfiles))))) +PsFastXml_profile_obj = $(PsFastXml_profile_cpp_o) $(PsFastXml_profile_cc_o) $(PsFastXml_profile_c_o) +PsFastXml_profile_bin := ./../../../lib/linux64/libPsFastXmlPROFILE.a + +clean_PsFastXml_profile: + @$(ECHO) clean PsFastXml profile + @$(RMDIR) $(PsFastXml_profile_objsdir) + @$(RMDIR) $(PsFastXml_profile_bin) + @$(RMDIR) $(DEPSDIR)/PsFastXml/profile + +build_PsFastXml_profile: postbuild_PsFastXml_profile +postbuild_PsFastXml_profile: mainbuild_PsFastXml_profile +mainbuild_PsFastXml_profile: prebuild_PsFastXml_profile $(PsFastXml_profile_bin) +prebuild_PsFastXml_profile: + +$(PsFastXml_profile_bin): $(PsFastXml_profile_obj) + mkdir -p `dirname ./../../../lib/linux64/libPsFastXmlPROFILE.a` + @$(AR) rcs $(PsFastXml_profile_bin) $(PsFastXml_profile_obj) + $(ECHO) building $@ complete! + +PsFastXml_profile_DEPDIR = $(dir $(@))/$(*F) +$(PsFastXml_profile_cpp_o): $(PsFastXml_profile_objsdir)/%.o: + $(ECHO) PsFastXml: compiling profile $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_profile_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cppfiles)))))) + cp $(PsFastXml_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cppfiles))))).P; \ + rm -f $(PsFastXml_profile_DEPDIR).d + +$(PsFastXml_profile_cc_o): $(PsFastXml_profile_objsdir)/%.o: + $(ECHO) PsFastXml: compiling profile $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PsFastXml_profile_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_ccfiles)))))) + cp $(PsFastXml_profile_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_ccfiles))))).profile.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_ccfiles))))).profile.P; \ + rm -f $(PsFastXml_profile_DEPDIR).d + +$(PsFastXml_profile_c_o): $(PsFastXml_profile_objsdir)/%.o: + $(ECHO) PsFastXml: compiling profile $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PsFastXml_profile_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cfiles)))))) + cp $(PsFastXml_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PsFastXml_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PsFastXml/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PsFastXml_profile_objsdir),, $@))), $(PsFastXml_cfiles))))).P; \ + rm -f $(PsFastXml_profile_DEPDIR).d + +clean_PsFastXml: clean_PsFastXml_debug clean_PsFastXml_release clean_PsFastXml_checked clean_PsFastXml_profile + rm -rf $(DEPSDIR) + +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux64/Makefile.PxCudaContextManager.mk b/PxShared/src/compiler/linux64/Makefile.PxCudaContextManager.mk new file mode 100644 index 0000000..6cf7540 --- /dev/null +++ b/PxShared/src/compiler/linux64/Makefile.PxCudaContextManager.mk @@ -0,0 +1,391 @@ +# Makefile generated by XPJ for linux64 +-include Makefile.custom +ProjectName = PxCudaContextManager +PxCudaContextManager_cppfiles += ./../../cudamanager/src/BlockingWait.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/CudaContextManager.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/CudaKernelWrangler.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/CudaMemoryManager.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/GpuDispatcher.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/HeapManagerRef.cpp +PxCudaContextManager_cppfiles += ./../../cudamanager/src/PhysXDeviceSettings.cpp +PxCudaContextManager_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu += ./../../cudamanager/src/CUDA/UtilKernels.cu + +PxCudaContextManager_cpp_debug_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_cc_debug_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_c_debug_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_debug_dep = $(PxCudaContextManager_cpp_debug_dep) $(PxCudaContextManager_cc_debug_dep) $(PxCudaContextManager_c_debug_dep) +-include $(PxCudaContextManager_debug_dep) +PxCudaContextManager_cpp_checked_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_cc_checked_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.checked.P, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_c_checked_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_checked_dep = $(PxCudaContextManager_cpp_checked_dep) $(PxCudaContextManager_cc_checked_dep) $(PxCudaContextManager_c_checked_dep) +-include $(PxCudaContextManager_checked_dep) +PxCudaContextManager_cpp_profile_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_cc_profile_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.profile.P, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_c_profile_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_profile_dep = $(PxCudaContextManager_cpp_profile_dep) $(PxCudaContextManager_cc_profile_dep) $(PxCudaContextManager_c_profile_dep) +-include $(PxCudaContextManager_profile_dep) +PxCudaContextManager_cpp_release_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_cc_release_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_c_release_dep = $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_release_dep = $(PxCudaContextManager_cpp_release_dep) $(PxCudaContextManager_cc_release_dep) $(PxCudaContextManager_c_release_dep) +-include $(PxCudaContextManager_release_dep) +PxCudaContextManager_debug_hpaths := +PxCudaContextManager_debug_hpaths += ./../../../include +PxCudaContextManager_debug_hpaths += ./../../foundation/include +PxCudaContextManager_debug_hpaths += ./../../task/include +PxCudaContextManager_debug_hpaths += ./../../cudamanager/include +PxCudaContextManager_debug_hpaths += ./../../../../../../externals/CUDA/6.5.19-linux/include +PxCudaContextManager_debug_lpaths := +PxCudaContextManager_debug_defines := $(PxCudaContextManager_custom_defines) +PxCudaContextManager_debug_defines += _DEBUG +PxCudaContextManager_debug_defines += PX_DEBUG=1 +PxCudaContextManager_debug_defines += PX_CHECKED=1 +PxCudaContextManager_debug_libraries := +PxCudaContextManager_debug_common_cflags := $(PxCudaContextManager_custom_cflags) +PxCudaContextManager_debug_common_cflags += -MMD +PxCudaContextManager_debug_common_cflags += $(addprefix -D, $(PxCudaContextManager_debug_defines)) +PxCudaContextManager_debug_common_cflags += $(addprefix -I, $(PxCudaContextManager_debug_hpaths)) +PxCudaContextManager_debug_common_cflags += -m64 +PxCudaContextManager_debug_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxCudaContextManager_debug_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxCudaContextManager_debug_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxCudaContextManager_debug_common_cflags += -Wno-missing-field-initializers +PxCudaContextManager_debug_common_cflags += -g3 -gdwarf-2 +PxCudaContextManager_debug_cflags := $(PxCudaContextManager_debug_common_cflags) +PxCudaContextManager_debug_cppflags := $(PxCudaContextManager_debug_common_cflags) +PxCudaContextManager_debug_lflags := $(PxCudaContextManager_custom_lflags) +PxCudaContextManager_debug_lflags += $(addprefix -L, $(PxCudaContextManager_debug_lpaths)) +PxCudaContextManager_debug_lflags += -Wl,--start-group $(addprefix -l, $(PxCudaContextManager_debug_libraries)) -Wl,--end-group +PxCudaContextManager_debug_lflags += -lrt +PxCudaContextManager_debug_lflags += -m64 +PxCudaContextManager_debug_objsdir = $(OBJS_DIR)/PxCudaContextManager_debug +PxCudaContextManager_debug_cpp_o = $(addprefix $(PxCudaContextManager_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_debug_cc_o = $(addprefix $(PxCudaContextManager_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_debug_c_o = $(addprefix $(PxCudaContextManager_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_debug_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o += $(OBJS_DIR)/PxCudaContextManager_debug/CUDA_src/cudamanager/src/CUDAUtilKernels.o +PxCudaContextManager_debug_obj = $(PxCudaContextManager_debug_cpp_o) $(PxCudaContextManager_debug_cc_o) $(PxCudaContextManager_debug_c_o) $(PxCudaContextManager_debug_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o) +PxCudaContextManager_debug_bin := ./../../../lib/linux64/libPxCudaContextManagerDEBUG.a + +clean_PxCudaContextManager_debug: + @$(ECHO) clean PxCudaContextManager debug + @$(RMDIR) $(PxCudaContextManager_debug_objsdir) + @$(RMDIR) $(PxCudaContextManager_debug_bin) + @$(RMDIR) $(DEPSDIR)/PxCudaContextManager/debug + +build_PxCudaContextManager_debug: postbuild_PxCudaContextManager_debug +postbuild_PxCudaContextManager_debug: mainbuild_PxCudaContextManager_debug +mainbuild_PxCudaContextManager_debug: prebuild_PxCudaContextManager_debug $(PxCudaContextManager_debug_bin) +prebuild_PxCudaContextManager_debug: + +$(PxCudaContextManager_debug_bin): $(PxCudaContextManager_debug_obj) + mkdir -p `dirname ./../../../lib/linux64/libPxCudaContextManagerDEBUG.a` + @$(AR) rcs $(PxCudaContextManager_debug_bin) $(PxCudaContextManager_debug_obj) + $(ECHO) building $@ complete! + +$(PxCudaContextManager_debug_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o): $(PxCudaContextManager_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu) + @mkdir -p `dirname $(OBJS_DIR)/PxCudaContextManager_debug/CUDA_src/cudamanager/src/CUDAUtilKernels.o` + $(ECHO) "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin64/nvcc" -m64 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -D_DEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m64,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_debug/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin64/nvcc" -m64 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -D_DEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m64,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_debug/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + +PxCudaContextManager_debug_DEPDIR = $(dir $(@))/$(*F) +$(PxCudaContextManager_debug_cpp_o): $(PxCudaContextManager_debug_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cppfiles)))))) + cp $(PxCudaContextManager_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + rm -f $(PxCudaContextManager_debug_DEPDIR).d + +$(PxCudaContextManager_debug_cc_o): $(PxCudaContextManager_debug_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_ccfiles)))))) + cp $(PxCudaContextManager_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).debug.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).debug.P; \ + rm -f $(PxCudaContextManager_debug_DEPDIR).d + +$(PxCudaContextManager_debug_c_o): $(PxCudaContextManager_debug_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxCudaContextManager_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cfiles)))))) + cp $(PxCudaContextManager_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_debug_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + rm -f $(PxCudaContextManager_debug_DEPDIR).d + +PxCudaContextManager_checked_hpaths := +PxCudaContextManager_checked_hpaths += ./../../../include +PxCudaContextManager_checked_hpaths += ./../../foundation/include +PxCudaContextManager_checked_hpaths += ./../../task/include +PxCudaContextManager_checked_hpaths += ./../../cudamanager/include +PxCudaContextManager_checked_hpaths += ./../../../../../../externals/CUDA/6.5.19-linux/include +PxCudaContextManager_checked_lpaths := +PxCudaContextManager_checked_defines := $(PxCudaContextManager_custom_defines) +PxCudaContextManager_checked_defines += NDEBUG +PxCudaContextManager_checked_defines += PX_CHECKED=1 +PxCudaContextManager_checked_libraries := +PxCudaContextManager_checked_common_cflags := $(PxCudaContextManager_custom_cflags) +PxCudaContextManager_checked_common_cflags += -MMD +PxCudaContextManager_checked_common_cflags += $(addprefix -D, $(PxCudaContextManager_checked_defines)) +PxCudaContextManager_checked_common_cflags += $(addprefix -I, $(PxCudaContextManager_checked_hpaths)) +PxCudaContextManager_checked_common_cflags += -m64 +PxCudaContextManager_checked_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxCudaContextManager_checked_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxCudaContextManager_checked_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxCudaContextManager_checked_common_cflags += -Wno-missing-field-initializers +PxCudaContextManager_checked_common_cflags += -g3 -gdwarf-2 -O3 -fno-strict-aliasing +PxCudaContextManager_checked_cflags := $(PxCudaContextManager_checked_common_cflags) +PxCudaContextManager_checked_cppflags := $(PxCudaContextManager_checked_common_cflags) +PxCudaContextManager_checked_lflags := $(PxCudaContextManager_custom_lflags) +PxCudaContextManager_checked_lflags += $(addprefix -L, $(PxCudaContextManager_checked_lpaths)) +PxCudaContextManager_checked_lflags += -Wl,--start-group $(addprefix -l, $(PxCudaContextManager_checked_libraries)) -Wl,--end-group +PxCudaContextManager_checked_lflags += -lrt +PxCudaContextManager_checked_lflags += -m64 +PxCudaContextManager_checked_objsdir = $(OBJS_DIR)/PxCudaContextManager_checked +PxCudaContextManager_checked_cpp_o = $(addprefix $(PxCudaContextManager_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_checked_cc_o = $(addprefix $(PxCudaContextManager_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_checked_c_o = $(addprefix $(PxCudaContextManager_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_checked_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o += $(OBJS_DIR)/PxCudaContextManager_checked/CUDA_src/cudamanager/src/CUDAUtilKernels.o +PxCudaContextManager_checked_obj = $(PxCudaContextManager_checked_cpp_o) $(PxCudaContextManager_checked_cc_o) $(PxCudaContextManager_checked_c_o) $(PxCudaContextManager_checked_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o) +PxCudaContextManager_checked_bin := ./../../../lib/linux64/libPxCudaContextManagerCHECKED.a + +clean_PxCudaContextManager_checked: + @$(ECHO) clean PxCudaContextManager checked + @$(RMDIR) $(PxCudaContextManager_checked_objsdir) + @$(RMDIR) $(PxCudaContextManager_checked_bin) + @$(RMDIR) $(DEPSDIR)/PxCudaContextManager/checked + +build_PxCudaContextManager_checked: postbuild_PxCudaContextManager_checked +postbuild_PxCudaContextManager_checked: mainbuild_PxCudaContextManager_checked +mainbuild_PxCudaContextManager_checked: prebuild_PxCudaContextManager_checked $(PxCudaContextManager_checked_bin) +prebuild_PxCudaContextManager_checked: + +$(PxCudaContextManager_checked_bin): $(PxCudaContextManager_checked_obj) + mkdir -p `dirname ./../../../lib/linux64/libPxCudaContextManagerCHECKED.a` + @$(AR) rcs $(PxCudaContextManager_checked_bin) $(PxCudaContextManager_checked_obj) + $(ECHO) building $@ complete! + +$(PxCudaContextManager_checked_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o): $(PxCudaContextManager_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu) + @mkdir -p `dirname $(OBJS_DIR)/PxCudaContextManager_checked/CUDA_src/cudamanager/src/CUDAUtilKernels.o` + $(ECHO) "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin64/nvcc" -m64 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m64,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_checked/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin64/nvcc" -m64 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m64,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_checked/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + +PxCudaContextManager_checked_DEPDIR = $(dir $(@))/$(*F) +$(PxCudaContextManager_checked_cpp_o): $(PxCudaContextManager_checked_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling checked $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_checked_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cppfiles)))))) + cp $(PxCudaContextManager_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + rm -f $(PxCudaContextManager_checked_DEPDIR).d + +$(PxCudaContextManager_checked_cc_o): $(PxCudaContextManager_checked_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling checked $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_checked_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_ccfiles)))))) + cp $(PxCudaContextManager_checked_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).checked.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).checked.P; \ + rm -f $(PxCudaContextManager_checked_DEPDIR).d + +$(PxCudaContextManager_checked_c_o): $(PxCudaContextManager_checked_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling checked $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxCudaContextManager_checked_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cfiles)))))) + cp $(PxCudaContextManager_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_checked_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + rm -f $(PxCudaContextManager_checked_DEPDIR).d + +PxCudaContextManager_profile_hpaths := +PxCudaContextManager_profile_hpaths += ./../../../include +PxCudaContextManager_profile_hpaths += ./../../foundation/include +PxCudaContextManager_profile_hpaths += ./../../task/include +PxCudaContextManager_profile_hpaths += ./../../cudamanager/include +PxCudaContextManager_profile_hpaths += ./../../../../../../externals/CUDA/6.5.19-linux/include +PxCudaContextManager_profile_lpaths := +PxCudaContextManager_profile_defines := $(PxCudaContextManager_custom_defines) +PxCudaContextManager_profile_defines += NDEBUG +PxCudaContextManager_profile_defines += PX_PROFILE=1 +PxCudaContextManager_profile_libraries := +PxCudaContextManager_profile_common_cflags := $(PxCudaContextManager_custom_cflags) +PxCudaContextManager_profile_common_cflags += -MMD +PxCudaContextManager_profile_common_cflags += $(addprefix -D, $(PxCudaContextManager_profile_defines)) +PxCudaContextManager_profile_common_cflags += $(addprefix -I, $(PxCudaContextManager_profile_hpaths)) +PxCudaContextManager_profile_common_cflags += -m64 +PxCudaContextManager_profile_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxCudaContextManager_profile_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxCudaContextManager_profile_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxCudaContextManager_profile_common_cflags += -Wno-missing-field-initializers +PxCudaContextManager_profile_common_cflags += -O3 -fno-strict-aliasing +PxCudaContextManager_profile_cflags := $(PxCudaContextManager_profile_common_cflags) +PxCudaContextManager_profile_cppflags := $(PxCudaContextManager_profile_common_cflags) +PxCudaContextManager_profile_lflags := $(PxCudaContextManager_custom_lflags) +PxCudaContextManager_profile_lflags += $(addprefix -L, $(PxCudaContextManager_profile_lpaths)) +PxCudaContextManager_profile_lflags += -Wl,--start-group $(addprefix -l, $(PxCudaContextManager_profile_libraries)) -Wl,--end-group +PxCudaContextManager_profile_lflags += -lrt +PxCudaContextManager_profile_lflags += -m64 +PxCudaContextManager_profile_objsdir = $(OBJS_DIR)/PxCudaContextManager_profile +PxCudaContextManager_profile_cpp_o = $(addprefix $(PxCudaContextManager_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_profile_cc_o = $(addprefix $(PxCudaContextManager_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_profile_c_o = $(addprefix $(PxCudaContextManager_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_profile_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o += $(OBJS_DIR)/PxCudaContextManager_profile/CUDA_src/cudamanager/src/CUDAUtilKernels.o +PxCudaContextManager_profile_obj = $(PxCudaContextManager_profile_cpp_o) $(PxCudaContextManager_profile_cc_o) $(PxCudaContextManager_profile_c_o) $(PxCudaContextManager_profile_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o) +PxCudaContextManager_profile_bin := ./../../../lib/linux64/libPxCudaContextManagerPROFILE.a + +clean_PxCudaContextManager_profile: + @$(ECHO) clean PxCudaContextManager profile + @$(RMDIR) $(PxCudaContextManager_profile_objsdir) + @$(RMDIR) $(PxCudaContextManager_profile_bin) + @$(RMDIR) $(DEPSDIR)/PxCudaContextManager/profile + +build_PxCudaContextManager_profile: postbuild_PxCudaContextManager_profile +postbuild_PxCudaContextManager_profile: mainbuild_PxCudaContextManager_profile +mainbuild_PxCudaContextManager_profile: prebuild_PxCudaContextManager_profile $(PxCudaContextManager_profile_bin) +prebuild_PxCudaContextManager_profile: + +$(PxCudaContextManager_profile_bin): $(PxCudaContextManager_profile_obj) + mkdir -p `dirname ./../../../lib/linux64/libPxCudaContextManagerPROFILE.a` + @$(AR) rcs $(PxCudaContextManager_profile_bin) $(PxCudaContextManager_profile_obj) + $(ECHO) building $@ complete! + +$(PxCudaContextManager_profile_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o): $(PxCudaContextManager_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu) + @mkdir -p `dirname $(OBJS_DIR)/PxCudaContextManager_profile/CUDA_src/cudamanager/src/CUDAUtilKernels.o` + $(ECHO) "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin64/nvcc" -m64 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m64,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_profile/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin64/nvcc" -m64 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m64,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_profile/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + +PxCudaContextManager_profile_DEPDIR = $(dir $(@))/$(*F) +$(PxCudaContextManager_profile_cpp_o): $(PxCudaContextManager_profile_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling profile $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_profile_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cppfiles)))))) + cp $(PxCudaContextManager_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + rm -f $(PxCudaContextManager_profile_DEPDIR).d + +$(PxCudaContextManager_profile_cc_o): $(PxCudaContextManager_profile_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling profile $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_profile_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_ccfiles)))))) + cp $(PxCudaContextManager_profile_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).profile.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).profile.P; \ + rm -f $(PxCudaContextManager_profile_DEPDIR).d + +$(PxCudaContextManager_profile_c_o): $(PxCudaContextManager_profile_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling profile $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxCudaContextManager_profile_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cfiles)))))) + cp $(PxCudaContextManager_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_profile_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + rm -f $(PxCudaContextManager_profile_DEPDIR).d + +PxCudaContextManager_release_hpaths := +PxCudaContextManager_release_hpaths += ./../../../include +PxCudaContextManager_release_hpaths += ./../../foundation/include +PxCudaContextManager_release_hpaths += ./../../task/include +PxCudaContextManager_release_hpaths += ./../../cudamanager/include +PxCudaContextManager_release_hpaths += ./../../../../../../externals/CUDA/6.5.19-linux/include +PxCudaContextManager_release_lpaths := +PxCudaContextManager_release_defines := $(PxCudaContextManager_custom_defines) +PxCudaContextManager_release_defines += NDEBUG +PxCudaContextManager_release_libraries := +PxCudaContextManager_release_common_cflags := $(PxCudaContextManager_custom_cflags) +PxCudaContextManager_release_common_cflags += -MMD +PxCudaContextManager_release_common_cflags += $(addprefix -D, $(PxCudaContextManager_release_defines)) +PxCudaContextManager_release_common_cflags += $(addprefix -I, $(PxCudaContextManager_release_hpaths)) +PxCudaContextManager_release_common_cflags += -m64 +PxCudaContextManager_release_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxCudaContextManager_release_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxCudaContextManager_release_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxCudaContextManager_release_common_cflags += -Wno-missing-field-initializers +PxCudaContextManager_release_common_cflags += -O3 -fno-strict-aliasing +PxCudaContextManager_release_cflags := $(PxCudaContextManager_release_common_cflags) +PxCudaContextManager_release_cppflags := $(PxCudaContextManager_release_common_cflags) +PxCudaContextManager_release_lflags := $(PxCudaContextManager_custom_lflags) +PxCudaContextManager_release_lflags += $(addprefix -L, $(PxCudaContextManager_release_lpaths)) +PxCudaContextManager_release_lflags += -Wl,--start-group $(addprefix -l, $(PxCudaContextManager_release_libraries)) -Wl,--end-group +PxCudaContextManager_release_lflags += -lrt +PxCudaContextManager_release_lflags += -m64 +PxCudaContextManager_release_objsdir = $(OBJS_DIR)/PxCudaContextManager_release +PxCudaContextManager_release_cpp_o = $(addprefix $(PxCudaContextManager_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxCudaContextManager_cppfiles))))) +PxCudaContextManager_release_cc_o = $(addprefix $(PxCudaContextManager_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxCudaContextManager_ccfiles))))) +PxCudaContextManager_release_c_o = $(addprefix $(PxCudaContextManager_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxCudaContextManager_cfiles))))) +PxCudaContextManager_release_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o += $(OBJS_DIR)/PxCudaContextManager_release/CUDA_src/cudamanager/src/CUDAUtilKernels.o +PxCudaContextManager_release_obj = $(PxCudaContextManager_release_cpp_o) $(PxCudaContextManager_release_cc_o) $(PxCudaContextManager_release_c_o) $(PxCudaContextManager_release_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o) +PxCudaContextManager_release_bin := ./../../../lib/linux64/libPxCudaContextManager.a + +clean_PxCudaContextManager_release: + @$(ECHO) clean PxCudaContextManager release + @$(RMDIR) $(PxCudaContextManager_release_objsdir) + @$(RMDIR) $(PxCudaContextManager_release_bin) + @$(RMDIR) $(DEPSDIR)/PxCudaContextManager/release + +build_PxCudaContextManager_release: postbuild_PxCudaContextManager_release +postbuild_PxCudaContextManager_release: mainbuild_PxCudaContextManager_release +mainbuild_PxCudaContextManager_release: prebuild_PxCudaContextManager_release $(PxCudaContextManager_release_bin) +prebuild_PxCudaContextManager_release: + +$(PxCudaContextManager_release_bin): $(PxCudaContextManager_release_obj) + mkdir -p `dirname ./../../../lib/linux64/libPxCudaContextManager.a` + @$(AR) rcs $(PxCudaContextManager_release_bin) $(PxCudaContextManager_release_obj) + $(ECHO) building $@ complete! + +$(PxCudaContextManager_release_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu_o): $(PxCudaContextManager_CUDA_src_cudamanager_src_CUDA_UtilKernels_cu) + @mkdir -p `dirname $(OBJS_DIR)/PxCudaContextManager_release/CUDA_src/cudamanager/src/CUDAUtilKernels.o` + $(ECHO) "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin64/nvcc" -m64 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m64,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_release/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + "E:/nx0/sw/physx/externals/CUDA/6.5.19-linux/bin64/nvcc" -m64 -lineinfo -use_fast_math -ftz=true -prec-div=false -prec-sqrt=false -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_60,code=compute_60 -DNDEBUG --compiler-options=-Wall,-O3,-fPIC,-msse2,-mfpmath=sse,-malign-double,-m64,-fvisibility=hidden -IE:/nx0/sw/physx/PxShared/1.0/trunk/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/foundation/include -IE:/nx0/sw/physx/PxShared/1.0/trunk/src/cudamanager/include --compile -o $(OBJS_DIR)/PxCudaContextManager_release/CUDA_src/cudamanager/src/CUDAUtilKernels.o ./../../cudamanager/src/CUDA/UtilKernels.cu + +PxCudaContextManager_release_DEPDIR = $(dir $(@))/$(*F) +$(PxCudaContextManager_release_cpp_o): $(PxCudaContextManager_release_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cppfiles)))))) + cp $(PxCudaContextManager_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cppfiles))))).P; \ + rm -f $(PxCudaContextManager_release_DEPDIR).d + +$(PxCudaContextManager_release_cc_o): $(PxCudaContextManager_release_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxCudaContextManager_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_ccfiles)))))) + cp $(PxCudaContextManager_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).release.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_ccfiles))))).release.P; \ + rm -f $(PxCudaContextManager_release_DEPDIR).d + +$(PxCudaContextManager_release_c_o): $(PxCudaContextManager_release_objsdir)/%.o: + $(ECHO) PxCudaContextManager: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxCudaContextManager_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cfiles)))))) + cp $(PxCudaContextManager_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxCudaContextManager_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxCudaContextManager/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxCudaContextManager_release_objsdir),, $@))), $(PxCudaContextManager_cfiles))))).P; \ + rm -f $(PxCudaContextManager_release_DEPDIR).d + +clean_PxCudaContextManager: clean_PxCudaContextManager_debug clean_PxCudaContextManager_checked clean_PxCudaContextManager_profile clean_PxCudaContextManager_release + rm -rf $(DEPSDIR) + +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux64/Makefile.PxFoundation.mk b/PxShared/src/compiler/linux64/Makefile.PxFoundation.mk new file mode 100644 index 0000000..eefcbb3 --- /dev/null +++ b/PxShared/src/compiler/linux64/Makefile.PxFoundation.mk @@ -0,0 +1,372 @@ +# Makefile generated by XPJ for linux64 +-include Makefile.custom +ProjectName = PxFoundation +PxFoundation_cppfiles += ./../../foundation/src/PsAllocator.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsAssert.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsFoundation.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsMathUtils.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsString.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsTempAllocator.cpp +PxFoundation_cppfiles += ./../../foundation/src/PsUtilities.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixAtomic.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixCpu.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixFPU.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixMutex.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixPrintString.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixSList.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixSocket.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixSync.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixThread.cpp +PxFoundation_cppfiles += ./../../foundation/src/unix/PsUnixTime.cpp + +PxFoundation_cpp_debug_dep = $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxFoundation_cppfiles))))) +PxFoundation_cc_debug_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(PxFoundation_ccfiles))))) +PxFoundation_c_debug_dep = $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxFoundation_cfiles))))) +PxFoundation_debug_dep = $(PxFoundation_cpp_debug_dep) $(PxFoundation_cc_debug_dep) $(PxFoundation_c_debug_dep) +-include $(PxFoundation_debug_dep) +PxFoundation_cpp_release_dep = $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxFoundation_cppfiles))))) +PxFoundation_cc_release_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(PxFoundation_ccfiles))))) +PxFoundation_c_release_dep = $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxFoundation_cfiles))))) +PxFoundation_release_dep = $(PxFoundation_cpp_release_dep) $(PxFoundation_cc_release_dep) $(PxFoundation_c_release_dep) +-include $(PxFoundation_release_dep) +PxFoundation_cpp_checked_dep = $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxFoundation_cppfiles))))) +PxFoundation_cc_checked_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.checked.P, $(PxFoundation_ccfiles))))) +PxFoundation_c_checked_dep = $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxFoundation_cfiles))))) +PxFoundation_checked_dep = $(PxFoundation_cpp_checked_dep) $(PxFoundation_cc_checked_dep) $(PxFoundation_c_checked_dep) +-include $(PxFoundation_checked_dep) +PxFoundation_cpp_profile_dep = $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxFoundation_cppfiles))))) +PxFoundation_cc_profile_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.profile.P, $(PxFoundation_ccfiles))))) +PxFoundation_c_profile_dep = $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxFoundation_cfiles))))) +PxFoundation_profile_dep = $(PxFoundation_cpp_profile_dep) $(PxFoundation_cc_profile_dep) $(PxFoundation_c_profile_dep) +-include $(PxFoundation_profile_dep) +PxFoundation_debug_hpaths := +PxFoundation_debug_hpaths += ./../../../include +PxFoundation_debug_hpaths += ./../../foundation/include +PxFoundation_debug_hpaths += ./../../foundation/include/unix +PxFoundation_debug_lpaths := +PxFoundation_debug_defines := $(PxFoundation_custom_defines) +PxFoundation_debug_defines += PX_FOUNDATION_DLL=1 +PxFoundation_debug_defines += _DEBUG +PxFoundation_debug_defines += PX_DEBUG=1 +PxFoundation_debug_defines += PX_CHECKED=1 +PxFoundation_debug_libraries := +PxFoundation_debug_common_cflags := $(PxFoundation_custom_cflags) +PxFoundation_debug_common_cflags += -MMD +PxFoundation_debug_common_cflags += $(addprefix -D, $(PxFoundation_debug_defines)) +PxFoundation_debug_common_cflags += $(addprefix -I, $(PxFoundation_debug_hpaths)) +PxFoundation_debug_common_cflags += -m64 +PxFoundation_debug_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxFoundation_debug_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxFoundation_debug_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxFoundation_debug_common_cflags += -Wno-missing-field-initializers +PxFoundation_debug_common_cflags += -g3 -gdwarf-2 +PxFoundation_debug_cflags := $(PxFoundation_debug_common_cflags) +PxFoundation_debug_cppflags := $(PxFoundation_debug_common_cflags) +PxFoundation_debug_lflags := $(PxFoundation_custom_lflags) +PxFoundation_debug_lflags += $(addprefix -L, $(PxFoundation_debug_lpaths)) +PxFoundation_debug_lflags += -Wl,--start-group $(addprefix -l, $(PxFoundation_debug_libraries)) -Wl,--end-group +PxFoundation_debug_lflags += -lrt +PxFoundation_debug_lflags += -m64 +PxFoundation_debug_objsdir = $(OBJS_DIR)/PxFoundation_debug +PxFoundation_debug_cpp_o = $(addprefix $(PxFoundation_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxFoundation_cppfiles))))) +PxFoundation_debug_cc_o = $(addprefix $(PxFoundation_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxFoundation_ccfiles))))) +PxFoundation_debug_c_o = $(addprefix $(PxFoundation_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxFoundation_cfiles))))) +PxFoundation_debug_obj = $(PxFoundation_debug_cpp_o) $(PxFoundation_debug_cc_o) $(PxFoundation_debug_c_o) +PxFoundation_debug_bin := ./../../../bin/linux64/libPxFoundationDEBUG_x64.so + +clean_PxFoundation_debug: + @$(ECHO) clean PxFoundation debug + @$(RMDIR) $(PxFoundation_debug_objsdir) + @$(RMDIR) $(PxFoundation_debug_bin) + @$(RMDIR) $(DEPSDIR)/PxFoundation/debug + +build_PxFoundation_debug: postbuild_PxFoundation_debug +postbuild_PxFoundation_debug: mainbuild_PxFoundation_debug +mainbuild_PxFoundation_debug: prebuild_PxFoundation_debug $(PxFoundation_debug_bin) +prebuild_PxFoundation_debug: + +$(PxFoundation_debug_bin): $(PxFoundation_debug_obj) + mkdir -p `dirname ./../../../bin/linux64/libPxFoundationDEBUG_x64.so` + $(CXX) -shared $(PxFoundation_debug_obj) $(PxFoundation_debug_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxFoundation_debug_DEPDIR = $(dir $(@))/$(*F) +$(PxFoundation_debug_cpp_o): $(PxFoundation_debug_objsdir)/%.o: + $(ECHO) PxFoundation: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cppfiles)))))) + cp $(PxFoundation_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + rm -f $(PxFoundation_debug_DEPDIR).d + +$(PxFoundation_debug_cc_o): $(PxFoundation_debug_objsdir)/%.o: + $(ECHO) PxFoundation: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_ccfiles)))))) + cp $(PxFoundation_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_ccfiles))))).debug.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_ccfiles))))).debug.P; \ + rm -f $(PxFoundation_debug_DEPDIR).d + +$(PxFoundation_debug_c_o): $(PxFoundation_debug_objsdir)/%.o: + $(ECHO) PxFoundation: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxFoundation_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cfiles)))))) + cp $(PxFoundation_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_debug_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + rm -f $(PxFoundation_debug_DEPDIR).d + +PxFoundation_release_hpaths := +PxFoundation_release_hpaths += ./../../../include +PxFoundation_release_hpaths += ./../../foundation/include +PxFoundation_release_hpaths += ./../../foundation/include/unix +PxFoundation_release_lpaths := +PxFoundation_release_defines := $(PxFoundation_custom_defines) +PxFoundation_release_defines += PX_FOUNDATION_DLL=1 +PxFoundation_release_defines += NDEBUG +PxFoundation_release_libraries := +PxFoundation_release_common_cflags := $(PxFoundation_custom_cflags) +PxFoundation_release_common_cflags += -MMD +PxFoundation_release_common_cflags += $(addprefix -D, $(PxFoundation_release_defines)) +PxFoundation_release_common_cflags += $(addprefix -I, $(PxFoundation_release_hpaths)) +PxFoundation_release_common_cflags += -m64 +PxFoundation_release_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxFoundation_release_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxFoundation_release_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxFoundation_release_common_cflags += -Wno-missing-field-initializers +PxFoundation_release_common_cflags += -O3 -fno-strict-aliasing +PxFoundation_release_cflags := $(PxFoundation_release_common_cflags) +PxFoundation_release_cppflags := $(PxFoundation_release_common_cflags) +PxFoundation_release_lflags := $(PxFoundation_custom_lflags) +PxFoundation_release_lflags += $(addprefix -L, $(PxFoundation_release_lpaths)) +PxFoundation_release_lflags += -Wl,--start-group $(addprefix -l, $(PxFoundation_release_libraries)) -Wl,--end-group +PxFoundation_release_lflags += -lrt +PxFoundation_release_lflags += -m64 +PxFoundation_release_objsdir = $(OBJS_DIR)/PxFoundation_release +PxFoundation_release_cpp_o = $(addprefix $(PxFoundation_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxFoundation_cppfiles))))) +PxFoundation_release_cc_o = $(addprefix $(PxFoundation_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxFoundation_ccfiles))))) +PxFoundation_release_c_o = $(addprefix $(PxFoundation_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxFoundation_cfiles))))) +PxFoundation_release_obj = $(PxFoundation_release_cpp_o) $(PxFoundation_release_cc_o) $(PxFoundation_release_c_o) +PxFoundation_release_bin := ./../../../bin/linux64/libPxFoundation_x64.so + +clean_PxFoundation_release: + @$(ECHO) clean PxFoundation release + @$(RMDIR) $(PxFoundation_release_objsdir) + @$(RMDIR) $(PxFoundation_release_bin) + @$(RMDIR) $(DEPSDIR)/PxFoundation/release + +build_PxFoundation_release: postbuild_PxFoundation_release +postbuild_PxFoundation_release: mainbuild_PxFoundation_release +mainbuild_PxFoundation_release: prebuild_PxFoundation_release $(PxFoundation_release_bin) +prebuild_PxFoundation_release: + +$(PxFoundation_release_bin): $(PxFoundation_release_obj) + mkdir -p `dirname ./../../../bin/linux64/libPxFoundation_x64.so` + $(CXX) -shared $(PxFoundation_release_obj) $(PxFoundation_release_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxFoundation_release_DEPDIR = $(dir $(@))/$(*F) +$(PxFoundation_release_cpp_o): $(PxFoundation_release_objsdir)/%.o: + $(ECHO) PxFoundation: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cppfiles)))))) + cp $(PxFoundation_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + rm -f $(PxFoundation_release_DEPDIR).d + +$(PxFoundation_release_cc_o): $(PxFoundation_release_objsdir)/%.o: + $(ECHO) PxFoundation: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_ccfiles)))))) + cp $(PxFoundation_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_ccfiles))))).release.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_ccfiles))))).release.P; \ + rm -f $(PxFoundation_release_DEPDIR).d + +$(PxFoundation_release_c_o): $(PxFoundation_release_objsdir)/%.o: + $(ECHO) PxFoundation: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxFoundation_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cfiles)))))) + cp $(PxFoundation_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_release_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + rm -f $(PxFoundation_release_DEPDIR).d + +PxFoundation_checked_hpaths := +PxFoundation_checked_hpaths += ./../../../include +PxFoundation_checked_hpaths += ./../../foundation/include +PxFoundation_checked_hpaths += ./../../foundation/include/unix +PxFoundation_checked_lpaths := +PxFoundation_checked_defines := $(PxFoundation_custom_defines) +PxFoundation_checked_defines += PX_FOUNDATION_DLL=1 +PxFoundation_checked_defines += NDEBUG +PxFoundation_checked_defines += PX_CHECKED=1 +PxFoundation_checked_libraries := +PxFoundation_checked_common_cflags := $(PxFoundation_custom_cflags) +PxFoundation_checked_common_cflags += -MMD +PxFoundation_checked_common_cflags += $(addprefix -D, $(PxFoundation_checked_defines)) +PxFoundation_checked_common_cflags += $(addprefix -I, $(PxFoundation_checked_hpaths)) +PxFoundation_checked_common_cflags += -m64 +PxFoundation_checked_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxFoundation_checked_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxFoundation_checked_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxFoundation_checked_common_cflags += -Wno-missing-field-initializers +PxFoundation_checked_common_cflags += -g3 -gdwarf-2 -O3 -fno-strict-aliasing +PxFoundation_checked_cflags := $(PxFoundation_checked_common_cflags) +PxFoundation_checked_cppflags := $(PxFoundation_checked_common_cflags) +PxFoundation_checked_lflags := $(PxFoundation_custom_lflags) +PxFoundation_checked_lflags += $(addprefix -L, $(PxFoundation_checked_lpaths)) +PxFoundation_checked_lflags += -Wl,--start-group $(addprefix -l, $(PxFoundation_checked_libraries)) -Wl,--end-group +PxFoundation_checked_lflags += -lrt +PxFoundation_checked_lflags += -m64 +PxFoundation_checked_objsdir = $(OBJS_DIR)/PxFoundation_checked +PxFoundation_checked_cpp_o = $(addprefix $(PxFoundation_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxFoundation_cppfiles))))) +PxFoundation_checked_cc_o = $(addprefix $(PxFoundation_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxFoundation_ccfiles))))) +PxFoundation_checked_c_o = $(addprefix $(PxFoundation_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxFoundation_cfiles))))) +PxFoundation_checked_obj = $(PxFoundation_checked_cpp_o) $(PxFoundation_checked_cc_o) $(PxFoundation_checked_c_o) +PxFoundation_checked_bin := ./../../../bin/linux64/libPxFoundationCHECKED_x64.so + +clean_PxFoundation_checked: + @$(ECHO) clean PxFoundation checked + @$(RMDIR) $(PxFoundation_checked_objsdir) + @$(RMDIR) $(PxFoundation_checked_bin) + @$(RMDIR) $(DEPSDIR)/PxFoundation/checked + +build_PxFoundation_checked: postbuild_PxFoundation_checked +postbuild_PxFoundation_checked: mainbuild_PxFoundation_checked +mainbuild_PxFoundation_checked: prebuild_PxFoundation_checked $(PxFoundation_checked_bin) +prebuild_PxFoundation_checked: + +$(PxFoundation_checked_bin): $(PxFoundation_checked_obj) + mkdir -p `dirname ./../../../bin/linux64/libPxFoundationCHECKED_x64.so` + $(CXX) -shared $(PxFoundation_checked_obj) $(PxFoundation_checked_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxFoundation_checked_DEPDIR = $(dir $(@))/$(*F) +$(PxFoundation_checked_cpp_o): $(PxFoundation_checked_objsdir)/%.o: + $(ECHO) PxFoundation: compiling checked $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_checked_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cppfiles)))))) + cp $(PxFoundation_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + rm -f $(PxFoundation_checked_DEPDIR).d + +$(PxFoundation_checked_cc_o): $(PxFoundation_checked_objsdir)/%.o: + $(ECHO) PxFoundation: compiling checked $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_checked_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_ccfiles)))))) + cp $(PxFoundation_checked_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_ccfiles))))).checked.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_ccfiles))))).checked.P; \ + rm -f $(PxFoundation_checked_DEPDIR).d + +$(PxFoundation_checked_c_o): $(PxFoundation_checked_objsdir)/%.o: + $(ECHO) PxFoundation: compiling checked $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxFoundation_checked_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cfiles)))))) + cp $(PxFoundation_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_checked_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + rm -f $(PxFoundation_checked_DEPDIR).d + +PxFoundation_profile_hpaths := +PxFoundation_profile_hpaths += ./../../../include +PxFoundation_profile_hpaths += ./../../foundation/include +PxFoundation_profile_hpaths += ./../../foundation/include/unix +PxFoundation_profile_lpaths := +PxFoundation_profile_defines := $(PxFoundation_custom_defines) +PxFoundation_profile_defines += PX_FOUNDATION_DLL=1 +PxFoundation_profile_defines += NDEBUG +PxFoundation_profile_defines += PX_PROFILE=1 +PxFoundation_profile_libraries := +PxFoundation_profile_common_cflags := $(PxFoundation_custom_cflags) +PxFoundation_profile_common_cflags += -MMD +PxFoundation_profile_common_cflags += $(addprefix -D, $(PxFoundation_profile_defines)) +PxFoundation_profile_common_cflags += $(addprefix -I, $(PxFoundation_profile_hpaths)) +PxFoundation_profile_common_cflags += -m64 +PxFoundation_profile_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxFoundation_profile_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxFoundation_profile_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxFoundation_profile_common_cflags += -Wno-missing-field-initializers +PxFoundation_profile_common_cflags += -O3 -fno-strict-aliasing +PxFoundation_profile_cflags := $(PxFoundation_profile_common_cflags) +PxFoundation_profile_cppflags := $(PxFoundation_profile_common_cflags) +PxFoundation_profile_lflags := $(PxFoundation_custom_lflags) +PxFoundation_profile_lflags += $(addprefix -L, $(PxFoundation_profile_lpaths)) +PxFoundation_profile_lflags += -Wl,--start-group $(addprefix -l, $(PxFoundation_profile_libraries)) -Wl,--end-group +PxFoundation_profile_lflags += -lrt +PxFoundation_profile_lflags += -m64 +PxFoundation_profile_objsdir = $(OBJS_DIR)/PxFoundation_profile +PxFoundation_profile_cpp_o = $(addprefix $(PxFoundation_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxFoundation_cppfiles))))) +PxFoundation_profile_cc_o = $(addprefix $(PxFoundation_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxFoundation_ccfiles))))) +PxFoundation_profile_c_o = $(addprefix $(PxFoundation_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxFoundation_cfiles))))) +PxFoundation_profile_obj = $(PxFoundation_profile_cpp_o) $(PxFoundation_profile_cc_o) $(PxFoundation_profile_c_o) +PxFoundation_profile_bin := ./../../../bin/linux64/libPxFoundationPROFILE_x64.so + +clean_PxFoundation_profile: + @$(ECHO) clean PxFoundation profile + @$(RMDIR) $(PxFoundation_profile_objsdir) + @$(RMDIR) $(PxFoundation_profile_bin) + @$(RMDIR) $(DEPSDIR)/PxFoundation/profile + +build_PxFoundation_profile: postbuild_PxFoundation_profile +postbuild_PxFoundation_profile: mainbuild_PxFoundation_profile +mainbuild_PxFoundation_profile: prebuild_PxFoundation_profile $(PxFoundation_profile_bin) +prebuild_PxFoundation_profile: + +$(PxFoundation_profile_bin): $(PxFoundation_profile_obj) + mkdir -p `dirname ./../../../bin/linux64/libPxFoundationPROFILE_x64.so` + $(CXX) -shared $(PxFoundation_profile_obj) $(PxFoundation_profile_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxFoundation_profile_DEPDIR = $(dir $(@))/$(*F) +$(PxFoundation_profile_cpp_o): $(PxFoundation_profile_objsdir)/%.o: + $(ECHO) PxFoundation: compiling profile $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_profile_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cppfiles)))))) + cp $(PxFoundation_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cppfiles))))).P; \ + rm -f $(PxFoundation_profile_DEPDIR).d + +$(PxFoundation_profile_cc_o): $(PxFoundation_profile_objsdir)/%.o: + $(ECHO) PxFoundation: compiling profile $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxFoundation_profile_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_ccfiles)))))) + cp $(PxFoundation_profile_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_ccfiles))))).profile.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_ccfiles))))).profile.P; \ + rm -f $(PxFoundation_profile_DEPDIR).d + +$(PxFoundation_profile_c_o): $(PxFoundation_profile_objsdir)/%.o: + $(ECHO) PxFoundation: compiling profile $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxFoundation_profile_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cfiles)))))) + cp $(PxFoundation_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxFoundation_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxFoundation/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxFoundation_profile_objsdir),, $@))), $(PxFoundation_cfiles))))).P; \ + rm -f $(PxFoundation_profile_DEPDIR).d + +clean_PxFoundation: clean_PxFoundation_debug clean_PxFoundation_release clean_PxFoundation_checked clean_PxFoundation_profile + rm -rf $(DEPSDIR) + +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux64/Makefile.PxPvdSDK.mk b/PxShared/src/compiler/linux64/Makefile.PxPvdSDK.mk new file mode 100644 index 0000000..75bf7d3 --- /dev/null +++ b/PxShared/src/compiler/linux64/Makefile.PxPvdSDK.mk @@ -0,0 +1,386 @@ +# Makefile generated by XPJ for linux64 +-include Makefile.custom +ProjectName = PxPvdSDK +PxPvdSDK_cppfiles += ./../../pvd/src/PxProfileEventImpl.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvd.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdDataStream.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdDefaultFileTransport.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdDefaultSocketTransport.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdImpl.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdMemClient.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdObjectModelMetaData.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdObjectRegistrar.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdProfileZoneClient.cpp +PxPvdSDK_cppfiles += ./../../pvd/src/PxPvdUserRenderer.cpp + +PxPvdSDK_cpp_debug_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_cc_debug_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_c_debug_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxPvdSDK_cfiles))))) +PxPvdSDK_debug_dep = $(PxPvdSDK_cpp_debug_dep) $(PxPvdSDK_cc_debug_dep) $(PxPvdSDK_c_debug_dep) +-include $(PxPvdSDK_debug_dep) +PxPvdSDK_cpp_release_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_cc_release_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_c_release_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxPvdSDK_cfiles))))) +PxPvdSDK_release_dep = $(PxPvdSDK_cpp_release_dep) $(PxPvdSDK_cc_release_dep) $(PxPvdSDK_c_release_dep) +-include $(PxPvdSDK_release_dep) +PxPvdSDK_cpp_checked_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_cc_checked_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.checked.P, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_c_checked_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxPvdSDK_cfiles))))) +PxPvdSDK_checked_dep = $(PxPvdSDK_cpp_checked_dep) $(PxPvdSDK_cc_checked_dep) $(PxPvdSDK_c_checked_dep) +-include $(PxPvdSDK_checked_dep) +PxPvdSDK_cpp_profile_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_cc_profile_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.profile.P, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_c_profile_dep = $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxPvdSDK_cfiles))))) +PxPvdSDK_profile_dep = $(PxPvdSDK_cpp_profile_dep) $(PxPvdSDK_cc_profile_dep) $(PxPvdSDK_c_profile_dep) +-include $(PxPvdSDK_profile_dep) +PxPvdSDK_debug_hpaths := +PxPvdSDK_debug_hpaths += ./../../../include +PxPvdSDK_debug_hpaths += ./../../pvd/include +PxPvdSDK_debug_hpaths += ./../../foundation/include +PxPvdSDK_debug_hpaths += ./../../filebuf/include +PxPvdSDK_debug_hpaths += ./../../../../../../externals/nvToolsExt/1/include +PxPvdSDK_debug_lpaths := +PxPvdSDK_debug_lpaths += ./../../../bin/linux64 +PxPvdSDK_debug_defines := $(PxPvdSDK_custom_defines) +PxPvdSDK_debug_defines += PX_PVDSDK_DLL=1 +PxPvdSDK_debug_defines += PX_FOUNDATION_DLL=1 +PxPvdSDK_debug_defines += _DEBUG +PxPvdSDK_debug_defines += PX_DEBUG=1 +PxPvdSDK_debug_defines += PX_CHECKED=1 +PxPvdSDK_debug_libraries := +PxPvdSDK_debug_libraries += PxFoundationDEBUG_x64 +PxPvdSDK_debug_common_cflags := $(PxPvdSDK_custom_cflags) +PxPvdSDK_debug_common_cflags += -MMD +PxPvdSDK_debug_common_cflags += $(addprefix -D, $(PxPvdSDK_debug_defines)) +PxPvdSDK_debug_common_cflags += $(addprefix -I, $(PxPvdSDK_debug_hpaths)) +PxPvdSDK_debug_common_cflags += -m64 +PxPvdSDK_debug_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxPvdSDK_debug_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxPvdSDK_debug_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxPvdSDK_debug_common_cflags += -Wno-missing-field-initializers +PxPvdSDK_debug_common_cflags += -g3 -gdwarf-2 +PxPvdSDK_debug_cflags := $(PxPvdSDK_debug_common_cflags) +PxPvdSDK_debug_cppflags := $(PxPvdSDK_debug_common_cflags) +PxPvdSDK_debug_lflags := $(PxPvdSDK_custom_lflags) +PxPvdSDK_debug_lflags += $(addprefix -L, $(PxPvdSDK_debug_lpaths)) +PxPvdSDK_debug_lflags += -Wl,--start-group $(addprefix -l, $(PxPvdSDK_debug_libraries)) -Wl,--end-group +PxPvdSDK_debug_lflags += -lrt +PxPvdSDK_debug_lflags += -m64 +PxPvdSDK_debug_objsdir = $(OBJS_DIR)/PxPvdSDK_debug +PxPvdSDK_debug_cpp_o = $(addprefix $(PxPvdSDK_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_debug_cc_o = $(addprefix $(PxPvdSDK_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_debug_c_o = $(addprefix $(PxPvdSDK_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxPvdSDK_cfiles))))) +PxPvdSDK_debug_obj = $(PxPvdSDK_debug_cpp_o) $(PxPvdSDK_debug_cc_o) $(PxPvdSDK_debug_c_o) +PxPvdSDK_debug_bin := ./../../../bin/linux64/libPxPvdSDKDEBUG_x64.so + +clean_PxPvdSDK_debug: + @$(ECHO) clean PxPvdSDK debug + @$(RMDIR) $(PxPvdSDK_debug_objsdir) + @$(RMDIR) $(PxPvdSDK_debug_bin) + @$(RMDIR) $(DEPSDIR)/PxPvdSDK/debug + +build_PxPvdSDK_debug: postbuild_PxPvdSDK_debug +postbuild_PxPvdSDK_debug: mainbuild_PxPvdSDK_debug +mainbuild_PxPvdSDK_debug: prebuild_PxPvdSDK_debug $(PxPvdSDK_debug_bin) +prebuild_PxPvdSDK_debug: + +$(PxPvdSDK_debug_bin): $(PxPvdSDK_debug_obj) build_PxFoundation_debug + mkdir -p `dirname ./../../../bin/linux64/libPxPvdSDKDEBUG_x64.so` + $(CXX) -shared $(PxPvdSDK_debug_obj) $(PxPvdSDK_debug_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxPvdSDK_debug_DEPDIR = $(dir $(@))/$(*F) +$(PxPvdSDK_debug_cpp_o): $(PxPvdSDK_debug_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cppfiles)))))) + cp $(PxPvdSDK_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + rm -f $(PxPvdSDK_debug_DEPDIR).d + +$(PxPvdSDK_debug_cc_o): $(PxPvdSDK_debug_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_ccfiles)))))) + cp $(PxPvdSDK_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).debug.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).debug.P; \ + rm -f $(PxPvdSDK_debug_DEPDIR).d + +$(PxPvdSDK_debug_c_o): $(PxPvdSDK_debug_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxPvdSDK_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cfiles)))))) + cp $(PxPvdSDK_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_debug_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + rm -f $(PxPvdSDK_debug_DEPDIR).d + +PxPvdSDK_release_hpaths := +PxPvdSDK_release_hpaths += ./../../../include +PxPvdSDK_release_hpaths += ./../../pvd/include +PxPvdSDK_release_hpaths += ./../../foundation/include +PxPvdSDK_release_hpaths += ./../../filebuf/include +PxPvdSDK_release_hpaths += ./../../../../../../externals/nvToolsExt/1/include +PxPvdSDK_release_lpaths := +PxPvdSDK_release_lpaths += ./../../../bin/linux64 +PxPvdSDK_release_defines := $(PxPvdSDK_custom_defines) +PxPvdSDK_release_defines += PX_PVDSDK_DLL=1 +PxPvdSDK_release_defines += PX_FOUNDATION_DLL=1 +PxPvdSDK_release_defines += NDEBUG +PxPvdSDK_release_libraries := +PxPvdSDK_release_libraries += PxFoundation_x64 +PxPvdSDK_release_common_cflags := $(PxPvdSDK_custom_cflags) +PxPvdSDK_release_common_cflags += -MMD +PxPvdSDK_release_common_cflags += $(addprefix -D, $(PxPvdSDK_release_defines)) +PxPvdSDK_release_common_cflags += $(addprefix -I, $(PxPvdSDK_release_hpaths)) +PxPvdSDK_release_common_cflags += -m64 +PxPvdSDK_release_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxPvdSDK_release_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxPvdSDK_release_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxPvdSDK_release_common_cflags += -Wno-missing-field-initializers +PxPvdSDK_release_common_cflags += -O3 -fno-strict-aliasing +PxPvdSDK_release_cflags := $(PxPvdSDK_release_common_cflags) +PxPvdSDK_release_cppflags := $(PxPvdSDK_release_common_cflags) +PxPvdSDK_release_lflags := $(PxPvdSDK_custom_lflags) +PxPvdSDK_release_lflags += $(addprefix -L, $(PxPvdSDK_release_lpaths)) +PxPvdSDK_release_lflags += -Wl,--start-group $(addprefix -l, $(PxPvdSDK_release_libraries)) -Wl,--end-group +PxPvdSDK_release_lflags += -lrt +PxPvdSDK_release_lflags += -m64 +PxPvdSDK_release_objsdir = $(OBJS_DIR)/PxPvdSDK_release +PxPvdSDK_release_cpp_o = $(addprefix $(PxPvdSDK_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_release_cc_o = $(addprefix $(PxPvdSDK_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_release_c_o = $(addprefix $(PxPvdSDK_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxPvdSDK_cfiles))))) +PxPvdSDK_release_obj = $(PxPvdSDK_release_cpp_o) $(PxPvdSDK_release_cc_o) $(PxPvdSDK_release_c_o) +PxPvdSDK_release_bin := ./../../../bin/linux64/libPxPvdSDK_x64.so + +clean_PxPvdSDK_release: + @$(ECHO) clean PxPvdSDK release + @$(RMDIR) $(PxPvdSDK_release_objsdir) + @$(RMDIR) $(PxPvdSDK_release_bin) + @$(RMDIR) $(DEPSDIR)/PxPvdSDK/release + +build_PxPvdSDK_release: postbuild_PxPvdSDK_release +postbuild_PxPvdSDK_release: mainbuild_PxPvdSDK_release +mainbuild_PxPvdSDK_release: prebuild_PxPvdSDK_release $(PxPvdSDK_release_bin) +prebuild_PxPvdSDK_release: + +$(PxPvdSDK_release_bin): $(PxPvdSDK_release_obj) build_PxFoundation_release + mkdir -p `dirname ./../../../bin/linux64/libPxPvdSDK_x64.so` + $(CXX) -shared $(PxPvdSDK_release_obj) $(PxPvdSDK_release_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxPvdSDK_release_DEPDIR = $(dir $(@))/$(*F) +$(PxPvdSDK_release_cpp_o): $(PxPvdSDK_release_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cppfiles)))))) + cp $(PxPvdSDK_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + rm -f $(PxPvdSDK_release_DEPDIR).d + +$(PxPvdSDK_release_cc_o): $(PxPvdSDK_release_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_ccfiles)))))) + cp $(PxPvdSDK_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).release.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).release.P; \ + rm -f $(PxPvdSDK_release_DEPDIR).d + +$(PxPvdSDK_release_c_o): $(PxPvdSDK_release_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxPvdSDK_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cfiles)))))) + cp $(PxPvdSDK_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_release_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + rm -f $(PxPvdSDK_release_DEPDIR).d + +PxPvdSDK_checked_hpaths := +PxPvdSDK_checked_hpaths += ./../../../include +PxPvdSDK_checked_hpaths += ./../../pvd/include +PxPvdSDK_checked_hpaths += ./../../foundation/include +PxPvdSDK_checked_hpaths += ./../../filebuf/include +PxPvdSDK_checked_hpaths += ./../../../../../../externals/nvToolsExt/1/include +PxPvdSDK_checked_lpaths := +PxPvdSDK_checked_lpaths += ./../../../bin/linux64 +PxPvdSDK_checked_defines := $(PxPvdSDK_custom_defines) +PxPvdSDK_checked_defines += PX_PVDSDK_DLL=1 +PxPvdSDK_checked_defines += PX_FOUNDATION_DLL=1 +PxPvdSDK_checked_defines += NDEBUG +PxPvdSDK_checked_defines += PX_CHECKED=1 +PxPvdSDK_checked_libraries := +PxPvdSDK_checked_libraries += PxFoundationCHECKED_x64 +PxPvdSDK_checked_common_cflags := $(PxPvdSDK_custom_cflags) +PxPvdSDK_checked_common_cflags += -MMD +PxPvdSDK_checked_common_cflags += $(addprefix -D, $(PxPvdSDK_checked_defines)) +PxPvdSDK_checked_common_cflags += $(addprefix -I, $(PxPvdSDK_checked_hpaths)) +PxPvdSDK_checked_common_cflags += -m64 +PxPvdSDK_checked_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxPvdSDK_checked_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxPvdSDK_checked_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxPvdSDK_checked_common_cflags += -Wno-missing-field-initializers +PxPvdSDK_checked_common_cflags += -g3 -gdwarf-2 -O3 -fno-strict-aliasing +PxPvdSDK_checked_cflags := $(PxPvdSDK_checked_common_cflags) +PxPvdSDK_checked_cppflags := $(PxPvdSDK_checked_common_cflags) +PxPvdSDK_checked_lflags := $(PxPvdSDK_custom_lflags) +PxPvdSDK_checked_lflags += $(addprefix -L, $(PxPvdSDK_checked_lpaths)) +PxPvdSDK_checked_lflags += -Wl,--start-group $(addprefix -l, $(PxPvdSDK_checked_libraries)) -Wl,--end-group +PxPvdSDK_checked_lflags += -lrt +PxPvdSDK_checked_lflags += -m64 +PxPvdSDK_checked_objsdir = $(OBJS_DIR)/PxPvdSDK_checked +PxPvdSDK_checked_cpp_o = $(addprefix $(PxPvdSDK_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_checked_cc_o = $(addprefix $(PxPvdSDK_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_checked_c_o = $(addprefix $(PxPvdSDK_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxPvdSDK_cfiles))))) +PxPvdSDK_checked_obj = $(PxPvdSDK_checked_cpp_o) $(PxPvdSDK_checked_cc_o) $(PxPvdSDK_checked_c_o) +PxPvdSDK_checked_bin := ./../../../bin/linux64/libPxPvdSDKCHECKED_x64.so + +clean_PxPvdSDK_checked: + @$(ECHO) clean PxPvdSDK checked + @$(RMDIR) $(PxPvdSDK_checked_objsdir) + @$(RMDIR) $(PxPvdSDK_checked_bin) + @$(RMDIR) $(DEPSDIR)/PxPvdSDK/checked + +build_PxPvdSDK_checked: postbuild_PxPvdSDK_checked +postbuild_PxPvdSDK_checked: mainbuild_PxPvdSDK_checked +mainbuild_PxPvdSDK_checked: prebuild_PxPvdSDK_checked $(PxPvdSDK_checked_bin) +prebuild_PxPvdSDK_checked: + +$(PxPvdSDK_checked_bin): $(PxPvdSDK_checked_obj) build_PxFoundation_checked + mkdir -p `dirname ./../../../bin/linux64/libPxPvdSDKCHECKED_x64.so` + $(CXX) -shared $(PxPvdSDK_checked_obj) $(PxPvdSDK_checked_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxPvdSDK_checked_DEPDIR = $(dir $(@))/$(*F) +$(PxPvdSDK_checked_cpp_o): $(PxPvdSDK_checked_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling checked $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_checked_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cppfiles)))))) + cp $(PxPvdSDK_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + rm -f $(PxPvdSDK_checked_DEPDIR).d + +$(PxPvdSDK_checked_cc_o): $(PxPvdSDK_checked_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling checked $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_checked_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_ccfiles)))))) + cp $(PxPvdSDK_checked_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).checked.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).checked.P; \ + rm -f $(PxPvdSDK_checked_DEPDIR).d + +$(PxPvdSDK_checked_c_o): $(PxPvdSDK_checked_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling checked $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxPvdSDK_checked_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cfiles)))))) + cp $(PxPvdSDK_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_checked_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + rm -f $(PxPvdSDK_checked_DEPDIR).d + +PxPvdSDK_profile_hpaths := +PxPvdSDK_profile_hpaths += ./../../../include +PxPvdSDK_profile_hpaths += ./../../pvd/include +PxPvdSDK_profile_hpaths += ./../../foundation/include +PxPvdSDK_profile_hpaths += ./../../filebuf/include +PxPvdSDK_profile_hpaths += ./../../../../../../externals/nvToolsExt/1/include +PxPvdSDK_profile_lpaths := +PxPvdSDK_profile_lpaths += ./../../../bin/linux64 +PxPvdSDK_profile_defines := $(PxPvdSDK_custom_defines) +PxPvdSDK_profile_defines += PX_PVDSDK_DLL=1 +PxPvdSDK_profile_defines += PX_FOUNDATION_DLL=1 +PxPvdSDK_profile_defines += NDEBUG +PxPvdSDK_profile_defines += PX_PROFILE=1 +PxPvdSDK_profile_libraries := +PxPvdSDK_profile_libraries += PxFoundationPROFILE_x64 +PxPvdSDK_profile_common_cflags := $(PxPvdSDK_custom_cflags) +PxPvdSDK_profile_common_cflags += -MMD +PxPvdSDK_profile_common_cflags += $(addprefix -D, $(PxPvdSDK_profile_defines)) +PxPvdSDK_profile_common_cflags += $(addprefix -I, $(PxPvdSDK_profile_hpaths)) +PxPvdSDK_profile_common_cflags += -m64 +PxPvdSDK_profile_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxPvdSDK_profile_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxPvdSDK_profile_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxPvdSDK_profile_common_cflags += -Wno-missing-field-initializers +PxPvdSDK_profile_common_cflags += -O3 -fno-strict-aliasing +PxPvdSDK_profile_cflags := $(PxPvdSDK_profile_common_cflags) +PxPvdSDK_profile_cppflags := $(PxPvdSDK_profile_common_cflags) +PxPvdSDK_profile_lflags := $(PxPvdSDK_custom_lflags) +PxPvdSDK_profile_lflags += $(addprefix -L, $(PxPvdSDK_profile_lpaths)) +PxPvdSDK_profile_lflags += -Wl,--start-group $(addprefix -l, $(PxPvdSDK_profile_libraries)) -Wl,--end-group +PxPvdSDK_profile_lflags += -lrt +PxPvdSDK_profile_lflags += -m64 +PxPvdSDK_profile_objsdir = $(OBJS_DIR)/PxPvdSDK_profile +PxPvdSDK_profile_cpp_o = $(addprefix $(PxPvdSDK_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxPvdSDK_cppfiles))))) +PxPvdSDK_profile_cc_o = $(addprefix $(PxPvdSDK_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxPvdSDK_ccfiles))))) +PxPvdSDK_profile_c_o = $(addprefix $(PxPvdSDK_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxPvdSDK_cfiles))))) +PxPvdSDK_profile_obj = $(PxPvdSDK_profile_cpp_o) $(PxPvdSDK_profile_cc_o) $(PxPvdSDK_profile_c_o) +PxPvdSDK_profile_bin := ./../../../bin/linux64/libPxPvdSDKPROFILE_x64.so + +clean_PxPvdSDK_profile: + @$(ECHO) clean PxPvdSDK profile + @$(RMDIR) $(PxPvdSDK_profile_objsdir) + @$(RMDIR) $(PxPvdSDK_profile_bin) + @$(RMDIR) $(DEPSDIR)/PxPvdSDK/profile + +build_PxPvdSDK_profile: postbuild_PxPvdSDK_profile +postbuild_PxPvdSDK_profile: mainbuild_PxPvdSDK_profile +mainbuild_PxPvdSDK_profile: prebuild_PxPvdSDK_profile $(PxPvdSDK_profile_bin) +prebuild_PxPvdSDK_profile: + +$(PxPvdSDK_profile_bin): $(PxPvdSDK_profile_obj) build_PxFoundation_profile + mkdir -p `dirname ./../../../bin/linux64/libPxPvdSDKPROFILE_x64.so` + $(CXX) -shared $(PxPvdSDK_profile_obj) $(PxPvdSDK_profile_lflags) -lc -o $@ + $(ECHO) building $@ complete! + +PxPvdSDK_profile_DEPDIR = $(dir $(@))/$(*F) +$(PxPvdSDK_profile_cpp_o): $(PxPvdSDK_profile_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling profile $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_profile_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cppfiles)))))) + cp $(PxPvdSDK_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cppfiles))))).P; \ + rm -f $(PxPvdSDK_profile_DEPDIR).d + +$(PxPvdSDK_profile_cc_o): $(PxPvdSDK_profile_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling profile $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxPvdSDK_profile_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_ccfiles)))))) + cp $(PxPvdSDK_profile_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).profile.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_ccfiles))))).profile.P; \ + rm -f $(PxPvdSDK_profile_DEPDIR).d + +$(PxPvdSDK_profile_c_o): $(PxPvdSDK_profile_objsdir)/%.o: + $(ECHO) PxPvdSDK: compiling profile $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxPvdSDK_profile_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cfiles)))))) + cp $(PxPvdSDK_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxPvdSDK_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxPvdSDK/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxPvdSDK_profile_objsdir),, $@))), $(PxPvdSDK_cfiles))))).P; \ + rm -f $(PxPvdSDK_profile_DEPDIR).d + +clean_PxPvdSDK: clean_PxPvdSDK_debug clean_PxPvdSDK_release clean_PxPvdSDK_checked clean_PxPvdSDK_profile + rm -rf $(DEPSDIR) + +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/compiler/linux64/Makefile.PxTask.mk b/PxShared/src/compiler/linux64/Makefile.PxTask.mk new file mode 100644 index 0000000..ab35d83 --- /dev/null +++ b/PxShared/src/compiler/linux64/Makefile.PxTask.mk @@ -0,0 +1,352 @@ +# Makefile generated by XPJ for linux64 +-include Makefile.custom +ProjectName = PxTask +PxTask_cppfiles += ./../../task/src/TaskManager.cpp + +PxTask_cpp_debug_dep = $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxTask_cppfiles))))) +PxTask_cc_debug_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(PxTask_ccfiles))))) +PxTask_c_debug_dep = $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxTask_cfiles))))) +PxTask_debug_dep = $(PxTask_cpp_debug_dep) $(PxTask_cc_debug_dep) $(PxTask_c_debug_dep) +-include $(PxTask_debug_dep) +PxTask_cpp_release_dep = $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxTask_cppfiles))))) +PxTask_cc_release_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(PxTask_ccfiles))))) +PxTask_c_release_dep = $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxTask_cfiles))))) +PxTask_release_dep = $(PxTask_cpp_release_dep) $(PxTask_cc_release_dep) $(PxTask_c_release_dep) +-include $(PxTask_release_dep) +PxTask_cpp_checked_dep = $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxTask_cppfiles))))) +PxTask_cc_checked_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.checked.P, $(PxTask_ccfiles))))) +PxTask_c_checked_dep = $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxTask_cfiles))))) +PxTask_checked_dep = $(PxTask_cpp_checked_dep) $(PxTask_cc_checked_dep) $(PxTask_c_checked_dep) +-include $(PxTask_checked_dep) +PxTask_cpp_profile_dep = $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.P, $(PxTask_cppfiles))))) +PxTask_cc_profile_dep = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.profile.P, $(PxTask_ccfiles))))) +PxTask_c_profile_dep = $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.P, $(PxTask_cfiles))))) +PxTask_profile_dep = $(PxTask_cpp_profile_dep) $(PxTask_cc_profile_dep) $(PxTask_c_profile_dep) +-include $(PxTask_profile_dep) +PxTask_debug_hpaths := +PxTask_debug_hpaths += ./../../../include +PxTask_debug_hpaths += ./../../task/include +PxTask_debug_hpaths += ./../../foundation/include +PxTask_debug_lpaths := +PxTask_debug_defines := $(PxTask_custom_defines) +PxTask_debug_defines += _DEBUG +PxTask_debug_defines += PX_DEBUG=1 +PxTask_debug_defines += PX_CHECKED=1 +PxTask_debug_libraries := +PxTask_debug_common_cflags := $(PxTask_custom_cflags) +PxTask_debug_common_cflags += -MMD +PxTask_debug_common_cflags += $(addprefix -D, $(PxTask_debug_defines)) +PxTask_debug_common_cflags += $(addprefix -I, $(PxTask_debug_hpaths)) +PxTask_debug_common_cflags += -m64 +PxTask_debug_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxTask_debug_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxTask_debug_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxTask_debug_common_cflags += -Wno-missing-field-initializers +PxTask_debug_common_cflags += -g3 -gdwarf-2 +PxTask_debug_cflags := $(PxTask_debug_common_cflags) +PxTask_debug_cppflags := $(PxTask_debug_common_cflags) +PxTask_debug_lflags := $(PxTask_custom_lflags) +PxTask_debug_lflags += $(addprefix -L, $(PxTask_debug_lpaths)) +PxTask_debug_lflags += -Wl,--start-group $(addprefix -l, $(PxTask_debug_libraries)) -Wl,--end-group +PxTask_debug_lflags += -lrt +PxTask_debug_lflags += -m64 +PxTask_debug_objsdir = $(OBJS_DIR)/PxTask_debug +PxTask_debug_cpp_o = $(addprefix $(PxTask_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxTask_cppfiles))))) +PxTask_debug_cc_o = $(addprefix $(PxTask_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxTask_ccfiles))))) +PxTask_debug_c_o = $(addprefix $(PxTask_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxTask_cfiles))))) +PxTask_debug_obj = $(PxTask_debug_cpp_o) $(PxTask_debug_cc_o) $(PxTask_debug_c_o) +PxTask_debug_bin := ./../../../lib/linux64/libPxTaskDEBUG.a + +clean_PxTask_debug: + @$(ECHO) clean PxTask debug + @$(RMDIR) $(PxTask_debug_objsdir) + @$(RMDIR) $(PxTask_debug_bin) + @$(RMDIR) $(DEPSDIR)/PxTask/debug + +build_PxTask_debug: postbuild_PxTask_debug +postbuild_PxTask_debug: mainbuild_PxTask_debug +mainbuild_PxTask_debug: prebuild_PxTask_debug $(PxTask_debug_bin) +prebuild_PxTask_debug: + +$(PxTask_debug_bin): $(PxTask_debug_obj) + mkdir -p `dirname ./../../../lib/linux64/libPxTaskDEBUG.a` + @$(AR) rcs $(PxTask_debug_bin) $(PxTask_debug_obj) + $(ECHO) building $@ complete! + +PxTask_debug_DEPDIR = $(dir $(@))/$(*F) +$(PxTask_debug_cpp_o): $(PxTask_debug_objsdir)/%.o: + $(ECHO) PxTask: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cppfiles)))))) + cp $(PxTask_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + rm -f $(PxTask_debug_DEPDIR).d + +$(PxTask_debug_cc_o): $(PxTask_debug_objsdir)/%.o: + $(ECHO) PxTask: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_ccfiles)))))) + cp $(PxTask_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_ccfiles))))).debug.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_ccfiles))))).debug.P; \ + rm -f $(PxTask_debug_DEPDIR).d + +$(PxTask_debug_c_o): $(PxTask_debug_objsdir)/%.o: + $(ECHO) PxTask: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxTask_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cfiles)))))) + cp $(PxTask_debug_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/debug/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_debug_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + rm -f $(PxTask_debug_DEPDIR).d + +PxTask_release_hpaths := +PxTask_release_hpaths += ./../../../include +PxTask_release_hpaths += ./../../task/include +PxTask_release_hpaths += ./../../foundation/include +PxTask_release_lpaths := +PxTask_release_defines := $(PxTask_custom_defines) +PxTask_release_defines += NDEBUG +PxTask_release_libraries := +PxTask_release_common_cflags := $(PxTask_custom_cflags) +PxTask_release_common_cflags += -MMD +PxTask_release_common_cflags += $(addprefix -D, $(PxTask_release_defines)) +PxTask_release_common_cflags += $(addprefix -I, $(PxTask_release_hpaths)) +PxTask_release_common_cflags += -m64 +PxTask_release_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxTask_release_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxTask_release_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxTask_release_common_cflags += -Wno-missing-field-initializers +PxTask_release_common_cflags += -O3 -fno-strict-aliasing +PxTask_release_cflags := $(PxTask_release_common_cflags) +PxTask_release_cppflags := $(PxTask_release_common_cflags) +PxTask_release_lflags := $(PxTask_custom_lflags) +PxTask_release_lflags += $(addprefix -L, $(PxTask_release_lpaths)) +PxTask_release_lflags += -Wl,--start-group $(addprefix -l, $(PxTask_release_libraries)) -Wl,--end-group +PxTask_release_lflags += -lrt +PxTask_release_lflags += -m64 +PxTask_release_objsdir = $(OBJS_DIR)/PxTask_release +PxTask_release_cpp_o = $(addprefix $(PxTask_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxTask_cppfiles))))) +PxTask_release_cc_o = $(addprefix $(PxTask_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxTask_ccfiles))))) +PxTask_release_c_o = $(addprefix $(PxTask_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxTask_cfiles))))) +PxTask_release_obj = $(PxTask_release_cpp_o) $(PxTask_release_cc_o) $(PxTask_release_c_o) +PxTask_release_bin := ./../../../lib/linux64/libPxTask.a + +clean_PxTask_release: + @$(ECHO) clean PxTask release + @$(RMDIR) $(PxTask_release_objsdir) + @$(RMDIR) $(PxTask_release_bin) + @$(RMDIR) $(DEPSDIR)/PxTask/release + +build_PxTask_release: postbuild_PxTask_release +postbuild_PxTask_release: mainbuild_PxTask_release +mainbuild_PxTask_release: prebuild_PxTask_release $(PxTask_release_bin) +prebuild_PxTask_release: + +$(PxTask_release_bin): $(PxTask_release_obj) + mkdir -p `dirname ./../../../lib/linux64/libPxTask.a` + @$(AR) rcs $(PxTask_release_bin) $(PxTask_release_obj) + $(ECHO) building $@ complete! + +PxTask_release_DEPDIR = $(dir $(@))/$(*F) +$(PxTask_release_cpp_o): $(PxTask_release_objsdir)/%.o: + $(ECHO) PxTask: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cppfiles)))))) + cp $(PxTask_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + rm -f $(PxTask_release_DEPDIR).d + +$(PxTask_release_cc_o): $(PxTask_release_objsdir)/%.o: + $(ECHO) PxTask: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_ccfiles)))))) + cp $(PxTask_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_ccfiles))))).release.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_ccfiles))))).release.P; \ + rm -f $(PxTask_release_DEPDIR).d + +$(PxTask_release_c_o): $(PxTask_release_objsdir)/%.o: + $(ECHO) PxTask: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxTask_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cfiles)))))) + cp $(PxTask_release_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/release/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_release_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + rm -f $(PxTask_release_DEPDIR).d + +PxTask_checked_hpaths := +PxTask_checked_hpaths += ./../../../include +PxTask_checked_hpaths += ./../../task/include +PxTask_checked_hpaths += ./../../foundation/include +PxTask_checked_lpaths := +PxTask_checked_defines := $(PxTask_custom_defines) +PxTask_checked_defines += NDEBUG +PxTask_checked_defines += PX_CHECKED=1 +PxTask_checked_libraries := +PxTask_checked_common_cflags := $(PxTask_custom_cflags) +PxTask_checked_common_cflags += -MMD +PxTask_checked_common_cflags += $(addprefix -D, $(PxTask_checked_defines)) +PxTask_checked_common_cflags += $(addprefix -I, $(PxTask_checked_hpaths)) +PxTask_checked_common_cflags += -m64 +PxTask_checked_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxTask_checked_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxTask_checked_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxTask_checked_common_cflags += -Wno-missing-field-initializers +PxTask_checked_common_cflags += -g3 -gdwarf-2 -O3 -fno-strict-aliasing +PxTask_checked_cflags := $(PxTask_checked_common_cflags) +PxTask_checked_cppflags := $(PxTask_checked_common_cflags) +PxTask_checked_lflags := $(PxTask_custom_lflags) +PxTask_checked_lflags += $(addprefix -L, $(PxTask_checked_lpaths)) +PxTask_checked_lflags += -Wl,--start-group $(addprefix -l, $(PxTask_checked_libraries)) -Wl,--end-group +PxTask_checked_lflags += -lrt +PxTask_checked_lflags += -m64 +PxTask_checked_objsdir = $(OBJS_DIR)/PxTask_checked +PxTask_checked_cpp_o = $(addprefix $(PxTask_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxTask_cppfiles))))) +PxTask_checked_cc_o = $(addprefix $(PxTask_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxTask_ccfiles))))) +PxTask_checked_c_o = $(addprefix $(PxTask_checked_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxTask_cfiles))))) +PxTask_checked_obj = $(PxTask_checked_cpp_o) $(PxTask_checked_cc_o) $(PxTask_checked_c_o) +PxTask_checked_bin := ./../../../lib/linux64/libPxTaskCHECKED.a + +clean_PxTask_checked: + @$(ECHO) clean PxTask checked + @$(RMDIR) $(PxTask_checked_objsdir) + @$(RMDIR) $(PxTask_checked_bin) + @$(RMDIR) $(DEPSDIR)/PxTask/checked + +build_PxTask_checked: postbuild_PxTask_checked +postbuild_PxTask_checked: mainbuild_PxTask_checked +mainbuild_PxTask_checked: prebuild_PxTask_checked $(PxTask_checked_bin) +prebuild_PxTask_checked: + +$(PxTask_checked_bin): $(PxTask_checked_obj) + mkdir -p `dirname ./../../../lib/linux64/libPxTaskCHECKED.a` + @$(AR) rcs $(PxTask_checked_bin) $(PxTask_checked_obj) + $(ECHO) building $@ complete! + +PxTask_checked_DEPDIR = $(dir $(@))/$(*F) +$(PxTask_checked_cpp_o): $(PxTask_checked_objsdir)/%.o: + $(ECHO) PxTask: compiling checked $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_checked_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cppfiles)))))) + cp $(PxTask_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + rm -f $(PxTask_checked_DEPDIR).d + +$(PxTask_checked_cc_o): $(PxTask_checked_objsdir)/%.o: + $(ECHO) PxTask: compiling checked $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_checked_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_ccfiles)))))) + cp $(PxTask_checked_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_ccfiles))))).checked.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_ccfiles))))).checked.P; \ + rm -f $(PxTask_checked_DEPDIR).d + +$(PxTask_checked_c_o): $(PxTask_checked_objsdir)/%.o: + $(ECHO) PxTask: compiling checked $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxTask_checked_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cfiles)))))) + cp $(PxTask_checked_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_checked_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/checked/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_checked_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + rm -f $(PxTask_checked_DEPDIR).d + +PxTask_profile_hpaths := +PxTask_profile_hpaths += ./../../../include +PxTask_profile_hpaths += ./../../task/include +PxTask_profile_hpaths += ./../../foundation/include +PxTask_profile_lpaths := +PxTask_profile_defines := $(PxTask_custom_defines) +PxTask_profile_defines += NDEBUG +PxTask_profile_defines += PX_PROFILE=1 +PxTask_profile_libraries := +PxTask_profile_common_cflags := $(PxTask_custom_cflags) +PxTask_profile_common_cflags += -MMD +PxTask_profile_common_cflags += $(addprefix -D, $(PxTask_profile_defines)) +PxTask_profile_common_cflags += $(addprefix -I, $(PxTask_profile_hpaths)) +PxTask_profile_common_cflags += -m64 +PxTask_profile_common_cflags += -Werror -m64 -fPIC -msse2 -mfpmath=sse -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden +PxTask_profile_common_cflags += -Wall -Wextra -Wstrict-aliasing=2 -fdiagnostics-show-option +PxTask_profile_common_cflags += -Wno-invalid-offsetof -Wno-uninitialized -Wno-implicit-fallthrough +PxTask_profile_common_cflags += -Wno-missing-field-initializers +PxTask_profile_common_cflags += -O3 -fno-strict-aliasing +PxTask_profile_cflags := $(PxTask_profile_common_cflags) +PxTask_profile_cppflags := $(PxTask_profile_common_cflags) +PxTask_profile_lflags := $(PxTask_custom_lflags) +PxTask_profile_lflags += $(addprefix -L, $(PxTask_profile_lpaths)) +PxTask_profile_lflags += -Wl,--start-group $(addprefix -l, $(PxTask_profile_libraries)) -Wl,--end-group +PxTask_profile_lflags += -lrt +PxTask_profile_lflags += -m64 +PxTask_profile_objsdir = $(OBJS_DIR)/PxTask_profile +PxTask_profile_cpp_o = $(addprefix $(PxTask_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(PxTask_cppfiles))))) +PxTask_profile_cc_o = $(addprefix $(PxTask_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(PxTask_ccfiles))))) +PxTask_profile_c_o = $(addprefix $(PxTask_profile_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(PxTask_cfiles))))) +PxTask_profile_obj = $(PxTask_profile_cpp_o) $(PxTask_profile_cc_o) $(PxTask_profile_c_o) +PxTask_profile_bin := ./../../../lib/linux64/libPxTaskPROFILE.a + +clean_PxTask_profile: + @$(ECHO) clean PxTask profile + @$(RMDIR) $(PxTask_profile_objsdir) + @$(RMDIR) $(PxTask_profile_bin) + @$(RMDIR) $(DEPSDIR)/PxTask/profile + +build_PxTask_profile: postbuild_PxTask_profile +postbuild_PxTask_profile: mainbuild_PxTask_profile +mainbuild_PxTask_profile: prebuild_PxTask_profile $(PxTask_profile_bin) +prebuild_PxTask_profile: + +$(PxTask_profile_bin): $(PxTask_profile_obj) + mkdir -p `dirname ./../../../lib/linux64/libPxTaskPROFILE.a` + @$(AR) rcs $(PxTask_profile_bin) $(PxTask_profile_obj) + $(ECHO) building $@ complete! + +PxTask_profile_DEPDIR = $(dir $(@))/$(*F) +$(PxTask_profile_cpp_o): $(PxTask_profile_objsdir)/%.o: + $(ECHO) PxTask: compiling profile $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cppfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_profile_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cppfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cppfiles)))))) + cp $(PxTask_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cppfiles))))).P; \ + rm -f $(PxTask_profile_DEPDIR).d + +$(PxTask_profile_cc_o): $(PxTask_profile_objsdir)/%.o: + $(ECHO) PxTask: compiling profile $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_ccfiles))... + mkdir -p $(dir $(@)) + $(CXX) $(PxTask_profile_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_ccfiles)) -o $@ + mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_ccfiles)))))) + cp $(PxTask_profile_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_ccfiles))))).profile.P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_ccfiles))))).profile.P; \ + rm -f $(PxTask_profile_DEPDIR).d + +$(PxTask_profile_c_o): $(PxTask_profile_objsdir)/%.o: + $(ECHO) PxTask: compiling profile $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cfiles))... + mkdir -p $(dir $(@)) + $(CC) $(PxTask_profile_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cfiles)) -o $@ + @mkdir -p $(dir $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cfiles)))))) + cp $(PxTask_profile_DEPDIR).d $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ + -e '/^$$/ d' -e 's/$$/ :/' < $(PxTask_profile_DEPDIR).d >> $(addprefix $(DEPSDIR)/PxTask/profile/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(PxTask_profile_objsdir),, $@))), $(PxTask_cfiles))))).P; \ + rm -f $(PxTask_profile_DEPDIR).d + +clean_PxTask: clean_PxTask_debug clean_PxTask_release clean_PxTask_checked clean_PxTask_profile + rm -rf $(DEPSDIR) + +export VERBOSE +ifndef VERBOSE +.SILENT: +endif diff --git a/PxShared/src/foundation/src/windows/PsUWPThread.cpp b/PxShared/src/foundation/src/windows/PsUWPThread.cpp new file mode 100644 index 0000000..4e0d43c --- /dev/null +++ b/PxShared/src/foundation/src/windows/PsUWPThread.cpp @@ -0,0 +1,339 @@ +// This code contains NVIDIA Confidential Information and is disclosed to you +// under a form of NVIDIA software license agreement provided separately to you. +// +// Notice +// NVIDIA Corporation and its licensors retain all intellectual property and +// proprietary rights in and to this software and related documentation and +// any modifications thereto. Any use, reproduction, disclosure, or +// distribution of this software and related documentation without an express +// license agreement from NVIDIA Corporation is strictly prohibited. +// +// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES +// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO +// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, +// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. +// +// Information and code furnished is believed to be accurate and reliable. +// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such +// information or for any infringement of patents or other rights of third parties that may +// result from its use. No license is granted by implication or otherwise under any patent +// or patent rights of NVIDIA Corporation. Details are subject to change without notice. +// This code supersedes and replaces all information previously supplied. +// NVIDIA Corporation products are not authorized for use as critical +// components in life support devices or systems without express written approval of +// NVIDIA Corporation. +// +// Copyright (c) 2008-2014 NVIDIA Corporation. All rights reserved. +// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved. +// Copyright (c) 2001-2004 NovodeX AG. All rights reserved. + +#include "foundation/PxPreprocessor.h" + +#if PX_UWP + +#include "foundation/PxAssert.h" + +#include "windows/PsWindowsInclude.h" +#include "PsThread.h" + +using namespace Platform; +using namespace Windows::Foundation; +using namespace Windows::System::Threading; + +// an exception for setting the thread name in microsoft debuggers +#define NS_MS_VC_EXCEPTION 0x406D1388 + +namespace physx +{ +namespace shdfnd +{ + +#define PX_TLS_MAX_SLOTS 64 + +namespace +{ + +// struct for naming a thread in the debugger +#pragma pack(push, 8) + +typedef struct tagTHREADNAME_INFO +{ + DWORD dwType; // Must be 0x1000. + LPCSTR szName; // Pointer to name (in user addr space). + DWORD dwThreadID; // Thread ID (-1=caller thread). + DWORD dwFlags; // Reserved for future use, must be zero. +} THREADNAME_INFO; + +#pragma pack(pop) + +// Used to keep track of which TLS slots have been used +volatile DWORD gTlsSlots[PX_TLS_MAX_SLOTS] = { 0 }; + +// Actual TLS storage, unique per thread +__declspec(thread) void* tlsData[PX_TLS_MAX_SLOTS]; + +// Sets all the slot values to zero. This method will be called every time a new Px thread is created +void PxClearTlsData() +{ + for(unsigned int i = 0; i < PX_TLS_MAX_SLOTS; i++) + { + tlsData[i] = NULL; + } +} + +class _ThreadImpl +{ + public: + enum State + { + NotStarted, + Started, + Stopped + }; + + PX_FORCE_INLINE _ThreadImpl(ThreadImpl::ExecuteFn fn_, void* arg_); + + IAsyncAction ^ asyncAction; + HANDLE signal; + LONG quitNow; // Should be 32bit aligned on SMP systems. + State state; + DWORD threadID; + + ThreadImpl::ExecuteFn fn; + void* arg; +}; + +PX_FORCE_INLINE _ThreadImpl::_ThreadImpl(ThreadImpl::ExecuteFn fn_, void* arg_) +: asyncAction(nullptr), quitNow(0), state(_ThreadImpl::NotStarted), threadID(0xffffFFFF), fn(fn_), arg(arg_) +{ + signal = CreateEventEx(NULL, NULL, CREATE_EVENT_MANUAL_RESET, EVENT_ALL_ACCESS); +} + +_ThreadImpl* getThread(ThreadImpl* impl) +{ + return reinterpret_cast<_ThreadImpl*>(impl); +} + +DWORD WINAPI PxThreadStart(LPVOID arg) +{ + PxClearTlsData(); + _ThreadImpl* impl = getThread((ThreadImpl*)arg); + + // run either the passed in function or execute from the derived class (Runnable). + if(impl->fn) + (*impl->fn)(impl->arg); + else if(impl->arg) + ((Runnable*)impl->arg)->execute(); + return 0; +} +} + +static const uint32_t gSize = sizeof(_ThreadImpl); +uint32_t ThreadImpl::getSize() +{ + return gSize; +} + +ThreadImpl::Id ThreadImpl::getId() +{ + return static_cast<Id>(GetCurrentThreadId()); +} + +ThreadImpl::ThreadImpl() +{ + PX_PLACEMENT_NEW(getThread(this), _ThreadImpl)(NULL, NULL); +} + +ThreadImpl::ThreadImpl(ExecuteFn fn, void* arg, const char*) +{ + PX_PLACEMENT_NEW(getThread(this), _ThreadImpl)(fn, arg); + start(0, NULL); +} + +ThreadImpl::~ThreadImpl() +{ + if(getThread(this)->state == _ThreadImpl::Started) + kill(); + if(getThread(this)->asyncAction) + getThread(this)->asyncAction->Close(); + CloseHandle(getThread(this)->signal); +} + +void ThreadImpl::start(uint32_t /*stackSize*/, Runnable* runnable) +{ + if(getThread(this)->state != _ThreadImpl::NotStarted) + return; + getThread(this)->state = _ThreadImpl::Started; + + if(runnable && !getThread(this)->arg && !getThread(this)->fn) + getThread(this)->arg = runnable; + + // run lambda + auto workItemDelegate = [this](IAsyncAction ^ workItem) + { + PxThreadStart((LPVOID) this); // function to run async + }; + + // onComplete lambda + auto completionDelegate = [this](IAsyncAction ^ action, AsyncStatus /*status*/) + { + switch(action->Status) + { + case AsyncStatus::Started: + break; + case AsyncStatus::Completed: + case AsyncStatus::Canceled: + case AsyncStatus::Error: + SetEvent(getThread(this)->signal); + break; + } + }; + + // thread pool work item, can run on any thread + auto workItemHandler = ref new WorkItemHandler(workItemDelegate, CallbackContext::Any); + // thread status handler (signal complete), can run on any thread + auto completionHandler = ref new AsyncActionCompletedHandler(completionDelegate, Platform::CallbackContext::Any); + + // run with normal priority, time sliced + getThread(this)->asyncAction = + ThreadPool::RunAsync(workItemHandler, WorkItemPriority::Normal, WorkItemOptions::TimeSliced); + getThread(this)->asyncAction->Completed = completionHandler; +} + +void ThreadImpl::signalQuit() +{ + InterlockedIncrement(&(getThread(this)->quitNow)); +} + +bool ThreadImpl::waitForQuit() +{ + if(getThread(this)->state == _ThreadImpl::NotStarted) + return false; + + WaitForSingleObjectEx(getThread(this)->signal, INFINITE, false); + + return true; +} + +bool ThreadImpl::quitIsSignalled() +{ + return InterlockedCompareExchange(&(getThread(this)->quitNow), 0, 0) != 0; +} + +void ThreadImpl::quit() +{ + getThread(this)->state = _ThreadImpl::Stopped; +} + +void ThreadImpl::kill() +{ + if(getThread(this)->state == _ThreadImpl::Started && getThread(this)->asyncAction) + { + getThread(this)->asyncAction->Cancel(); + InterlockedIncrement(&(getThread(this)->quitNow)); + } + getThread(this)->state = _ThreadImpl::Stopped; +} + +void ThreadImpl::sleep(uint32_t ms) +{ + // find something better than this: + if(ms == 0) + yield(); + else + { + HANDLE handle = CreateEventEx(NULL, NULL, CREATE_EVENT_MANUAL_RESET, EVENT_ALL_ACCESS); + WaitForSingleObjectEx(handle, ms, false); + CloseHandle(handle); + } +} + +void ThreadImpl::yield() +{ + YieldProcessor(); +} + +uint32_t ThreadImpl::setAffinityMask(uint32_t /*mask*/) +{ + return 0; +} + +void ThreadImpl::setName(const char* name) +{ + THREADNAME_INFO info; + info.dwType = 0x1000; + info.szName = name; + info.dwThreadID = getThread(this)->threadID; + info.dwFlags = 0; + + // C++ Exceptions are disabled for this project, but SEH is not (and cannot be) + // http://stackoverflow.com/questions/943087/what-exactly-will-happen-if-i-disable-c-exceptions-in-a-project + __try + { + RaiseException(NS_MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR), (ULONG_PTR*)&info); + } + __except(EXCEPTION_EXECUTE_HANDLER) + { + // this runs if not attached to a debugger (thus not really naming the thread) + } +} + +void ThreadImpl::setPriority(ThreadPriority::Enum /*prio*/) +{ + // AFAIK this can only be done at creation in Metro Apps +} + +ThreadPriority::Enum ThreadImpl::getPriority(Id /*threadId*/) +{ + // see setPriority + return ThreadPriority::eNORMAL; +} + +uint32_t TlsAlloc() +{ + for(unsigned int i = 0; i < PX_TLS_MAX_SLOTS; i++) + if(InterlockedCompareExchange(&gTlsSlots[i], TRUE, FALSE) == FALSE) + return i; + PX_ASSERT(!"Cannot find a free tls slot, increase PX_TLS_MAX_SLOTS"); + return (uint32_t) - 1; +} + +void TlsFree(uint32_t index) +{ + PX_ASSERT(index < PX_TLS_MAX_SLOTS); + InterlockedExchange(&gTlsSlots[index], 0); + // Clear the value for this slot.. This is a bit iffy as it clears only the value for the thread + // that calls PxTlsFree() + tlsData[index] = NULL; +} + +void* TlsGet(uint32_t index) +{ + PX_ASSERT(index < PX_TLS_MAX_SLOTS); + void* value = tlsData[index]; + return value; +} + +uint32_t TlsSet(uint32_t index, void* value) +{ + PX_ASSERT(index < PX_TLS_MAX_SLOTS); + tlsData[index] = value; + return 1; +} + +uint32_t ThreadImpl::getDefaultStackSize() +{ + return 1048576; +}; + +uint32_t ThreadImpl::getNbPhysicalCores() +{ + SYSTEM_INFO info; + GetNativeSystemInfo(&info); + return info.dwNumberOfProcessors; +} + +} // namespace shdfnd +} // namespace physx + +#endif // PX_UWP |