* demos/Makefile.am (INCLUDES): Added -I$(top_srcdir)/util.
[mesa.git] / progs / demos / Makefile.X11
index bfd0723aa12fbc6d1fe9f11816ea393edcb94e01..41175a1c57494ce9ee5bed41a737d894e0f40c69 100644 (file)
@@ -1,7 +1,7 @@
-# $Id: Makefile.X11,v 1.13 2000/06/27 15:56:46 brianp Exp $
+# $Id: Makefile.X11,v 1.16 2000/12/24 22:53:54 pesco Exp $
 
 # Mesa 3-D graphics library
-# Version:  3.3
+# Version:  3.5
 # Copyright (C) 1995-2000  Brian Paul
 
 # Makefile for GLUT-based demo programs for Unix/X11
@@ -14,19 +14,24 @@ LIBDIR = ../lib
 
 GL_LIBS = -L$(LIBDIR) -lglut -lGLU -lGL $(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 = bounce \
        clearspd \
        cubemap \
        drawpix \
+       fire \
        gamma \
        gears \
        geartrain \
        glinfo \
        gloss \
+       gltestperf \
        glutfx \
        isosurf \
+       ipers \
        lodbias \
        morph3d \
        multiarb \
@@ -35,17 +40,22 @@ PROGS = bounce \
        paltex \
        pixeltex \
        pointblast \
+       ray \
        readpix \
        reflect \
        renormal \
        spectex \
        stex3d \
+       teapot \
+       terrain \
        tessdemo \
        texcyl \
        texdown \
        texenv \
        texobj \
        trispd \
+       tunnel \
+       tunnel2 \
        winpos
 
 
@@ -54,9 +64,14 @@ PROGS = bounce \
 .SUFFIXES:
 .SUFFIXES: .c
 
+
+# make executable from .c file:
 .c: $(LIB_DEP)
-       $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
+       $(CC) -I$(INCDIR) -I../util $(CFLAGS) $< $(GL_LIBS) -o $@
 
+# special case: need the -lOSMesa library:
+osdemo: osdemo.c
+       $(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
 
 
 ##### TARGETS #####