File: Makefile.sgi

package info (click to toggle)
glut 3.7-14
  • links: PTS
  • area: main
  • in suites: woody
  • size: 12,556 kB
  • ctags: 45,170
  • sloc: ansic: 148,716; makefile: 35,208; ada: 2,062; yacc: 473; fortran: 290; lex: 131; csh: 51; sed: 49; sh: 33
file content (83 lines) | stat: -rw-r--r-- 2,213 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!smake
#
# Copyright (c) Mark J. Kilgard, 1996, 1997, 1998.
#

TOP = ../..
include $(TOP)/glutdefs
include $(ROOT)/usr/include/make/commondefs

LD_QUICKSTART_INFO=
LN = ln -s
MV = mv
RM = -rm -rf

TARGETS = hiddenline haloed silhouette motionblur softshadow accumaa \
  field shadowvol shadowmap projshadow convolve tess textile comp csg \
  dissolve envmap envphong decal textext genmipmap imgproc mipmap_lines \
  projtex textrim tvertex vox warp zcomposite videoresize occlude \
  af_teapots af_depthcue multilight boundary shadowfun hello2rts \
  rasonly sgiflag pointburst redblue_stereo texwinalign

LLDLIBS = $(GLUT) -lGLU -lGL -lXmu -lXi -lXext -lX11 -lm

DATA_LINKS = 00.rgb 02.rgb 04.rgb a.rgb mandrill.rgb 01.rgb 03.rgb 05.rgb b.rgb tree.rgb vox.bin.gz

LCOPTS = -I$(TOP)/include -fullwarn
LWOFF = ,813,852,827,826,819
LDIRT = *~ *.bak *.pure $(DATA_LINKS) *.pix32 *.Counts *.pixie

default : $(TARGETS)

tess: tess.o sphere.o
	$(CCF) -o $@ tess.o sphere.o $(LDFLAGS)

videoresize: videoresize.o sphere.o
	$(CCF) -o $@ videoresize.o sphere.o $(LDFLAGS)
	
textile: textile.o texture.o
	$(CCF) -o $@ textile.o texture.o $(LDFLAGS)

comp: comp.o texture.o
	$(CCF) -o $@ comp.o texture.o $(LDFLAGS)

envmap: envmap.o texture.o
	$(CCF) -o $@ envmap.o texture.o $(LDFLAGS)

textext: textext.o textmap.o texture.o
	$(CCF) -o $@ textext.o textmap.o texture.o $(LDFLAGS)

genmipmap: genmipmap.o texture.o
	$(CCF) -o $@ genmipmap.o texture.o $(LDFLAGS)

imgproc: imgproc.o texture.o
	$(CCF) -o $@ imgproc.o texture.o $(LDFLAGS)

projtex: projtex.o texture.o
	$(CCF) -o $@ projtex.o texture.o $(LDFLAGS)

textrim: textrim.o texture.o
	$(CCF) -o $@ textrim.o texture.o $(LDFLAGS)

warp: warp.o texture.o
	$(CCF) -o $@ warp.o texture.o $(LDFLAGS)

af_depthcue: af_depthcue.o addfog.o
	$(CCF) -o $@ af_depthcue.o addfog.o $(LDFLAGS)

af_teapots: af_teapots.o addfog.o
	$(CCF) -o $@ af_teapots.o addfog.o $(LDFLAGS)

mipmap_lines: mipmap_lines.o izoom.o texture.o
	$(CCF) -o $@ mipmap_lines.o izoom.o texture.o $(LDFLAGS)

hello2rts: hello2rts.o rts.o
	$(CCF) -o $@ hello2rts.o rts.o $(LDFLAGS)

links:
	for i in $(DATA_LINKS); do \
	  /bin/rm -rf $$i ; \
	  ln -s ../../data/$$i . ; \
	done

include $(COMMONRULES)