ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/Rmakefile
Revision: 2.8
Committed: Wed Jun 22 15:39:49 1994 UTC (29 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.7: +5 -5 lines
Log Message:
added mgf2rad program

File Contents

# Content
1 #
2 # SCCSid "$SunId$ LBL"
3 # Makefile for conversion programs
4 #
5
6 OPT = -O
7
8 MACH = -DBSD
9
10 CFLAGS = $(OPT) $(MACH) -I../common -L../lib
11
12 CC = cc
13
14 MLIB = -lm
15
16 INSTDIR = /usr/local/bin
17
18 LIBDIR = /usr/local/lib/ray
19
20 PROGS = thf2rad ies2rad arch2rad nff2rad lampcolor tmesh2rad obj2rad mgf2rad
21
22 LIBFILES = source.cal tilt.cal lamp.tab tmesh.cal
23
24 all: $(PROGS)
25
26 install: $(PROGS) $(LIBFILES)
27 cp $(PROGS) $(INSTDIR)
28 cd $(LIBDIR) ; rm -f $(LIBFILES)
29 cp $(LIBFILES) $(LIBDIR)
30
31 clean:
32 set nonomatch; rm -f $(PROGS) *.o core
33
34 thf2rad: thf2rad.o
35 $(CC) $(CFLAGS) -o thf2rad thf2rad.o
36
37 ies2rad: ies2rad.o
38 $(CC) $(CFLAGS) -o ies2rad ies2rad.o -lrt
39
40 arch2rad: arch2rad.o trans.o
41 $(CC) $(CFLAGS) -o arch2rad arch2rad.o trans.o -lrt
42
43 nff2rad: nff2rad.o
44 $(CC) $(CFLAGS) -o nff2rad nff2rad.o
45
46 lampcolor: lampcolor.o
47 $(CC) $(CFLAGS) -o lampcolor lampcolor.o -lrt
48
49 tmesh2rad: tmesh2rad.o tmesh.o
50 $(CC) $(CFLAGS) -o tmesh2rad tmesh2rad.o tmesh.o -lrt $(MLIB)
51
52 obj2rad: obj2rad.o trans.o tmesh.o
53 $(CC) $(CFLAGS) -o obj2rad obj2rad.o trans.o tmesh.o -lrt $(MLIB)
54
55 mgf2rad: MGF_LIB mgf2rad.o tmesh.o
56 $(CC) $(CFLAGS) -o mgf2rad mgf2rad.o tmesh.o -lmgf -lrt $(MLIB)
57
58 MGF_LIB:
59 cd mgflib ; \
60 make libmgf.a CFLAGS="$(OPT) $(MACH) '-DMEM_PTR=char *' -DNOPROTO" ; \
61 cp libmgf.a ../../lib
62
63 mgf2rad.o: mgflib/parser.h tmesh.h
64 $(CC) $(CFLAGS) '-DMEM_PTR=char *' -DNOPROTO -c mgf2rad.c
65
66 arch2rad.o trans.o: trans.h
67
68 ies2rad.o lampcolor.o: ../common/color.h
69
70 ies2rad.o: ../common/paths.h
71
72 obj2rad.o tmesh2rad.o: tmesh.h \
73 ../common/standard.h ../common/mat4.h ../common/fvect.h
74
75 obj2rad.o: trans.h
76
77 tmesh.o: tmesh.h ../common/fvect.h