aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/build/gnu/tests.make
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ode-0.9/build/gnu/tests.make')
-rw-r--r--libraries/ode-0.9/build/gnu/tests.make166
1 files changed, 166 insertions, 0 deletions
diff --git a/libraries/ode-0.9/build/gnu/tests.make b/libraries/ode-0.9/build/gnu/tests.make
new file mode 100644
index 0000000..869e809
--- /dev/null
+++ b/libraries/ode-0.9/build/gnu/tests.make
@@ -0,0 +1,166 @@
1# C++ Console Executable Makefile autogenerated by premake
2# Don't edit this file! Instead edit `premake.lua` then rerun `make`
3
4ifndef CONFIG
5 CONFIG=DebugDLL
6endif
7
8ifeq ($(CONFIG),DebugDLL)
9 BINDIR := ../../lib/DebugDLL
10 LIBDIR := ../../lib/DebugDLL
11 OBJDIR := obj/tests/DebugDLL
12 OUTDIR := ../../lib/DebugDLL
13 CPPFLAGS := -MMD -D "_CRT_SECURE_NO_DEPRECATE" -I "../../include" -I "../../tests/CppTestHarness"
14 CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g
15 CXXFLAGS := $(CFLAGS)
16 LDFLAGS += -L$(BINDIR) -L$(LIBDIR) ../../lib/DebugDLL/ode.dll
17 LDDEPS := ../../lib/DebugDLL/ode.dll
18 RESFLAGS := -D "_CRT_SECURE_NO_DEPRECATE" -I "../../include" -I "../../tests/CppTestHarness"
19 TARGET := tests.exe
20 BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
21endif
22
23ifeq ($(CONFIG),ReleaseDLL)
24 BINDIR := ../../lib/ReleaseDLL
25 LIBDIR := ../../lib/ReleaseDLL
26 OBJDIR := obj/tests/ReleaseDLL
27 OUTDIR := ../../lib/ReleaseDLL
28 CPPFLAGS := -MMD -D "_CRT_SECURE_NO_DEPRECATE" -I "../../include" -I "../../tests/CppTestHarness"
29 CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g
30 CXXFLAGS := $(CFLAGS)
31 LDFLAGS += -L$(BINDIR) -L$(LIBDIR) ../../lib/ReleaseDLL/ode.dll
32 LDDEPS := ../../lib/ReleaseDLL/ode.dll
33 RESFLAGS := -D "_CRT_SECURE_NO_DEPRECATE" -I "../../include" -I "../../tests/CppTestHarness"
34 TARGET := tests.exe
35 BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
36endif
37
38ifeq ($(CONFIG),DebugLib)
39 BINDIR := ../../lib/DebugLib
40 LIBDIR := ../../lib/DebugLib
41 OBJDIR := obj/tests/DebugLib
42 OUTDIR := ../../lib/DebugLib
43 CPPFLAGS := -MMD -D "_CRT_SECURE_NO_DEPRECATE" -I "../../include" -I "../../tests/CppTestHarness"
44 CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g
45 CXXFLAGS := $(CFLAGS)
46 LDFLAGS += -L$(BINDIR) -L$(LIBDIR) ../../lib/DebugLib/libode.a
47 LDDEPS := ../../lib/DebugLib/libode.a
48 RESFLAGS := -D "_CRT_SECURE_NO_DEPRECATE" -I "../../include" -I "../../tests/CppTestHarness"
49 TARGET := tests.exe
50 BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
51endif
52
53ifeq ($(CONFIG),ReleaseLib)
54 BINDIR := ../../lib/ReleaseLib
55 LIBDIR := ../../lib/ReleaseLib
56 OBJDIR := obj/tests/ReleaseLib
57 OUTDIR := ../../lib/ReleaseLib
58 CPPFLAGS := -MMD -D "_CRT_SECURE_NO_DEPRECATE" -I "../../include" -I "../../tests/CppTestHarness"
59 CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g
60 CXXFLAGS := $(CFLAGS)
61 LDFLAGS += -L$(BINDIR) -L$(LIBDIR) ../../lib/ReleaseLib/libode.a
62 LDDEPS := ../../lib/ReleaseLib/libode.a
63 RESFLAGS := -D "_CRT_SECURE_NO_DEPRECATE" -I "../../include" -I "../../tests/CppTestHarness"
64 TARGET := tests.exe
65 BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
66endif
67
68OBJECTS := \
69 $(OBJDIR)/main.o \
70 $(OBJDIR)/box_sphere.o \
71 $(OBJDIR)/HTMLTestReporter.o \
72 $(OBJDIR)/PrintfTestReporter.o \
73 $(OBJDIR)/Test.o \
74 $(OBJDIR)/TestLauncher.o \
75 $(OBJDIR)/TestReporter.o \
76 $(OBJDIR)/TestResults.o \
77 $(OBJDIR)/TestRunner.o \
78
79RESOURCES := \
80
81MKDIR_TYPE := msdos
82CMD := $(subst \,\\,$(ComSpec)$(COMSPEC))
83ifeq (,$(CMD))
84 MKDIR_TYPE := posix
85endif
86ifeq (/bin/sh.exe,$(SHELL))
87 MKDIR_TYPE := posix
88endif
89ifeq ($(MKDIR_TYPE),posix)
90 CMD_MKBINDIR := mkdir -p $(BINDIR)
91 CMD_MKLIBDIR := mkdir -p $(LIBDIR)
92 CMD_MKOUTDIR := mkdir -p $(OUTDIR)
93 CMD_MKOBJDIR := mkdir -p $(OBJDIR)
94else
95 CMD_MKBINDIR := $(CMD) /c if not exist $(subst /,\\,$(BINDIR)) mkdir $(subst /,\\,$(BINDIR))
96 CMD_MKLIBDIR := $(CMD) /c if not exist $(subst /,\\,$(LIBDIR)) mkdir $(subst /,\\,$(LIBDIR))
97 CMD_MKOUTDIR := $(CMD) /c if not exist $(subst /,\\,$(OUTDIR)) mkdir $(subst /,\\,$(OUTDIR))
98 CMD_MKOBJDIR := $(CMD) /c if not exist $(subst /,\\,$(OBJDIR)) mkdir $(subst /,\\,$(OBJDIR))
99endif
100
101.PHONY: clean
102
103$(OUTDIR)/$(TARGET): $(OBJECTS) $(LDDEPS) $(RESOURCES)
104 @echo Linking tests
105 -@$(CMD_MKBINDIR)
106 -@$(CMD_MKLIBDIR)
107 -@$(CMD_MKOUTDIR)
108 @$(BLDCMD)
109
110clean:
111 @echo Cleaning tests
112ifeq ($(MKDIR_TYPE),posix)
113 -@rm -rf $(OUTDIR)/$(TARGET) $(OBJDIR)
114else
115 -@if exist $(subst /,\,$(OUTDIR)/$(TARGET)) del /q $(subst /,\,$(OUTDIR)/$(TARGET))
116 -@if exist $(subst /,\,$(OBJDIR)) del /q $(subst /,\,$(OBJDIR))
117 -@if exist $(subst /,\,$(OBJDIR)) rmdir /s /q $(subst /,\,$(OBJDIR))
118endif
119
120$(OBJDIR)/main.o: ../../tests/main.cpp
121 -@$(CMD_MKOBJDIR)
122 @echo $(notdir $<)
123 @$(CXX) $(CXXFLAGS) -o $@ -c $<
124
125$(OBJDIR)/box_sphere.o: ../../tests/colliders/box_sphere.cpp
126 -@$(CMD_MKOBJDIR)
127 @echo $(notdir $<)
128 @$(CXX) $(CXXFLAGS) -o $@ -c $<
129
130$(OBJDIR)/HTMLTestReporter.o: ../../tests/CppTestHarness/HTMLTestReporter.cpp
131 -@$(CMD_MKOBJDIR)
132 @echo $(notdir $<)
133 @$(CXX) $(CXXFLAGS) -o $@ -c $<
134
135$(OBJDIR)/PrintfTestReporter.o: ../../tests/CppTestHarness/PrintfTestReporter.cpp
136 -@$(CMD_MKOBJDIR)
137 @echo $(notdir $<)
138 @$(CXX) $(CXXFLAGS) -o $@ -c $<
139
140$(OBJDIR)/Test.o: ../../tests/CppTestHarness/Test.cpp
141 -@$(CMD_MKOBJDIR)
142 @echo $(notdir $<)
143 @$(CXX) $(CXXFLAGS) -o $@ -c $<
144
145$(OBJDIR)/TestLauncher.o: ../../tests/CppTestHarness/TestLauncher.cpp
146 -@$(CMD_MKOBJDIR)
147 @echo $(notdir $<)
148 @$(CXX) $(CXXFLAGS) -o $@ -c $<
149
150$(OBJDIR)/TestReporter.o: ../../tests/CppTestHarness/TestReporter.cpp
151 -@$(CMD_MKOBJDIR)
152 @echo $(notdir $<)
153 @$(CXX) $(CXXFLAGS) -o $@ -c $<
154
155$(OBJDIR)/TestResults.o: ../../tests/CppTestHarness/TestResults.cpp
156 -@$(CMD_MKOBJDIR)
157 @echo $(notdir $<)
158 @$(CXX) $(CXXFLAGS) -o $@ -c $<
159
160$(OBJDIR)/TestRunner.o: ../../tests/CppTestHarness/TestRunner.cpp
161 -@$(CMD_MKOBJDIR)
162 @echo $(notdir $<)
163 @$(CXX) $(CXXFLAGS) -o $@ -c $<
164
165-include $(OBJECTS:%.o=%.d)
166