Files
third_party_mesa3d/progs/demos/Makefile.X11

102 lines
1.3 KiB
Makefile
Raw Normal View History

# Makefile for GLUT-based demo programs
1999-08-19 00:55:39 +00:00
##### MACROS #####
TOP = ../..
INCDIR = $(TOP)/include
LIBDIR = $(TOP)/lib
1999-08-19 00:55:39 +00:00
LIBS = -L$(LIBDIR) $(APP_LIB_DEPS)
1999-08-19 00:55:39 +00:00
2000-11-01 16:02:52 +00:00
OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
1999-08-19 00:55:39 +00:00
LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
PROGS = \
arbfplight \
2003-06-13 02:38:35 +00:00
arbocclude \
bounce \
2000-06-27 15:56:46 +00:00
clearspd \
cubemap \
drawpix \
2000-06-27 16:54:18 +00:00
fire \
fplight \
2000-06-27 15:56:46 +00:00
gamma \
gears \
geartrain \
glinfo \
gloss \
2000-06-27 16:54:18 +00:00
gltestperf \
2000-06-27 15:56:46 +00:00
glutfx \
isosurf \
2000-06-27 16:54:18 +00:00
ipers \
2000-06-27 15:56:46 +00:00
lodbias \
morph3d \
multiarb \
occlude \
osdemo \
paltex \
pixeltex \
pointblast \
2000-06-27 16:54:18 +00:00
ray \
2000-06-27 15:56:46 +00:00
readpix \
reflect \
renormal \
2001-02-20 17:04:52 +00:00
shadowtex \
2000-06-27 15:56:46 +00:00
spectex \
2003-09-24 20:41:53 +00:00
spriteblast \
2000-06-27 15:56:46 +00:00
stex3d \
2000-06-27 16:54:18 +00:00
teapot \
terrain \
2000-06-27 15:56:46 +00:00
tessdemo \
texcyl \
texdown \
texenv \
texobj \
trispd \
2000-06-27 16:54:18 +00:00
tunnel \
tunnel2 \
2000-06-27 15:56:46 +00:00
winpos
1999-08-19 00:55:39 +00:00
##### RULES #####
.SUFFIXES:
.SUFFIXES: .c
2000-11-01 16:02:52 +00:00
# make executable from .c file:
1999-08-19 00:55:39 +00:00
.c: $(LIB_DEP)
$(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
1999-08-19 00:55:39 +00:00
2000-11-01 16:02:52 +00:00
# special case: need the -lOSMesa library:
osdemo: osdemo.c
$(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
1999-08-19 00:55:39 +00:00
##### TARGETS #####
default:
@echo "Specify a target configuration"
clean:
-rm -f *.o *~
1999-08-19 00:55:39 +00:00
realclean:
-rm -f $(PROGS)
-rm -f *.o *~
-rm -f readtex.[ch]
targets: readtex.c readtex.h $(PROGS)
readtex.c:
cp $(TOP)/progs/util/readtex.c .
readtex.h:
cp $(TOP)/progs/util/readtex.h .
1999-08-19 00:55:39 +00:00
include $(TOP)/Make-config