blob: 69012b13bede5adf1d44bee188fe9476817aa151 [file] [log] [blame]
jtgafb833d1999-08-19 00:55:39 +00001# Makefile for demo programs
2# Stephane Rehel (rehel@worldnet.fr) April 13 1997
3
4# Mesa 3-D graphics library
5# Version: 3.0
6# Copyright (C) 1995-1998 Brian Paul
7#
8# This library is free software; you can redistribute it and/or
9# modify it under the terms of the GNU Library General Public
10# License as published by the Free Software Foundation; either
11# version 2 of the License, or (at your option) any later version.
12#
13# This library is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16# Library General Public License for more details.
17#
18# You should have received a copy of the GNU Library General Public
19# License along with this library; if not, write to the Free
20# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
22
23# $Id: Makefile.cygnus,v 1.1 1999/08/19 00:55:40 jtg Exp $
24
25# $Log: Makefile.cygnus,v $
26# Revision 1.1 1999/08/19 00:55:40 jtg
27# Initial revision
28#
29# Revision 3.1 1999/06/22 12:50:29 brianp
30# removed multitex demo
31#
32# Revision 3.0 1998/06/10 02:55:51 brianp
33# initial revision
34#
35
36
37##### MACROS #####
38
39INCDIR = ../include
40LIBDIR = ../lib
41
42GL_LIBS = -L$(LIBDIR) -lglut -lMesaGLU -lMesaGL -lm $(WLIBS)
43
44LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
45
46PROGS = clearspd drawpix gamma gears glinfo glutfx isosurf \
47 morph3d multiext osdemo paltex pointblast reflect \
48 renormal spectex stex3d tessdemo texcyl texobj trispd winpos
49
50
51##### RULES #####
52
53.SUFFIXES:
54.SUFFIXES: .c
55
56.c: $(LIB_DEP)
57 $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
58
59
60##### TARGETS #####
61
62default:
63 @echo "Specify a target configuration"
64
65clean:
66 -rm *.o *~
67
68realclean:
69 -rm $(PROGS:=.exe)
70 -rm *.o *~
71
72targets: $(PROGS)
73
74include ../Make-config
75
76