diff options
Diffstat (limited to 'PxShared/src')
18 files changed, 4911 insertions, 0 deletions
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 |