blob: dee1e894533de07f3dc60627058fc0f896cc24c4 [file] [log] [blame]
Brian Paul83435611999-10-22 20:35:17 +00001# $Id: Makefile.cygnus,v 1.2 1999/10/22 20:37:23 brianp Exp $
jtgafb833d1999-08-19 00:55:39 +00002
3# Mesa 3-D graphics library
Brian Paul83435611999-10-22 20:35:17 +00004# Version: 3.1
5# Copyright (C) 1995-1999 Brian Paul
jtgafb833d1999-08-19 00:55:39 +00006
7
Brian Paul83435611999-10-22 20:35:17 +00008# Makefile for demo programs for cygnus
9# Stephane Rehel (rehel@worldnet.fr) April 13 1997
jtgafb833d1999-08-19 00:55:39 +000010
jtgafb833d1999-08-19 00:55:39 +000011
12
13##### MACROS #####
14
15INCDIR = ../include
16LIBDIR = ../lib
17
18GL_LIBS = -L$(LIBDIR) -lglut -lMesaGLU -lMesaGL -lm $(WLIBS)
19
20LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
21
Brian Paul83435611999-10-22 20:35:17 +000022PROGS = clearspd drawpix gamma gears glinfo glutfx gloss isosurf \
jtgafb833d1999-08-19 00:55:39 +000023 morph3d multiext osdemo paltex pointblast reflect \
24 renormal spectex stex3d tessdemo texcyl texobj trispd winpos
25
26
27##### RULES #####
28
29.SUFFIXES:
30.SUFFIXES: .c
31
32.c: $(LIB_DEP)
33 $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
34
35
36##### TARGETS #####
37
38default:
39 @echo "Specify a target configuration"
40
41clean:
42 -rm *.o *~
43
44realclean:
45 -rm $(PROGS:=.exe)
46 -rm *.o *~
47
48targets: $(PROGS)
49
50include ../Make-config
51
52