1 # Makefile for GLUT-based demo programs
7 INCDIR = $(TOP)/include
10 LIBS = -L$(LIBDIR) $(APP_LIB_DEPS)
12 OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
14 LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
68 # make executable from .c file:
70 $(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
72 # special case: need the -lOSMesa library:
74 $(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
80 @echo "Specify a target configuration"
90 targets: readtex.c readtex.h $(PROGS)
94 cp $(TOP)/progs/util/readtex.c .
97 cp $(TOP)/progs/util/readtex.h .
100 include $(TOP)/Make-config