From c5fc66ee58f2c60f2d226868bb1cf5b91badaf53 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 1 Oct 2022 20:59:36 -0500 Subject: add ode --- libs/ode-0.16.1/ou/build/make/makefile | 219 +++++++++++++ libs/ode-0.16.1/ou/build/make/makefile.os | 41 +++ libs/ode-0.16.1/ou/build/vs2005/ou.sln | 39 +++ libs/ode-0.16.1/ou/build/vs2005/ou.vcproj | 494 ++++++++++++++++++++++++++++++ libs/ode-0.16.1/ou/build/vs6/ou.dsp | 172 +++++++++++ libs/ode-0.16.1/ou/build/vs6/ou.dsw | 44 +++ 6 files changed, 1009 insertions(+) create mode 100644 libs/ode-0.16.1/ou/build/make/makefile create mode 100644 libs/ode-0.16.1/ou/build/make/makefile.os create mode 100644 libs/ode-0.16.1/ou/build/vs2005/ou.sln create mode 100644 libs/ode-0.16.1/ou/build/vs2005/ou.vcproj create mode 100644 libs/ode-0.16.1/ou/build/vs6/ou.dsp create mode 100644 libs/ode-0.16.1/ou/build/vs6/ou.dsw (limited to 'libs/ode-0.16.1/ou/build') diff --git a/libs/ode-0.16.1/ou/build/make/makefile b/libs/ode-0.16.1/ou/build/make/makefile new file mode 100644 index 0000000..bf8a8d6 --- /dev/null +++ b/libs/ode-0.16.1/ou/build/make/makefile @@ -0,0 +1,219 @@ +PRODUCTNAME = ou +MODE ?= DEVELOP +BITS ?= 32 + +include makefile.os + +CXX = gcc +AR = ar +LD = gcc + +CXXFLAGS = -fno-exceptions -fno-rtti -Wall -g +ARFLAGS = -r +LDFLAGS = -fno-exceptions -fno-rtti -g + +ifeq ($(OS_PLATFORM), i386) +ifneq ($(BITS), 64) + +CXXFLAGS += -malign-double + +endif +endif + +ifeq ($(MODE), DEBUG) + +CXXFLAGS += -D_DEBUG +CXXFLAGS += -O0 + +else +ifeq ($(MODE), RELEASE) + +CXXFLAGS += -DNDEBUG +CXXFLAGS += -O3 -funroll-loops + +else + +CXXFLAGS += -O2 + +endif +endif + +ifeq ($(BITS), 64) + +CXXFLAGS += -m64 +LDFLAGS += -m64 + +else + +CXXFLAGS += -m32 +LDFLAGS += -m32 + +endif + + +SRCEXT=.cpp +OBJEXT=$(OS_OBJ_EXT) + +OUTNAME := $(PRODUCTNAME) +OUTDIR = ../../lib/ +OUTEXT=$(OS_LIB_EXT) + +TESTNAME := $(PRODUCTNAME)test +TESTDIR = ../../bin/ +TESTEXT=$(OS_EXE_EXT) + +REFINEDCXX = $(notdir $(CXX)) +OUTINTDIR := ../../intermediate/$(REFINEDCXX)/ +TESTINTDIR := ../../intermediate/$(REFINEDCXX)_$(TESTNAME)/ + + +ifeq ($(MODE), DEBUG) + +OUTINTDIR := $(OUTINTDIR)debug +TESTINTDIR := $(TESTINTDIR)debug + +else +ifeq ($(MODE), RELEASE) + +OUTINTDIR := $(OUTINTDIR)release +TESTINTDIR := $(TESTINTDIR)release + +else + +OUTINTDIR := $(OUTINTDIR)develop +TESTINTDIR := $(TESTINTDIR)develop + +endif +endif + +ifeq ($(BITS), 64) + +OUTINTDIR := $(OUTINTDIR)64 +TESTINTDIR := $(TESTINTDIR)64 + + +OUTNAME := $(OUTNAME)64 +TESTNAME := $(TESTNAME)64 + +endif + +ifeq ($(MODE), DEBUG) + +OUTNAME := $(OUTNAME)_debug +TESTNAME := $(TESTNAME)_debug + +endif + +ifeq ($(MODE), RELEASE) + +OUTNAME := $(OUTNAME)_release +TESTNAME := $(TESTNAME)_release + +endif + +OUTINTDIR := $(OUTINTDIR)/ +TESTINTDIR := $(TESTINTDIR)/ + +OUTPATH = $(OUTDIR)$(OS_LIB_PRE)$(OUTNAME)$(OUTEXT) +TESTPATH = $(TESTDIR)$(TESTNAME)$(TESTEXT) + +ININCDIR = ../../include +INDIR = ../../src/ou/ + +INFILES = \ + atomic \ + customization \ + malloc \ + threadlocalstorage + +INOBJS = $(addprefix $(OUTINTDIR), $(addsuffix $(OBJEXT), $(INFILES))) + + +TESTINCDIR = $(ININCDIR) +TESTLIBDIR = $(OUTDIR) +TESTLIBS = $(OUTNAME) +TESTSRCDIR = ../../test/ + +ifeq ($(OS_TYPE), Linux) +TESTLIBS += pthread +endif + +ifeq ($(OS_TYPE), SUN) +TESTLIBS += pthread c +endif + + +TESTFILES = outest + +TESTOBJS = $(addprefix $(TESTINTDIR), $(addsuffix $(OBJEXT), $(TESTFILES))) + + +.PHONY: develop debug release develop64 debug64 release64 all ou + +all: develop + +develop: + $(MAKE) ou MODE=DEVELOP BITS=32 + +debug: + $(MAKE) ou MODE=DEBUG BITS=32 + +release: + $(MAKE) ou MODE=RELEASE BITS=32 + +develop64: + $(MAKE) ou MODE=DEVELOP BITS=64 + +debug64: + $(MAKE) ou MODE=DEBUG BITS=64 + +release64: + $(MAKE) ou MODE=RELEASE BITS=64 + +ou: $(OUTPATH) $(TESTPATH) + + +.PHONY: mkoutintpath mkoutpath mktestintpath mktestpath + +$(OUTPATH): mkoutintpath mkoutpath $(INOBJS) + $(OS_VP)echo BUILDING $(notdir $(OUTPATH))... + $(OS_VP)$(AR) $(ARFLAGS) $(OUTPATH) $(INOBJS) + +$(TESTPATH): mktestintpath mktestpath $(OUTPATH) $(TESTOBJS) + $(OS_VP)echo LINKING $(notdir $(TESTPATH))... + $(OS_VP)$(LD) $(LDFLAGS) $(LDADDFLAGS) -o $(TESTPATH) \ + $(addprefix -I, $(TESTINCDIR) $(OS_INCLUDE_PATH)) \ + $(addprefix -L, $(TESTLIBDIR) $(OS_LIB_PATH)) \ + $(TESTOBJS) \ + $(addprefix -l, $(TESTLIBS)) + +$(OUTINTDIR)%$(OBJEXT): $(INDIR)%$(SRCEXT) + $(OS_VP)echo Compiling $(notdir $@)... + $(OS_VP)$(CXX) $(CXXFLAGS) $(CXXADDFLAGS) -c -o $@ \ + $(addprefix -I, $(ININCDIR) $(OS_INCLUDE_PATH)) \ + $< + +$(TESTINTDIR)%$(OBJEXT): $(TESTSRCDIR)%$(SRCEXT) + $(OS_VP)echo Compiling $(notdir $@)... + $(OS_VP)$(CXX) $(CXXFLAGS) $(CXXADDFLAGS) -c -o $@ \ + $(addprefix -I, $(TESTINCDIR) $(OS_INCLUDE_PATH)) \ + $< + + +mkoutintpath: + $(call FN_MKDIR, $(OUTINTDIR)) + +mktestintpath: + $(call FN_MKDIR, $(TESTINTDIR)) + +mkoutpath: + $(call FN_MKDIR, $(OUTDIR)) + +mktestpath: + $(call FN_MKDIR, $(TESTDIR)) + + +.PHONY: runtest + +runtest: $(TESTPATH) + $(TESTPATH) diff --git a/libs/ode-0.16.1/ou/build/make/makefile.os b/libs/ode-0.16.1/ou/build/make/makefile.os new file mode 100644 index 0000000..7b7cf13 --- /dev/null +++ b/libs/ode-0.16.1/ou/build/make/makefile.os @@ -0,0 +1,41 @@ +ifeq ($(OS), Windows_NT) + +OS_TYPE = WIN32 +OS_PLATFORM := i386 + +OS_OBJ_EXT = .obj +OS_LIB_EXT = .lib +OS_LIB_PRE = +OS_EXE_EXT = .exe + +FN_CONVERT_PATH = $(subst /,\,$(subst //,/,$(1))) + +FN_RM = $(OS_VP)erase "$(strip $(call FN_CONVERT_PATH, $(1)))" +FN_MKDIR = $(OS_VP)if NOT EXIST "$(strip $(call FN_CONVERT_PATH, $(1)))" mkdir "$(strip $(call FN_CONVERT_PATH, $(1)))" + +OS_INCLUDE_PATH = $(GCC_PATH)/include $(GCC_PATH)/include/win32 +OS_LIB_PATH += $(GCC_PATH)/lib $(GCC_PATH)/lib/win32 +OS_VP=@ + +else + +OS_OBJ_EXT = .o +OS_LIB_EXT = .a +OS_LIB_PRE = lib +OS_EXE_EXT = + +OS_TYPE = $(subst SunOS,SUN,$(shell uname)) +OS_PLATFORM := $(shell uname -p) +OS_PLATFORM := $(subst x86_64,i386,$(OS_PLATFORM)) +OS_PLATFORM := $(subst i586,i386,$(OS_PLATFORM)) +OS_PLATFORM := $(subst i686,i386,$(OS_PLATFORM)) + +FN_RM = $(OS_VP)rm -rf $(1) +FN_MKDIR = $(OS_VP)test -d $(1) || mkdir -p $(patsubst %/,%,$(1)) + +OS_INCLUDE_PATH = /include /usr/include +OS_LIB_PATH = /lib /usr/lib +OS_VP=@ + +endif + diff --git a/libs/ode-0.16.1/ou/build/vs2005/ou.sln b/libs/ode-0.16.1/ou/build/vs2005/ou.sln new file mode 100644 index 0000000..8ae5b79 --- /dev/null +++ b/libs/ode-0.16.1/ou/build/vs2005/ou.sln @@ -0,0 +1,39 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ou", "ou.vcproj", "{7DD3E42F-80C8-430D-87B0-2E6B8147F7D7}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "outest", "..\..\test\vs2005\outest.vcproj", "{B2F294B7-F3F0-4876-AD75-6BB24BA020F8}" + ProjectSection(ProjectDependencies) = postProject + {7DD3E42F-80C8-430D-87B0-2E6B8147F7D7} = {7DD3E42F-80C8-430D-87B0-2E6B8147F7D7} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7DD3E42F-80C8-430D-87B0-2E6B8147F7D7}.Debug|Win32.ActiveCfg = Debug|Win32 + {7DD3E42F-80C8-430D-87B0-2E6B8147F7D7}.Debug|Win32.Build.0 = Debug|Win32 + {7DD3E42F-80C8-430D-87B0-2E6B8147F7D7}.Debug|x64.ActiveCfg = Debug|x64 + {7DD3E42F-80C8-430D-87B0-2E6B8147F7D7}.Debug|x64.Build.0 = Debug|x64 + {7DD3E42F-80C8-430D-87B0-2E6B8147F7D7}.Release|Win32.ActiveCfg = Release|Win32 + {7DD3E42F-80C8-430D-87B0-2E6B8147F7D7}.Release|Win32.Build.0 = Release|Win32 + {7DD3E42F-80C8-430D-87B0-2E6B8147F7D7}.Release|x64.ActiveCfg = Release|x64 + {7DD3E42F-80C8-430D-87B0-2E6B8147F7D7}.Release|x64.Build.0 = Release|x64 + {B2F294B7-F3F0-4876-AD75-6BB24BA020F8}.Debug|Win32.ActiveCfg = Debug|Win32 + {B2F294B7-F3F0-4876-AD75-6BB24BA020F8}.Debug|Win32.Build.0 = Debug|Win32 + {B2F294B7-F3F0-4876-AD75-6BB24BA020F8}.Debug|x64.ActiveCfg = Debug|x64 + {B2F294B7-F3F0-4876-AD75-6BB24BA020F8}.Debug|x64.Build.0 = Debug|x64 + {B2F294B7-F3F0-4876-AD75-6BB24BA020F8}.Release|Win32.ActiveCfg = Release|Win32 + {B2F294B7-F3F0-4876-AD75-6BB24BA020F8}.Release|Win32.Build.0 = Release|Win32 + {B2F294B7-F3F0-4876-AD75-6BB24BA020F8}.Release|x64.ActiveCfg = Release|x64 + {B2F294B7-F3F0-4876-AD75-6BB24BA020F8}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/libs/ode-0.16.1/ou/build/vs2005/ou.vcproj b/libs/ode-0.16.1/ou/build/vs2005/ou.vcproj new file mode 100644 index 0000000..3883c21 --- /dev/null +++ b/libs/ode-0.16.1/ou/build/vs2005/ou.vcproj @@ -0,0 +1,494 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libs/ode-0.16.1/ou/build/vs6/ou.dsp b/libs/ode-0.16.1/ou/build/vs6/ou.dsp new file mode 100644 index 0000000..33344fc --- /dev/null +++ b/libs/ode-0.16.1/ou/build/vs6/ou.dsp @@ -0,0 +1,172 @@ +# Microsoft Developer Studio Project File - Name="ou" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ou - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ou.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ou.mak" CFG="ou - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ou - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ou - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ou - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\intermediate\vs6\Release" +# PROP Intermediate_Dir "..\..\intermediate\vs6\Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD CPP /nologo /Gr /MD /W3 /Zi /O2 /Ob2 /I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c +# ADD BASE RSC /l 0x422 /d "NDEBUG" +# ADD RSC /l 0x422 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"..\..\lib\ou.lib" + +!ELSEIF "$(CFG)" == "ou - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\intermediate\vs6\Debug" +# PROP Intermediate_Dir "..\..\intermediate\vs6\Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD CPP /nologo /Gz /MDd /W3 /Gm /ZI /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c +# ADD BASE RSC /l 0x422 /d "_DEBUG" +# ADD RSC /l 0x422 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo /out:"..\..\lib\ou_debug.lib" + +!ENDIF + +# Begin Target + +# Name "ou - Win32 Release" +# Name "ou - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\src\ou\atomic.cpp +# End Source File +# Begin Source File + +SOURCE=..\..\src\ou\customization.cpp +# End Source File +# Begin Source File + +SOURCE=..\..\src\ou\malloc.cpp +# End Source File +# Begin Source File + +SOURCE=..\..\src\ou\threadlocalstorage.cpp +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\include\ou\assert.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\atomic.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\atomicflags.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\customization.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\enumarrays.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\flags.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\flagsdefines.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\inttypes.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\macros.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\malloc.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\namespace.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\platform.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\simpleflags.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\templates.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\threadlocalstorage.h +# End Source File +# Begin Source File + +SOURCE=..\..\include\ou\typewrapper.h +# End Source File +# End Group +# End Target +# End Project diff --git a/libs/ode-0.16.1/ou/build/vs6/ou.dsw b/libs/ode-0.16.1/ou/build/vs6/ou.dsw new file mode 100644 index 0000000..ee249b6 --- /dev/null +++ b/libs/ode-0.16.1/ou/build/vs6/ou.dsw @@ -0,0 +1,44 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "ou"=.\ou.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "outest"=..\..\test\vs6\outest.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name ou + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + -- cgit v1.2.1