diff options
author | dan miller | 2007-10-19 05:15:33 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 05:15:33 +0000 |
commit | 79eca25c945a535a7a0325999034bae17da92412 (patch) | |
tree | 40ff433d94859d629aac933d5ec73b382f62ba1a /libraries/ode-0.9/build/gnu/drawstuff.make | |
parent | adding ode source to /libraries (diff) | |
download | opensim-SC-79eca25c945a535a7a0325999034bae17da92412.zip opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.gz opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.bz2 opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.xz |
resubmitting ode
Diffstat (limited to 'libraries/ode-0.9/build/gnu/drawstuff.make')
-rw-r--r-- | libraries/ode-0.9/build/gnu/drawstuff.make | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/libraries/ode-0.9/build/gnu/drawstuff.make b/libraries/ode-0.9/build/gnu/drawstuff.make new file mode 100644 index 0000000..5d55c53 --- /dev/null +++ b/libraries/ode-0.9/build/gnu/drawstuff.make | |||
@@ -0,0 +1,130 @@ | |||
1 | # C++ Static Library 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/drawstuff/DebugDLL | ||
12 | OUTDIR := ../../lib/DebugDLL | ||
13 | CPPFLAGS := -MMD -D "WIN32" -D "DS_DLL" -D "USRDLL" -I "../../include" | ||
14 | CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g | ||
15 | CXXFLAGS := $(CFLAGS) | ||
16 | LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -shared -luser32 -lopengl32 -lglu32 -lwinmm -lgdi32 | ||
17 | LDDEPS := | ||
18 | RESFLAGS := -D "WIN32" -D "DS_DLL" -D "USRDLL" -I "../../include" | ||
19 | TARGET := drawstuff.dll | ||
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/drawstuff/ReleaseDLL | ||
27 | OUTDIR := ../../lib/ReleaseDLL | ||
28 | CPPFLAGS := -MMD -D "WIN32" -D "DS_DLL" -D "USRDLL" -I "../../include" | ||
29 | CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -O3 -fomit-frame-pointer | ||
30 | CXXFLAGS := $(CFLAGS) | ||
31 | LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -shared -s -luser32 -lopengl32 -lglu32 -lwinmm -lgdi32 | ||
32 | LDDEPS := | ||
33 | RESFLAGS := -D "WIN32" -D "DS_DLL" -D "USRDLL" -I "../../include" | ||
34 | TARGET := drawstuff.dll | ||
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/drawstuff/DebugLib | ||
42 | OUTDIR := ../../lib/DebugLib | ||
43 | CPPFLAGS := -MMD -D "WIN32" -D "DS_LIB" -I "../../include" | ||
44 | CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g | ||
45 | CXXFLAGS := $(CFLAGS) | ||
46 | LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -luser32 -lopengl32 -lglu32 -lwinmm -lgdi32 | ||
47 | LDDEPS := | ||
48 | RESFLAGS := -D "WIN32" -D "DS_LIB" -I "../../include" | ||
49 | TARGET := libdrawstuff.a | ||
50 | BLDCMD = ar -rcs $(OUTDIR)/$(TARGET) $(OBJECTS) $(TARGET_ARCH) | ||
51 | endif | ||
52 | |||
53 | ifeq ($(CONFIG),ReleaseLib) | ||
54 | BINDIR := ../../lib/ReleaseLib | ||
55 | LIBDIR := ../../lib/ReleaseLib | ||
56 | OBJDIR := obj/drawstuff/ReleaseLib | ||
57 | OUTDIR := ../../lib/ReleaseLib | ||
58 | CPPFLAGS := -MMD -D "WIN32" -D "DS_LIB" -I "../../include" | ||
59 | CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -O3 -fomit-frame-pointer | ||
60 | CXXFLAGS := $(CFLAGS) | ||
61 | LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -s -luser32 -lopengl32 -lglu32 -lwinmm -lgdi32 | ||
62 | LDDEPS := | ||
63 | RESFLAGS := -D "WIN32" -D "DS_LIB" -I "../../include" | ||
64 | TARGET := libdrawstuff.a | ||
65 | BLDCMD = ar -rcs $(OUTDIR)/$(TARGET) $(OBJECTS) $(TARGET_ARCH) | ||
66 | endif | ||
67 | |||
68 | OBJECTS := \ | ||
69 | $(OBJDIR)/drawstuff.o \ | ||
70 | $(OBJDIR)/windows.o \ | ||
71 | |||
72 | RESOURCES := \ | ||
73 | $(OBJDIR)/resources.res \ | ||
74 | |||
75 | MKDIR_TYPE := msdos | ||
76 | CMD := $(subst \,\\,$(ComSpec)$(COMSPEC)) | ||
77 | ifeq (,$(CMD)) | ||
78 | MKDIR_TYPE := posix | ||
79 | endif | ||
80 | ifeq (/bin/sh.exe,$(SHELL)) | ||
81 | MKDIR_TYPE := posix | ||
82 | endif | ||
83 | ifeq ($(MKDIR_TYPE),posix) | ||
84 | CMD_MKBINDIR := mkdir -p $(BINDIR) | ||
85 | CMD_MKLIBDIR := mkdir -p $(LIBDIR) | ||
86 | CMD_MKOUTDIR := mkdir -p $(OUTDIR) | ||
87 | CMD_MKOBJDIR := mkdir -p $(OBJDIR) | ||
88 | else | ||
89 | CMD_MKBINDIR := $(CMD) /c if not exist $(subst /,\\,$(BINDIR)) mkdir $(subst /,\\,$(BINDIR)) | ||
90 | CMD_MKLIBDIR := $(CMD) /c if not exist $(subst /,\\,$(LIBDIR)) mkdir $(subst /,\\,$(LIBDIR)) | ||
91 | CMD_MKOUTDIR := $(CMD) /c if not exist $(subst /,\\,$(OUTDIR)) mkdir $(subst /,\\,$(OUTDIR)) | ||
92 | CMD_MKOBJDIR := $(CMD) /c if not exist $(subst /,\\,$(OBJDIR)) mkdir $(subst /,\\,$(OBJDIR)) | ||
93 | endif | ||
94 | |||
95 | .PHONY: clean | ||
96 | |||
97 | $(OUTDIR)/$(TARGET): $(OBJECTS) $(LDDEPS) $(RESOURCES) | ||
98 | @echo Linking drawstuff | ||
99 | -@$(CMD_MKBINDIR) | ||
100 | -@$(CMD_MKLIBDIR) | ||
101 | -@$(CMD_MKOUTDIR) | ||
102 | @$(BLDCMD) | ||
103 | |||
104 | clean: | ||
105 | @echo Cleaning drawstuff | ||
106 | ifeq ($(MKDIR_TYPE),posix) | ||
107 | -@rm -rf $(OUTDIR)/$(TARGET) $(OBJDIR) | ||
108 | else | ||
109 | -@if exist $(subst /,\,$(OUTDIR)/$(TARGET)) del /q $(subst /,\,$(OUTDIR)/$(TARGET)) | ||
110 | -@if exist $(subst /,\,$(OBJDIR)) del /q $(subst /,\,$(OBJDIR)) | ||
111 | -@if exist $(subst /,\,$(OBJDIR)) rmdir /s /q $(subst /,\,$(OBJDIR)) | ||
112 | endif | ||
113 | |||
114 | $(OBJDIR)/drawstuff.o: ../../drawstuff/src/drawstuff.cpp | ||
115 | -@$(CMD_MKOBJDIR) | ||
116 | @echo $(notdir $<) | ||
117 | @$(CXX) $(CXXFLAGS) -o $@ -c $< | ||
118 | |||
119 | $(OBJDIR)/windows.o: ../../drawstuff/src/windows.cpp | ||
120 | -@$(CMD_MKOBJDIR) | ||
121 | @echo $(notdir $<) | ||
122 | @$(CXX) $(CXXFLAGS) -o $@ -c $< | ||
123 | |||
124 | $(OBJDIR)/resources.res: ../../drawstuff/src/resources.rc | ||
125 | -@$(CMD_MKOBJDIR) | ||
126 | @echo $(notdir $<) | ||
127 | @windres $< -O coff -o $@ $(RESFLAGS) | ||
128 | |||
129 | -include $(OBJECTS:%.o=%.d) | ||
130 | |||