diff options
author | dan miller | 2007-10-19 05:24:38 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 05:24:38 +0000 |
commit | f205de7847da7ae1c10212d82e7042d0100b4ce0 (patch) | |
tree | 9acc9608a6880502aaeda43af52c33e278e95b9c /libraries/ode-0.9/build/gnu/demo_friction.make | |
parent | trying to fix my screwup part deux (diff) | |
download | opensim-SC-f205de7847da7ae1c10212d82e7042d0100b4ce0.zip opensim-SC-f205de7847da7ae1c10212d82e7042d0100b4ce0.tar.gz opensim-SC-f205de7847da7ae1c10212d82e7042d0100b4ce0.tar.bz2 opensim-SC-f205de7847da7ae1c10212d82e7042d0100b4ce0.tar.xz |
from the start... checking in ode-0.9
Diffstat (limited to 'libraries/ode-0.9/build/gnu/demo_friction.make')
-rw-r--r-- | libraries/ode-0.9/build/gnu/demo_friction.make | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/libraries/ode-0.9/build/gnu/demo_friction.make b/libraries/ode-0.9/build/gnu/demo_friction.make new file mode 100644 index 0000000..2d58919 --- /dev/null +++ b/libraries/ode-0.9/build/gnu/demo_friction.make | |||
@@ -0,0 +1,124 @@ | |||
1 | # C++ Console Executable Makefile autogenerated by premake | ||
2 | # Don't edit this file! Instead edit `premake.lua` then rerun `make` | ||
3 | |||
4 | ifndef CONFIG | ||
5 | CONFIG=DebugDLL | ||
6 | endif | ||
7 | |||
8 | ifeq ($(CONFIG),DebugDLL) | ||
9 | BINDIR := ../../lib/DebugDLL | ||
10 | LIBDIR := ../../lib/DebugDLL | ||
11 | OBJDIR := obj/friction/DebugDLL | ||
12 | OUTDIR := ../../lib/DebugDLL | ||
13 | CPPFLAGS := -MMD -D "_CRT_SECURE_NO_DEPRECATE" -D "WIN32" -I "../../include" | ||
14 | CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g | ||
15 | CXXFLAGS := $(CFLAGS) | ||
16 | LDFLAGS += -L$(BINDIR) -L$(LIBDIR) ../../lib/DebugDLL/ode.dll ../../lib/DebugDLL/drawstuff.dll -luser32 -lwinmm -lgdi32 -lopengl32 -lglu32 | ||
17 | LDDEPS := ../../lib/DebugDLL/ode.dll ../../lib/DebugDLL/drawstuff.dll | ||
18 | RESFLAGS := -D "_CRT_SECURE_NO_DEPRECATE" -D "WIN32" -I "../../include" | ||
19 | TARGET := demo_friction.exe | ||
20 | BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH) | ||
21 | endif | ||
22 | |||
23 | ifeq ($(CONFIG),ReleaseDLL) | ||
24 | BINDIR := ../../lib/ReleaseDLL | ||
25 | LIBDIR := ../../lib/ReleaseDLL | ||
26 | OBJDIR := obj/friction/ReleaseDLL | ||
27 | OUTDIR := ../../lib/ReleaseDLL | ||
28 | CPPFLAGS := -MMD -D "_CRT_SECURE_NO_DEPRECATE" -D "WIN32" -I "../../include" | ||
29 | CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g | ||
30 | CXXFLAGS := $(CFLAGS) | ||
31 | LDFLAGS += -L$(BINDIR) -L$(LIBDIR) ../../lib/ReleaseDLL/ode.dll ../../lib/ReleaseDLL/drawstuff.dll -luser32 -lwinmm -lgdi32 -lopengl32 -lglu32 | ||
32 | LDDEPS := ../../lib/ReleaseDLL/ode.dll ../../lib/ReleaseDLL/drawstuff.dll | ||
33 | RESFLAGS := -D "_CRT_SECURE_NO_DEPRECATE" -D "WIN32" -I "../../include" | ||
34 | TARGET := demo_friction.exe | ||
35 | BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH) | ||
36 | endif | ||
37 | |||
38 | ifeq ($(CONFIG),DebugLib) | ||
39 | BINDIR := ../../lib/DebugLib | ||
40 | LIBDIR := ../../lib/DebugLib | ||
41 | OBJDIR := obj/friction/DebugLib | ||
42 | OUTDIR := ../../lib/DebugLib | ||
43 | CPPFLAGS := -MMD -D "_CRT_SECURE_NO_DEPRECATE" -D "WIN32" -I "../../include" | ||
44 | CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g | ||
45 | CXXFLAGS := $(CFLAGS) | ||
46 | LDFLAGS += -L$(BINDIR) -L$(LIBDIR) ../../lib/DebugLib/libode.a ../../lib/DebugLib/libdrawstuff.a -luser32 -lwinmm -lgdi32 -lopengl32 -lglu32 | ||
47 | LDDEPS := ../../lib/DebugLib/libode.a ../../lib/DebugLib/libdrawstuff.a | ||
48 | RESFLAGS := -D "_CRT_SECURE_NO_DEPRECATE" -D "WIN32" -I "../../include" | ||
49 | TARGET := demo_friction.exe | ||
50 | BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH) | ||
51 | endif | ||
52 | |||
53 | ifeq ($(CONFIG),ReleaseLib) | ||
54 | BINDIR := ../../lib/ReleaseLib | ||
55 | LIBDIR := ../../lib/ReleaseLib | ||
56 | OBJDIR := obj/friction/ReleaseLib | ||
57 | OUTDIR := ../../lib/ReleaseLib | ||
58 | CPPFLAGS := -MMD -D "_CRT_SECURE_NO_DEPRECATE" -D "WIN32" -I "../../include" | ||
59 | CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g | ||
60 | CXXFLAGS := $(CFLAGS) | ||
61 | LDFLAGS += -L$(BINDIR) -L$(LIBDIR) ../../lib/ReleaseLib/libode.a ../../lib/ReleaseLib/libdrawstuff.a -luser32 -lwinmm -lgdi32 -lopengl32 -lglu32 | ||
62 | LDDEPS := ../../lib/ReleaseLib/libode.a ../../lib/ReleaseLib/libdrawstuff.a | ||
63 | RESFLAGS := -D "_CRT_SECURE_NO_DEPRECATE" -D "WIN32" -I "../../include" | ||
64 | TARGET := demo_friction.exe | ||
65 | BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH) | ||
66 | endif | ||
67 | |||
68 | OBJECTS := \ | ||
69 | $(OBJDIR)/demo_friction.o \ | ||
70 | |||
71 | RESOURCES := \ | ||
72 | $(OBJDIR)/resources.res \ | ||
73 | |||
74 | MKDIR_TYPE := msdos | ||
75 | CMD := $(subst \,\\,$(ComSpec)$(COMSPEC)) | ||
76 | ifeq (,$(CMD)) | ||
77 | MKDIR_TYPE := posix | ||
78 | endif | ||
79 | ifeq (/bin/sh.exe,$(SHELL)) | ||
80 | MKDIR_TYPE := posix | ||
81 | endif | ||
82 | ifeq ($(MKDIR_TYPE),posix) | ||
83 | CMD_MKBINDIR := mkdir -p $(BINDIR) | ||
84 | CMD_MKLIBDIR := mkdir -p $(LIBDIR) | ||
85 | CMD_MKOUTDIR := mkdir -p $(OUTDIR) | ||
86 | CMD_MKOBJDIR := mkdir -p $(OBJDIR) | ||
87 | else | ||
88 | CMD_MKBINDIR := $(CMD) /c if not exist $(subst /,\\,$(BINDIR)) mkdir $(subst /,\\,$(BINDIR)) | ||
89 | CMD_MKLIBDIR := $(CMD) /c if not exist $(subst /,\\,$(LIBDIR)) mkdir $(subst /,\\,$(LIBDIR)) | ||
90 | CMD_MKOUTDIR := $(CMD) /c if not exist $(subst /,\\,$(OUTDIR)) mkdir $(subst /,\\,$(OUTDIR)) | ||
91 | CMD_MKOBJDIR := $(CMD) /c if not exist $(subst /,\\,$(OBJDIR)) mkdir $(subst /,\\,$(OBJDIR)) | ||
92 | endif | ||
93 | |||
94 | .PHONY: clean | ||
95 | |||
96 | $(OUTDIR)/$(TARGET): $(OBJECTS) $(LDDEPS) $(RESOURCES) | ||
97 | @echo Linking demo_friction | ||
98 | -@$(CMD_MKBINDIR) | ||
99 | -@$(CMD_MKLIBDIR) | ||
100 | -@$(CMD_MKOUTDIR) | ||
101 | @$(BLDCMD) | ||
102 | |||
103 | clean: | ||
104 | @echo Cleaning demo_friction | ||
105 | ifeq ($(MKDIR_TYPE),posix) | ||
106 | -@rm -rf $(OUTDIR)/$(TARGET) $(OBJDIR) | ||
107 | else | ||
108 | -@if exist $(subst /,\,$(OUTDIR)/$(TARGET)) del /q $(subst /,\,$(OUTDIR)/$(TARGET)) | ||
109 | -@if exist $(subst /,\,$(OBJDIR)) del /q $(subst /,\,$(OBJDIR)) | ||
110 | -@if exist $(subst /,\,$(OBJDIR)) rmdir /s /q $(subst /,\,$(OBJDIR)) | ||
111 | endif | ||
112 | |||
113 | $(OBJDIR)/demo_friction.o: ../../ode/demo/demo_friction.cpp | ||
114 | -@$(CMD_MKOBJDIR) | ||
115 | @echo $(notdir $<) | ||
116 | @$(CXX) $(CXXFLAGS) -o $@ -c $< | ||
117 | |||
118 | $(OBJDIR)/resources.res: ../../drawstuff/src/resources.rc | ||
119 | -@$(CMD_MKOBJDIR) | ||
120 | @echo $(notdir $<) | ||
121 | @windres $< -O coff -o $@ $(RESFLAGS) | ||
122 | |||
123 | -include $(OBJECTS:%.o=%.d) | ||
124 | |||