1 | # Makefile for jpeglib |
---|
2 | |
---|
3 | CC=cl |
---|
4 | LD=link |
---|
5 | O=.obj |
---|
6 | RM=del |
---|
7 | RMDIR=rd /s |
---|
8 | MKDIR=md |
---|
9 | CHDIR=cd |
---|
10 | ECHO=echo |
---|
11 | CP=copy |
---|
12 | S=^\ |
---|
13 | |
---|
14 | !IF ( "$(CONFIG)" == "Debug" ) |
---|
15 | |
---|
16 | LIBDIR=Debug |
---|
17 | CFLAGS=-Zi -nologo -MDd -Y- -Iinclude |
---|
18 | LDFLAGS=-NOLOGO -DEBUG -DLL |
---|
19 | |
---|
20 | !ELSE |
---|
21 | |
---|
22 | LIBDIR=Release |
---|
23 | CFLAGS=-Ox -nologo -MD -Y- -Iinclude -I..$(S)Dependencies$(S) |
---|
24 | LDFLAGS=-NOLOGO -DLL |
---|
25 | |
---|
26 | !ENDIF |
---|
27 | |
---|
28 | #uncomment next to put error messages in a file |
---|
29 | #ERRFILE= >> ogremainerrs |
---|
30 | |
---|
31 | # variables |
---|
32 | SRCDIR = src |
---|
33 | OBJDIR = obj$(S)$(LIBDIR) |
---|
34 | HDRDIR = include |
---|
35 | |
---|
36 | OBJ = \ |
---|
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 | |
---|
106 | SRC = \ |
---|
107 | src$(S)OgreArchiveEx.cpp \ |
---|
108 | src$(S)OgreArchiveManager.cpp \ |
---|
109 | src$(S)OgreAxisAlignedBox.cpp \ |
---|
110 | src$(S)OgreBillboard.cpp \ |
---|
111 | src$(S)OgreBillboardSet.cpp \ |
---|
112 | src$(S)OgreBitwise.cpp \ |
---|
113 | src$(S)OgreCamera.cpp \ |
---|
114 | src$(S)OgreColourValue.cpp \ |
---|
115 | src$(S)OgreConfigFile.cpp \ |
---|
116 | src$(S)OgreConfigOptionMap.cpp \ |
---|
117 | src$(S)OgreController.cpp \ |
---|
118 | src$(S)OgreControllerManager.cpp \ |
---|
119 | src$(S)OgreDataChunk.cpp \ |
---|
120 | src$(S)OgreDynLib.cpp \ |
---|
121 | src$(S)OgreDynLibManager.cpp \ |
---|
122 | src$(S)OgreEntity.cpp \ |
---|
123 | src$(S)OgreException.cpp \ |
---|
124 | src$(S)OgreImage.cpp \ |
---|
125 | src$(S)OgreInput.cpp \ |
---|
126 | src$(S)OgreLight.cpp \ |
---|
127 | src$(S)OgreLog.cpp \ |
---|
128 | src$(S)OgreLogManager.cpp \ |
---|
129 | src$(S)OgreMaterial.cpp \ |
---|
130 | src$(S)OgreMaterialManager.cpp \ |
---|
131 | src$(S)OgreMath.cpp \ |
---|
132 | src$(S)OgreMatrix3.cpp \ |
---|
133 | src$(S)OgreMatrix4.cpp \ |
---|
134 | src$(S)OgreMesh.cpp \ |
---|
135 | src$(S)OgreMeshManager.cpp \ |
---|
136 | src$(S)OgreMovableObject.cpp \ |
---|
137 | src$(S)OgreOofModelFile.cpp \ |
---|
138 | src$(S)OgreParticleEmitter.cpp \ |
---|
139 | src$(S)OgreParticleEmitterCommands.cpp \ |
---|
140 | src$(S)OgreParticleIterator.cpp \ |
---|
141 | src$(S)OgreParticleSystem.cpp \ |
---|
142 | src$(S)OgreParticleSystemManager.cpp \ |
---|
143 | src$(S)OgrePatchSurface.cpp \ |
---|
144 | src$(S)OgrePlane.cpp \ |
---|
145 | src$(S)OgrePlatformManager.cpp \ |
---|
146 | src$(S)OgrePredefinedControllers.cpp \ |
---|
147 | src$(S)OgreQuaternion.cpp \ |
---|
148 | src$(S)OgreRenderQueue.cpp \ |
---|
149 | src$(S)OgreRenderSystem.cpp \ |
---|
150 | src$(S)OgreRenderTarget.cpp \ |
---|
151 | src$(S)OgreRenderWindow.cpp \ |
---|
152 | src$(S)OgreRenderWindowMap.cpp \ |
---|
153 | src$(S)OgreResourceManager.cpp \ |
---|
154 | src$(S)OgreResourceMap.cpp \ |
---|
155 | src$(S)OgreRoot.cpp \ |
---|
156 | src$(S)OgreSceneManager.cpp \ |
---|
157 | src$(S)OgreSceneManagerEnumerator.cpp \ |
---|
158 | src$(S)OgreSceneNode.cpp \ |
---|
159 | src$(S)OgreSDDataChunk.cpp \ |
---|
160 | src$(S)OgreSimpleRenderable.cpp \ |
---|
161 | src$(S)OgreSingleton.cpp \ |
---|
162 | src$(S)OgreString.cpp \ |
---|
163 | src$(S)OgreStringConverter.cpp \ |
---|
164 | src$(S)OgreStringInterface.cpp \ |
---|
165 | src$(S)OgreStringVector.cpp \ |
---|
166 | src$(S)OgreSubEntity.cpp \ |
---|
167 | src$(S)OgreSubMesh.cpp \ |
---|
168 | src$(S)OgreTextureLayer.cpp \ |
---|
169 | src$(S)OgreTextureManager.cpp \ |
---|
170 | src$(S)OgreUnzip.c \ |
---|
171 | src$(S)OgreVector3.cpp \ |
---|
172 | src$(S)OgreViewport.cpp \ |
---|
173 | src$(S)OgreZip.cpp \ |
---|
174 | src$(S)OgreZipArchiveFactory.cpp |
---|
175 | |
---|
176 | HDR = |
---|
177 | |
---|
178 | OUTLIB=lib$(S)$(LIBDIR)$(S)OgreMain.dll |
---|
179 | |
---|
180 | all: $(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 | |
---|
194 | config: |
---|
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 | |
---|
209 | clean: |
---|
210 | -$(RM) $(OBJ) |
---|
211 | -$(RM) $(OUTLIB) |
---|