mesa/progs/demos/Makefile.X11
2003-10-03 14:03:14 +00:00

102 lines
1.3 KiB
Makefile

# Makefile for GLUT-based demo programs
##### MACROS #####
TOP = ../..
INCDIR = $(TOP)/include
LIBDIR = $(TOP)/lib
LIBS = -L$(LIBDIR) $(APP_LIB_DEPS)
OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
PROGS = \
arbfplight \
arbocclude \
bounce \
clearspd \
cubemap \
drawpix \
fire \
fplight \
gamma \
gears \
geartrain \
glinfo \
gloss \
gltestperf \
glutfx \
isosurf \
ipers \
lodbias \
morph3d \
multiarb \
occlude \
osdemo \
paltex \
pixeltex \
pointblast \
ray \
readpix \
reflect \
renormal \
shadowtex \
spectex \
spriteblast \
stex3d \
teapot \
terrain \
tessdemo \
texcyl \
texdown \
texenv \
texobj \
trispd \
tunnel \
tunnel2 \
winpos
##### RULES #####
.SUFFIXES:
.SUFFIXES: .c
# make executable from .c file:
.c: $(LIB_DEP)
$(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
# special case: need the -lOSMesa library:
osdemo: osdemo.c
$(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
##### TARGETS #####
default:
@echo "Specify a target configuration"
clean:
-rm -f *.o *~
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 .
include $(TOP)/Make-config