Files
third_party_mesa3d/progs/demos/Makefile.X11

61 lines
1.0 KiB
Makefile
Raw Normal View History

2000-03-06 23:35:06 +00:00
# $Id: Makefile.X11,v 1.7 2000/03/06 23:35:07 brianp Exp $
1999-08-19 00:55:39 +00:00
# Mesa 3-D graphics library
2000-01-28 16:27:27 +00:00
# Version: 3.3
# Copyright (C) 1995-2000 Brian Paul
1999-08-19 00:55:39 +00:00
# Makefile for GLUT-based demo programs for Unix/X11
##### MACROS #####
INCDIR = ../include
LIBDIR = ../lib
2000-02-16 01:09:06 +00:00
GL_LIBS = -L$(LIBDIR) -lglut -lGLU -lGL $(APP_LIB_DEPS)
1999-08-19 00:55:39 +00:00
LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
2000-03-06 23:35:06 +00:00
PROGS = bounce clearspd drawpix gamma gears geartrain glinfo gloss \
glutfx isosurf morph3d multiarb osdemo paltex pointblast \
readpix reflect renormal spectex stex3d tessdemo texcyl \
texdown texobj trispd winpos \
1999-08-19 00:55:39 +00:00
##### RULES #####
.SUFFIXES:
.SUFFIXES: .c
.c: $(LIB_DEP)
$(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
##### TARGETS #####
default:
@echo "Specify a target configuration"
clean:
-rm *.o *~
realclean:
-rm $(PROGS)
-rm *.o *~
targets: $(PROGS)
# execute all programs
exec: $(PROGS)
@for prog in $(PROGS) ; \
do \
echo -n "Running $$prog ..." ; \
$$prog ; \
echo ; \
done
include ../Make-config