source: OGRE/trunk/ogrenew/OgreMain/scripts/makefile.vc6 @ 657

Revision 657, 5.3 KB checked in by mattausch, 19 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1# Makefile for jpeglib
2
3CC=cl
4LD=link
5O=.obj
6RM=del
7RMDIR=rd /s
8MKDIR=md
9CHDIR=cd
10ECHO=echo
11CP=copy
12S=^\
13
14!IF ( "$(CONFIG)" == "Debug" )
15
16LIBDIR=Debug
17CFLAGS=-Zi -nologo -MDd -Y- -Iinclude
18LDFLAGS=-NOLOGO -DEBUG -DLL
19
20!ELSE
21
22LIBDIR=Release
23CFLAGS=-Ox -nologo -MD -Y- -Iinclude -I..$(S)Dependencies$(S)
24LDFLAGS=-NOLOGO -DLL
25
26!ENDIF
27
28#uncomment next to put error messages in a file
29#ERRFILE= >> ogremainerrs
30
31# variables
32SRCDIR = src
33OBJDIR = obj$(S)$(LIBDIR)
34HDRDIR = include
35
36OBJ = \
37$(OBJDIR)$(S)OgreArchiveEx$(O) \
38$(OBJDIR)$(S)OgreArchiveManager$(O) \
39$(OBJDIR)$(S)OgreAxisAlignedBox$(O) \
40$(OBJDIR)$(S)OgreBillboard$(O) \
41$(OBJDIR)$(S)OgreBillboardSet$(O) \
42$(OBJDIR)$(S)OgreBitwise$(O) \
43$(OBJDIR)$(S)OgreCamera$(O) \
44$(OBJDIR)$(S)OgreColourValue$(O) \
45$(OBJDIR)$(S)OgreConfigFile$(O) \
46$(OBJDIR)$(S)OgreConfigOptionMap$(O) \
47$(OBJDIR)$(S)OgreController$(O) \
48$(OBJDIR)$(S)OgreControllerManager$(O) \
49$(OBJDIR)$(S)OgreDataChunk$(O) \
50$(OBJDIR)$(S)OgreDynLib$(O) \
51$(OBJDIR)$(S)OgreDynLibManager$(O) \
52$(OBJDIR)$(S)OgreEntity$(O) \
53$(OBJDIR)$(S)OgreException$(O) \
54$(OBJDIR)$(S)OgreImage$(O) \
55$(OBJDIR)$(S)OgreInput$(O) \
56$(OBJDIR)$(S)OgreLight$(O) \
57$(OBJDIR)$(S)OgreLog$(O) \
58$(OBJDIR)$(S)OgreLogManager$(O) \
59$(OBJDIR)$(S)OgreMaterial$(O) \
60$(OBJDIR)$(S)OgreMaterialManager$(O) \
61$(OBJDIR)$(S)OgreMath$(O) \
62$(OBJDIR)$(S)OgreMatrix3$(O) \
63$(OBJDIR)$(S)OgreMatrix4$(O) \
64$(OBJDIR)$(S)OgreMesh$(O) \
65$(OBJDIR)$(S)OgreMeshManager$(O) \
66$(OBJDIR)$(S)OgreMovableObject$(O) \
67$(OBJDIR)$(S)OgreOofModelFile$(O) \
68$(OBJDIR)$(S)OgreParticleEmitter$(O) \
69$(OBJDIR)$(S)OgreParticleEmitterCommands$(O) \
70$(OBJDIR)$(S)OgreParticleIterator$(O) \
71$(OBJDIR)$(S)OgreParticleSystem$(O) \
72$(OBJDIR)$(S)OgreParticleSystemManager$(O) \
73$(OBJDIR)$(S)OgrePatchSurface$(O) \
74$(OBJDIR)$(S)OgrePlane$(O) \
75$(OBJDIR)$(S)OgrePlatformManager$(O) \
76$(OBJDIR)$(S)OgrePredefinedControllers$(O) \
77$(OBJDIR)$(S)OgreQuaternion$(O) \
78$(OBJDIR)$(S)OgreRenderQueue$(O) \
79$(OBJDIR)$(S)OgreRenderSystem$(O) \
80$(OBJDIR)$(S)OgreRenderTarget$(O) \
81$(OBJDIR)$(S)OgreRenderWindow$(O) \
82$(OBJDIR)$(S)OgreRenderWindowMap$(O) \
83$(OBJDIR)$(S)OgreResourceManager$(O) \
84$(OBJDIR)$(S)OgreResourceMap$(O) \
85$(OBJDIR)$(S)OgreRoot$(O) \
86$(OBJDIR)$(S)OgreSceneManager$(O) \
87$(OBJDIR)$(S)OgreSceneManagerEnumerator$(O) \
88$(OBJDIR)$(S)OgreSceneNode$(O) \
89$(OBJDIR)$(S)OgreSDDataChunk$(O) \
90$(OBJDIR)$(S)OgreSimpleRenderable$(O) \
91$(OBJDIR)$(S)OgreSingleton$(O) \
92$(OBJDIR)$(S)OgreString$(O) \
93$(OBJDIR)$(S)OgreStringConverter$(O) \
94$(OBJDIR)$(S)OgreStringInterface$(O) \
95$(OBJDIR)$(S)OgreStringVector$(O) \
96$(OBJDIR)$(S)OgreSubEntity$(O) \
97$(OBJDIR)$(S)OgreSubMesh$(O) \
98$(OBJDIR)$(S)OgreTextureLayer$(O) \
99$(OBJDIR)$(S)OgreTextureManager$(O) \
100$(OBJDIR)$(S)OgreUnzip$(O) \
101$(OBJDIR)$(S)OgreVector3$(O) \
102$(OBJDIR)$(S)OgreViewport$(O) \
103$(OBJDIR)$(S)OgreZip$(O) \
104$(OBJDIR)$(S)OgreZipArchiveFactory$(O)
105
106SRC = \
107src$(S)OgreArchiveEx.cpp \
108src$(S)OgreArchiveManager.cpp \
109src$(S)OgreAxisAlignedBox.cpp \
110src$(S)OgreBillboard.cpp \
111src$(S)OgreBillboardSet.cpp \
112src$(S)OgreBitwise.cpp \
113src$(S)OgreCamera.cpp \
114src$(S)OgreColourValue.cpp \
115src$(S)OgreConfigFile.cpp \
116src$(S)OgreConfigOptionMap.cpp \
117src$(S)OgreController.cpp \
118src$(S)OgreControllerManager.cpp \
119src$(S)OgreDataChunk.cpp \
120src$(S)OgreDynLib.cpp \
121src$(S)OgreDynLibManager.cpp \
122src$(S)OgreEntity.cpp \
123src$(S)OgreException.cpp \
124src$(S)OgreImage.cpp \
125src$(S)OgreInput.cpp \
126src$(S)OgreLight.cpp \
127src$(S)OgreLog.cpp \
128src$(S)OgreLogManager.cpp \
129src$(S)OgreMaterial.cpp \
130src$(S)OgreMaterialManager.cpp \
131src$(S)OgreMath.cpp \
132src$(S)OgreMatrix3.cpp \
133src$(S)OgreMatrix4.cpp \
134src$(S)OgreMesh.cpp \
135src$(S)OgreMeshManager.cpp \
136src$(S)OgreMovableObject.cpp \
137src$(S)OgreOofModelFile.cpp \
138src$(S)OgreParticleEmitter.cpp \
139src$(S)OgreParticleEmitterCommands.cpp \
140src$(S)OgreParticleIterator.cpp \
141src$(S)OgreParticleSystem.cpp \
142src$(S)OgreParticleSystemManager.cpp \
143src$(S)OgrePatchSurface.cpp \
144src$(S)OgrePlane.cpp \
145src$(S)OgrePlatformManager.cpp \
146src$(S)OgrePredefinedControllers.cpp \
147src$(S)OgreQuaternion.cpp \
148src$(S)OgreRenderQueue.cpp \
149src$(S)OgreRenderSystem.cpp \
150src$(S)OgreRenderTarget.cpp \
151src$(S)OgreRenderWindow.cpp \
152src$(S)OgreRenderWindowMap.cpp \
153src$(S)OgreResourceManager.cpp \
154src$(S)OgreResourceMap.cpp \
155src$(S)OgreRoot.cpp \
156src$(S)OgreSceneManager.cpp \
157src$(S)OgreSceneManagerEnumerator.cpp \
158src$(S)OgreSceneNode.cpp \
159src$(S)OgreSDDataChunk.cpp \
160src$(S)OgreSimpleRenderable.cpp \
161src$(S)OgreSingleton.cpp \
162src$(S)OgreString.cpp \
163src$(S)OgreStringConverter.cpp \
164src$(S)OgreStringInterface.cpp \
165src$(S)OgreStringVector.cpp \
166src$(S)OgreSubEntity.cpp \
167src$(S)OgreSubMesh.cpp \
168src$(S)OgreTextureLayer.cpp \
169src$(S)OgreTextureManager.cpp \
170src$(S)OgreUnzip.c \
171src$(S)OgreVector3.cpp \
172src$(S)OgreViewport.cpp \
173src$(S)OgreZip.cpp \
174src$(S)OgreZipArchiveFactory.cpp
175
176HDR =
177
178OUTLIB=lib$(S)$(LIBDIR)$(S)OgreMain.dll
179
180all: $(OUTLIB)
181
182$(OUTLIB): config $(OBJ)
183        $(LD) $(OBJ) $(LDFLAGS) -OUT:$(OUTLIB)
184
185
186{$(SRCDIR)}.c{$(OBJDIR)}$(O):
187        $(CC) -c $(CFLAGS) -Fo$*$(O) $<
188
189{$(SRCDIR)}.cpp{$(OBJDIR)}$(O):
190        $(CC) -c $(CFLAGS) -Fo$*$(O) $<
191
192$(OBJ):
193
194config:
195        $(CHDIR) ..$(S)Dependencies
196       
197        $(CHDIR) zlib
198        $(MAKE) -f scripts$(S)makefile.vc6 CONFIG=$(CONFIG)
199        $(CHDIR) ..
200
201        $(CHDIR) libpng
202        $(MAKE) -f scripts$(S)makefile.vc6 CONFIG=$(CONFIG)
203        $(CHDIR) ..
204
205        $(CHDIR) jpeglib
206        $(MAKE) -f scripts$(S)makefile.vc6 CONFIG=$(CONFIG)
207        $(CHDIR) ..
208
209clean:
210        -$(RM) $(OBJ)
211        -$(RM) $(OUTLIB)
Note: See TracBrowser for help on using the repository browser.