nv: define NV30/40/50_MAX_TEXTURE_LEVELS
[mesa.git] / progs / demos / Makefile.win
1
2 # Mesa 3-D graphics library
3 # Version: 6.5
4 # Copyright (C) 1995-2006 Brian Paul
5
6 # Makefile for GLUT-based demo programs for Windows
7
8 # Build the Mesa and GLUT libraries by using the Visual Studio
9 # Workspaces in this distribution before running this Makefile.
10
11 # Invocation: nmake -f Makefile.win
12
13 NODEBUG=1
14 !include <win32.mak>
15
16 ##### MACROS #####
17
18 TOP = ..\..
19 INCDIR = ..\..\include
20 LIBDIR = ..\..\lib
21 LIBS = GLUT32.LIB OPENGL32.LIB
22
23 all: OPENGL32.DLL GLU32.DLL GLUT32.DLL \
24 readtex.h readtex.c showbuffer.h showbuffer.c \
25 extfuncs.h trackball.h trackball.c \
26 arbfplight.exe arbfslight.exe arbocclude.exe bounce.exe \
27 clearspd.exe cubemap.exe drawpix.exe engine.exe \
28 fire.exe fogcoord.exe \
29 fplight.exe fslight.exe gamma.exe gearbox.exe \
30 gears.exe geartrain.exe gloss.exe \
31 glinfo.exe glslnoise.exe \
32 gltestperf.exe glutfx.exe ipers.exe isosurf.exe lodbias.exe \
33 morph3d.exe multiarb.exe occlude.exe paltex.exe pointblast.exe \
34 ray.exe readpix.exe reflect.exe renormal.exe \
35 shadowtex.exe singlebuffer.exe spectex.exe spriteblast.exe \
36 stex3d.exe teapot.exe terrain.exe tessdemo.exe texcyl.exe \
37 texdown.exe texenv.exe texobj.exe trispd.exe tunnel.exe tunnel2.exe \
38 winpos.exe
39
40 arbfplight.exe: arbfplight.obj
41 arbfslight.exe: arbfslight.obj
42 arbocclude.exe: arbocclude.obj
43 bounce.exe: bounce.obj
44 clearspd.exe: clearspd.obj
45 cubemap.exe: cubemap.obj readtex.obj
46 drawpix.exe: drawpix.obj readtex.obj
47 engine.exe: engine.obj readtex.obj trackball.obj
48 fire.exe: fire.obj readtex.obj
49 fogcoord.exe: fogcoord.obj readtex.obj
50 fplight.exe: fplight.obj
51 fslight.exe: fslight.obj
52 gamma.exe: gamma.obj
53 gearbox.exe: gearbox.obj
54 gears.exe: gears.obj
55 geartrain.exe: geartrain.obj
56 gloss.exe: gloss.obj readtex.obj trackball.obj
57 glinfo.exe: glinfo.obj
58 glslnoise.exe: glslnoise.obj
59 gltestperf.exe: gltestperf.obj
60 glutfx.exe: glutfx.obj
61 ipers.exe: ipers.obj readtex.obj
62 isosurf.exe: isosurf.obj readtex.obj
63 lodbias.exe: lodbias.obj readtex.obj
64 morph3d.exe: morph3d.obj
65 multiarb.exe: multiarb.obj readtex.obj
66 occlude.exe: occlude.obj
67 paltex.exe: paltex.obj
68 pointblast.exe: pointblast.obj
69 ray.exe: ray.obj
70 readpix.exe: readpix.obj readtex.obj
71 reflect.exe: reflect.obj readtex.obj showbuffer.obj
72 renormal.exe: renormal.obj
73 shadowtex.exe: shadowtex.obj showbuffer.obj
74 singlebuffer.exe: singlebuffer.obj
75 spectex.exe: spectex.obj
76 spriteblast.exe: spriteblast.obj
77 stex3d.exe: stex3d.obj
78 teapot.exe: teapot.obj readtex.obj
79 terrain.exe: terrain.obj
80 tessdemo.exe: tessdemo.obj
81 texcyl.exe: texcyl.obj readtex.obj
82 texdown.exe: texdown.obj
83 texenv.exe: texenv.obj
84 texobj.exe: texobj.obj
85 trispd.exe: trispd.obj
86 tunnel.exe: tunnel.obj readtex.obj
87 tunnel2.exe: tunnel2.obj readtex.obj
88 winpos.exe: winpos.obj readtex.obj
89
90
91 OPENGL32.DLL: $(LIBDIR)\OPENGL32.DLL
92 copy $? .
93
94 GLU32.DLL: $(LIBDIR)\GLU32.DLL
95 copy $? .
96
97 GLUT32.DLL: $(LIBDIR)\GLUT32.DLL
98 copy $? .
99
100 readtex.c: $(TOP)\progs\util\readtex.c
101 copy $** .
102
103 readtex.h: $(TOP)\progs\util\readtex.h
104 copy $** .
105
106 showbuffer.c: $(TOP)\progs\util\showbuffer.c
107 copy $** .
108
109 showbuffer.h: $(TOP)\progs\util\showbuffer.h
110 copy $** .
111
112 trackball.c: $(TOP)\progs\util\trackball.c
113 copy $** .
114
115 trackball.h: $(TOP)\progs\util\trackball.h
116 copy $** .
117
118 extfuncs.h: $(TOP)\progs\util\extfuncs.h
119 copy $** .
120
121 .obj.exe:
122 $(link) $(ldebug) -out:$@ $** /LIBPATH:$(LIBDIR) $(LIBS)
123
124 .c.obj:
125 $(cc) $(cdebug) $(cflags) $(cvars) -D_USE_MATH_DEFINES /I$(INCDIR) $*.c
126
127 clean::
128 del *.obj *.exe readtex.* showbuffer.* trackball.*
129
130 clobber::
131