Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ode/ode-0.9/build/gnu/demo_feedback.make @ 216

Last change on this file since 216 was 216, checked in by mathiask, 17 years ago

[Physik] add ode-0.9

File size: 4.7 KB
RevLine 
[216]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/feedback/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_feedback.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/feedback/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_feedback.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/feedback/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_feedback.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/feedback/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_feedback.exe
65  BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
66endif
67
68OBJECTS := \
69        $(OBJDIR)/demo_feedback.o \
70
71RESOURCES := \
72        $(OBJDIR)/resources.res \
73
74MKDIR_TYPE := msdos
75CMD := $(subst \,\\,$(ComSpec)$(COMSPEC))
76ifeq (,$(CMD))
77  MKDIR_TYPE := posix
78endif
79ifeq (/bin/sh.exe,$(SHELL))
80  MKDIR_TYPE := posix
81endif
82ifeq ($(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)
87else
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))
92endif
93
94.PHONY: clean
95
96$(OUTDIR)/$(TARGET): $(OBJECTS) $(LDDEPS) $(RESOURCES)
97        @echo Linking demo_feedback
98        -@$(CMD_MKBINDIR)
99        -@$(CMD_MKLIBDIR)
100        -@$(CMD_MKOUTDIR)
101        @$(BLDCMD)
102
103clean:
104        @echo Cleaning demo_feedback
105ifeq ($(MKDIR_TYPE),posix)
106        -@rm -rf $(OUTDIR)/$(TARGET) $(OBJDIR)
107else
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))
111endif
112
113$(OBJDIR)/demo_feedback.o: ../../ode/demo/demo_feedback.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
Note: See TracBrowser for help on using the repository browser.