2
# Mesa 3-D graphics library
4
# Copyright (C) 1995-2006 Brian Paul
6
# Makefile for GLUT-based demo programs for Windows
8
# Build the Mesa and GLUT libraries by using the Visual Studio
9
# Workspaces in this distribution before running this Makefile.
11
# Invocation: nmake -f Makefile.win
19
INCDIR = ..\..\include
21
LIBS = GLUT32.LIB OPENGL32.LIB
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 \
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
53
gearbox.exe: gearbox.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
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
91
OPENGL32.DLL: $(LIBDIR)\OPENGL32.DLL
94
GLU32.DLL: $(LIBDIR)\GLU32.DLL
97
GLUT32.DLL: $(LIBDIR)\GLUT32.DLL
100
readtex.c: $(TOP)\progs\util\readtex.c
103
readtex.h: $(TOP)\progs\util\readtex.h
106
showbuffer.c: $(TOP)\progs\util\showbuffer.c
109
showbuffer.h: $(TOP)\progs\util\showbuffer.h
112
trackball.c: $(TOP)\progs\util\trackball.c
115
trackball.h: $(TOP)\progs\util\trackball.h
118
extfuncs.h: $(TOP)\progs\util\extfuncs.h
122
$(link) $(ldebug) -out:$@ $** /LIBPATH:$(LIBDIR) $(LIBS)
125
$(cc) $(cdebug) $(cflags) $(cvars) -D_USE_MATH_DEFINES /I$(INCDIR) $*.c
128
del *.obj *.exe readtex.* showbuffer.* trackball.*