Changeset 3031 for trunk/src/opengl/mesa
- Timestamp:
- Mar 7, 2000, 12:39:20 AM (25 years ago)
- Location:
- trunk/src/opengl/mesa
- Files:
-
- 2 added
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/3dfx/makefile
r3001 r3031 1 # $Id: makefile,v 1. 5 2000-03-04 19:41:39bird Exp $1 # $Id: makefile,v 1.6 2000-03-06 23:33:51 bird Exp $ 2 2 # 3 3 # PD-Win32 … … 6 6 # 7 7 8 # Directory macros. 8 9 PDWIN32_INCLUDE = ..\..\..\..\include 9 10 PDWIN32_LIB = ..\..\..\..\lib … … 11 12 PDWIN32_TOOLS = ..\..\..\..\tools\bin 12 13 14 15 # Compiler, tools, and interference rules. 13 16 !include $(PDWIN32_INCLUDE)/pdwin32.mk 14 15 17 MESADEFS= -DNO_PARALLEL -DNO_STEREO -DGL_MESA_window_pos -DTHREADS \ 16 18 -DUSE_X86_ASM_NOT -DUSE_MMX_ASM_NOT -DUSE_3DNOW_ASM_NOT \ 17 19 -DFX -DFX_V2 -DFX_SILENT -DBUILD_GL32 18 20 19 CFLAGS = -I.. -I..\GL $(CFLAGS_WIN32APP) -I $(PDWIN32_INCLUDE) -I..\..\glut -I..\..\glide\cvg\glide -I..\..\glide\swlibs\fxmisc -I..\..\glide\cvg\incsrc $(MESADEFS) /Wcnd- /Tdp20 CXXFLAGS = -I.. -I..\GL $(CXXFLAGS_WIN32APP) -I $(PDWIN32_INCLUDE) -I..\..\glut -I..\..\glide\cvg\glide -I..\..\glide\swlibs\fxmisc -I..\..\glide\cvg\incsrc $(MESADEFS)21 CFLAGS = -I.. -I..\GL $(CFLAGS_WIN32APP) -I..\..\glut -I..\..\glide\cvg\glide -I..\..\glide\swlibs\fxmisc -I..\..\glide\cvg\incsrc $(MESADEFS) /Wcnd- /Tdp 22 CXXFLAGS = -I.. -I..\GL $(CXXFLAGS_WIN32APP) -I..\..\glut -I..\..\glide\cvg\glide -I..\..\glide\swlibs\fxmisc -I..\..\glide\cvg\incsrc $(MESADEFS) 21 23 22 TARGET = OPENGL3223 24 24 all: $(TARGET).DLL 25 # 26 # Interference rule for sources in the parent directory. 27 # 28 {..}.c{$(OBJDIR)}.obj: 29 $(CC) $(CFLAGS) -c -Fo$(OBJDIR)\$(@B).obj $< 25 30 26 OBJS = fxapi.obj \27 fxcva.obj \28 fxclip.obj \29 fxdd.obj \30 fxddspan.obj \31 fxddtex.obj \32 fxglidew.obj \33 fxfastpath.obj \34 fxpipeline.obj \35 fxrender.obj \36 fxsanity.obj \37 fxsetup.obj \38 fxtexman.obj \39 fxtrifuncs.obj \40 fxvsetup.obj \41 fxwgl.obj initterm.obj resource.obj \42 accum.obj alpha.obj alphabuf.obj api1.obj api2.obj apiext.obj \43 attrib.obj bbox.obj bitmap.obj blend.obj clip.obj colortab.obj config.obj context.obj \44 copypix.obj cva.obj depth.obj dlist.obj drawpix.obj enable.obj enums.obj eval.obj \45 extensions.obj feedback.obj fog.obj get.obj glmisc.obj hash.obj image.obj light.obj \46 lines.obj logic.obj masking.obj matrix.obj mmath.obj mthreads.obj pb.obj pipeline.obj \47 pixel.obj pointers.obj points.obj polygon.obj quads.obj rastpos.obj readpix.obj \48 rect.obj scissor.obj shade.obj span.obj stages.obj stencil.obj teximage.obj texobj.obj texstate.obj \49 texture.obj translate.obj triangle.obj varray.obj vb.obj vbcull.obj vbfill.obj \50 vbindirect.obj vbrender.obj vbxform.obj vector.obj vertices.obj winpos.obj xform.obj zoom.obj \51 osmesa.obj52 31 53 $(TARGET).DLL: $(OBJS) $(TARGET).lrf $(TARGET).def 54 -$(LD2) $(LD2FLAGS) /FREE /NOE @$(TARGET).lrf 55 $(CP) $@ $(PDWIN32_BIN)\Glide 32 # Object files. All objects should be prefixed with $(OBJDIR)! 33 OBJS = \ 34 $(OBJDIR)\fxapi.obj \ 35 $(OBJDIR)\fxcva.obj \ 36 $(OBJDIR)\fxclip.obj \ 37 $(OBJDIR)\fxdd.obj \ 38 $(OBJDIR)\fxddspan.obj \ 39 $(OBJDIR)\fxddtex.obj \ 40 $(OBJDIR)\fxglidew.obj \ 41 $(OBJDIR)\fxfastpath.obj \ 42 $(OBJDIR)\fxpipeline.obj \ 43 $(OBJDIR)\fxrender.obj \ 44 $(OBJDIR)\fxsanity.obj \ 45 $(OBJDIR)\fxsetup.obj \ 46 $(OBJDIR)\fxtexman.obj \ 47 $(OBJDIR)\fxtrifuncs.obj \ 48 $(OBJDIR)\fxvsetup.obj \ 49 $(OBJDIR)\fxwgl.obj \ 50 $(OBJDIR)\initterm.obj \ 51 $(OBJDIR)\fxmesa32.obj \ 52 $(OBJDIR)\accum.obj \ 53 $(OBJDIR)\alpha.obj \ 54 $(OBJDIR)\alphabuf.obj \ 55 $(OBJDIR)\api1.obj \ 56 $(OBJDIR)\api2.obj \ 57 $(OBJDIR)\apiext.obj \ 58 $(OBJDIR)\attrib.obj \ 59 $(OBJDIR)\bbox.obj \ 60 $(OBJDIR)\bitmap.obj \ 61 $(OBJDIR)\blend.obj \ 62 $(OBJDIR)\clip.obj \ 63 $(OBJDIR)\colortab.obj \ 64 $(OBJDIR)\config.obj \ 65 $(OBJDIR)\context.obj \ 66 $(OBJDIR)\copypix.obj \ 67 $(OBJDIR)\cva.obj \ 68 $(OBJDIR)\depth.obj \ 69 $(OBJDIR)\dlist.obj \ 70 $(OBJDIR)\drawpix.obj \ 71 $(OBJDIR)\enable.obj \ 72 $(OBJDIR)\enums.obj \ 73 $(OBJDIR)\eval.obj \ 74 $(OBJDIR)\extensions.obj \ 75 $(OBJDIR)\feedback.obj \ 76 $(OBJDIR)\fog.obj \ 77 $(OBJDIR)\get.obj \ 78 $(OBJDIR)\glmisc.obj \ 79 $(OBJDIR)\hash.obj \ 80 $(OBJDIR)\image.obj \ 81 $(OBJDIR)\light.obj \ 82 $(OBJDIR)\lines.obj \ 83 $(OBJDIR)\logic.obj \ 84 $(OBJDIR)\masking.obj \ 85 $(OBJDIR)\matrix.obj \ 86 $(OBJDIR)\mmath.obj \ 87 $(OBJDIR)\mthreads.obj \ 88 $(OBJDIR)\pb.obj \ 89 $(OBJDIR)\pipeline.obj \ 90 $(OBJDIR)\pixel.obj \ 91 $(OBJDIR)\pointers.obj \ 92 $(OBJDIR)\points.obj \ 93 $(OBJDIR)\polygon.obj \ 94 $(OBJDIR)\quads.obj \ 95 $(OBJDIR)\rastpos.obj \ 96 $(OBJDIR)\readpix.obj \ 97 $(OBJDIR)\rect.obj \ 98 $(OBJDIR)\scissor.obj \ 99 $(OBJDIR)\shade.obj \ 100 $(OBJDIR)\span.obj \ 101 $(OBJDIR)\stages.obj \ 102 $(OBJDIR)\stencil.obj \ 103 $(OBJDIR)\teximage.obj \ 104 $(OBJDIR)\texobj.obj \ 105 $(OBJDIR)\texstate.obj \ 106 $(OBJDIR)\texture.obj \ 107 $(OBJDIR)\translate.obj \ 108 $(OBJDIR)\triangle.obj \ 109 $(OBJDIR)\varray.obj \ 110 $(OBJDIR)\vb.obj \ 111 $(OBJDIR)\vbcull.obj \ 112 $(OBJDIR)\vbfill.obj \ 113 $(OBJDIR)\vbindirect.obj \ 114 $(OBJDIR)\vbrender.obj \ 115 $(OBJDIR)\vbxform.obj \ 116 $(OBJDIR)\vector.obj \ 117 $(OBJDIR)\vertices.obj \ 118 $(OBJDIR)\winpos.obj \ 119 $(OBJDIR)\xform.obj \ 120 $(OBJDIR)\zoom.obj \ 121 $(OBJDIR)\osmesa.obj 56 122 57 $(TARGET).lrf: makefile 58 @echo Creating file <<$(@B).lrf 123 124 # Target name - name of the dll without extention and path. 125 TARGET = opengl32 126 127 128 # All rule - build objs, target dll, copies dll to bin and makes libs. 129 all: $(OBJDIR) \ 130 $(OBJDIR)\$(TARGET).dll \ 131 $(PDWIN32_BIN)\$(TARGET).dll \ 132 lib 133 134 135 # Lib rule - build importlibrary (and evt. other libs) 136 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib 137 138 139 # Dll rule - builds the target dll. 140 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf 141 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf 142 143 144 # Linker file - creates the parameter file passed on to the linker. 145 $(OBJDIR)\$(TARGET).lrf: makefile 146 @echo Creating file <<$@ 147 /OUT:$(OBJDIR)\$(TARGET).dll 148 /MAP:$(OBJDIR)\$(TARGET).map 59 149 $(OBJS) 60 /OUT:$(TARGET).DLL61 150 $(PDWIN32_LIB)\ODINCRT.LIB 62 151 $(PDWIN32_LIB)\KERNEL32.LIB … … 69 158 <<keep 70 159 71 resource.asm: fxmesa32.rc72 $(RC) $(RCFLAGS) -o resource.asm fxmesa32.rc73 160 74 # 75 # Tried to create a general interference rule for these? 76 # As long as there isn't any .c, .cpp or .asm files with matching 77 # names in the current directory thise shouldn't be any problem. 78 # For example: 79 # {..}.c.obj: 80 # $(CC) $(CFLAGS) -c $< 81 # 82 # Regards knut. 83 # 84 85 accum.obj: ..\accum.c 86 $(CC) $(CFLAGS) -c ..\accum.c 87 88 alpha.obj: ..\alpha.c 89 $(CC) $(CFLAGS) -c ..\alpha.c 90 alphabuf.obj: ..\alphabuf.c 91 $(CC) $(CFLAGS) -c ..\alphabuf.c 92 api1.obj: ..\api1.c 93 $(CC) $(CFLAGS) -c ..\api1.c 94 api2.obj: ..\api2.c 95 $(CC) $(CFLAGS) -c ..\api2.c 96 apiext.obj: ..\apiext.c 97 $(CC) $(CFLAGS) -c ..\apiext.c 98 attrib.obj: ..\attrib.c 99 $(CC) $(CFLAGS) -c ..\attrib.c 100 bbox.obj: ..\bbox.c 101 $(CC) $(CFLAGS) -c ..\bbox.c 102 bitmap.obj: ..\bitmap.c 103 $(CC) $(CFLAGS) -c ..\bitmap.c 104 blend.obj: ..\blend.c 105 $(CC) $(CFLAGS) -c ..\blend.c 106 clip.obj: ..\clip.c 107 $(CC) $(CFLAGS) -c ..\clip.c 108 colortab.obj: ..\colortab.c 109 $(CC) $(CFLAGS) -c ..\colortab.c 110 config.obj: ..\config.c 111 $(CC) $(CFLAGS) -c ..\config.c 112 context.obj: ..\context.c 113 $(CC) $(CFLAGS) -c ..\context.c 114 copypix.obj: ..\copypix.c 115 $(CC) $(CFLAGS) -c ..\copypix.c 116 cva.obj: ..\cva.c 117 $(CC) $(CFLAGS) -c ..\cva.c 118 depth.obj: ..\depth.c 119 $(CC) $(CFLAGS) -c ..\depth.c 120 dlist.obj: ..\dlist.c 121 $(CC) $(CFLAGS) -c ..\dlist.c 122 drawpix.obj: ..\drawpix.c 123 $(CC) $(CFLAGS) -c ..\drawpix.c 124 enable.obj: ..\enable.c 125 $(CC) $(CFLAGS) -c ..\enable.c 126 enums.obj: ..\enums.c 127 $(CC) $(CFLAGS) -c ..\enums.c 128 eval.obj: ..\eval.c 129 $(CC) $(CFLAGS) -c ..\eval.c 130 extensions.obj: ..\extensions.c 131 $(CC) $(CFLAGS) -c ..\extensions.c 132 feedback.obj: ..\feedback.c 133 $(CC) $(CFLAGS) -c ..\feedback.c 134 fog.obj: ..\fog.c 135 $(CC) $(CFLAGS) -c ..\fog.c 136 get.obj: ..\get.c 137 $(CC) $(CFLAGS) -c ..\get.c 138 glmisc.obj: ..\glmisc.c 139 $(CC) $(CFLAGS) -c ..\glmisc.c 140 hash.obj: ..\hash.c 141 $(CC) $(CFLAGS) -c ..\hash.c 142 image.obj: ..\image.c 143 $(CC) $(CFLAGS) -c ..\image.c 144 light.obj: ..\light.c 145 $(CC) $(CFLAGS) -c ..\light.c 146 lines.obj: ..\lines.c 147 $(CC) $(CFLAGS) -c ..\lines.c 148 logic.obj: ..\logic.c 149 $(CC) $(CFLAGS) -c ..\logic.c 150 masking.obj: ..\masking.c 151 $(CC) $(CFLAGS) -c ..\masking.c 152 matrix.obj: ..\matrix.c 153 $(CC) $(CFLAGS) -c ..\matrix.c 154 mmath.obj: ..\mmath.c 155 $(CC) $(CFLAGS) -c ..\mmath.c 156 mthreads.obj: ..\mthreads.c 157 $(CC) $(CFLAGS) -c ..\mthreads.c 158 pb.obj: ..\pb.c 159 $(CC) $(CFLAGS) -c ..\pb.c 160 pipeline.obj: ..\pipeline.c 161 $(CC) $(CFLAGS) -c ..\pipeline.c 162 pixel.obj: ..\pixel.c 163 $(CC) $(CFLAGS) -c ..\pixel.c 164 pointers.obj: ..\pointers.c 165 $(CC) $(CFLAGS) -c ..\pointers.c 166 points.obj: ..\points.c 167 $(CC) $(CFLAGS) -c ..\points.c 168 polygon.obj: ..\polygon.c 169 $(CC) $(CFLAGS) -c ..\polygon.c 170 quads.obj: ..\quads.c 171 $(CC) $(CFLAGS) -c ..\quads.c 172 rastpos.obj: ..\rastpos.c 173 $(CC) $(CFLAGS) -c ..\rastpos.c 174 readpix.obj: ..\readpix.c 175 $(CC) $(CFLAGS) -c ..\readpix.c 176 rect.obj: ..\rect.c 177 $(CC) $(CFLAGS) -c ..\rect.c 178 scissor.obj: ..\scissor.c 179 $(CC) $(CFLAGS) -c ..\scissor.c 180 shade.obj: ..\shade.c 181 $(CC) $(CFLAGS) -c ..\shade.c 182 span.obj: ..\span.c 183 $(CC) $(CFLAGS) -c ..\span.c 184 stages.obj: ..\stages.c 185 $(CC) $(CFLAGS) -c ..\stages.c 186 stencil.obj: ..\stencil.c 187 $(CC) $(CFLAGS) -c ..\stencil.c 188 teximage.obj: ..\teximage.c 189 $(CC) $(CFLAGS) -c ..\teximage.c 190 texobj.obj: ..\texobj.c 191 $(CC) $(CFLAGS) -c ..\texobj.c 192 texstate.obj: ..\texstate.c 193 $(CC) $(CFLAGS) -c ..\texstate.c 194 texture.obj: ..\texture.c 195 $(CC) $(CFLAGS) -c ..\texture.c 196 translate.obj: ..\translate.c 197 $(CC) $(CFLAGS) -c ..\translate.c 198 triangle.obj: ..\triangle.c 199 $(CC) $(CFLAGS) -c ..\triangle.c 200 varray.obj: ..\varray.c 201 $(CC) $(CFLAGS) -c ..\varray.c 202 vb.obj: ..\vb.c 203 $(CC) $(CFLAGS) -c ..\vb.c 204 vbcull.obj: ..\vbcull.c 205 $(CC) $(CFLAGS) -c ..\vbcull.c 206 vbfill.obj: ..\vbfill.c 207 $(CC) $(CFLAGS) -c ..\vbfill.c 208 vbindirect.obj: ..\vbindirect.c 209 $(CC) $(CFLAGS) -c ..\vbindirect.c 210 vbrender.obj: ..\vbrender.c 211 $(CC) $(CFLAGS) -c ..\vbrender.c 212 vbxform.obj: ..\vbxform.c 213 $(CC) $(CFLAGS) -c ..\vbxform.c 214 vector.obj: ..\vector.c 215 $(CC) $(CFLAGS) -c ..\vector.c 216 vertices.obj: ..\vertices.c 217 $(CC) $(CFLAGS) -c ..\vertices.c 218 winpos.obj: ..\winpos.c 219 $(CC) $(CFLAGS) -c ..\winpos.c 220 xform.obj: ..\xform.c 221 $(CC) $(CFLAGS) -c ..\xform.c 222 zoom.obj: ..\zoom.c 223 $(CC) $(CFLAGS) -c ..\zoom.c 224 osmesa.obj: ..\osmesa.c 225 $(CC) $(CFLAGS) -c ..\osmesa.c 226 wmesa.obj: ..\wmesa.obj 227 $(CC) $(CFLAGS) -c ..\osmesa.obj 228 internal.obj: ..\internal.c 229 $(CC) $(CFLAGS) -c ..\internal.c 230 231 161 # Dep rule - makes depenencies for C, C++ and Asm files. 232 162 dep: 233 163 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win -I..\..\glut -I..\GL -I.. -I$(PDWIN32_INCLUDE)\glide \ 234 164 *.c *.cpp *.h *.asm *.inc ..\*.c $(PDWIN32_INCLUDE)\*.h 235 165 236 !ifndef NODEP237 !include .depend238 !endif239 166 240 clean: 241 $(RM) *.obj *.dll *.lib *.lrf resource.asm $(PDWIN32_BIN)\$(TARGET).dll \ 242 $(PDWIN32_LIB)\$(TARGET).lib 167 # Includes the common rules. 168 !include $(PDWIN32_INCLUDE)/pdwin32.post 243 169
Note:
See TracChangeset
for help on using the changeset viewer.