1 |
greg |
2.8 |
# |
2 |
greg |
1.1 |
# SCCSid "$SunId$ LBL" |
3 |
|
|
# Makefile for conversion programs |
4 |
|
|
# |
5 |
|
|
|
6 |
greg |
1.3 |
OPT = -O |
7 |
greg |
1.1 |
|
8 |
greg |
1.10 |
MACH = -DBSD |
9 |
greg |
1.1 |
|
10 |
greg |
1.8 |
CFLAGS = $(OPT) $(MACH) -I../common -L../lib |
11 |
greg |
1.1 |
|
12 |
greg |
2.2 |
CC = cc |
13 |
|
|
|
14 |
greg |
2.4 |
MLIB = -lm |
15 |
|
|
|
16 |
greg |
1.10 |
INSTDIR = /usr/local/bin |
17 |
greg |
1.1 |
|
18 |
greg |
1.10 |
LIBDIR = /usr/local/lib/ray |
19 |
greg |
1.3 |
|
20 |
greg |
2.10 |
PROGS = thf2rad ies2rad arch2rad nff2rad lampcolor tmesh2rad obj2rad \ |
21 |
greg |
2.12 |
mgf2rad rad2mgf mgf2meta |
22 |
greg |
1.3 |
|
23 |
greg |
2.4 |
LIBFILES = source.cal tilt.cal lamp.tab tmesh.cal |
24 |
greg |
1.9 |
|
25 |
greg |
1.3 |
all: $(PROGS) |
26 |
|
|
|
27 |
greg |
1.9 |
install: $(PROGS) $(LIBFILES) |
28 |
greg |
1.3 |
cp $(PROGS) $(INSTDIR) |
29 |
greg |
1.9 |
cd $(LIBDIR) ; rm -f $(LIBFILES) |
30 |
|
|
cp $(LIBFILES) $(LIBDIR) |
31 |
greg |
1.3 |
|
32 |
|
|
clean: |
33 |
greg |
1.5 |
set nonomatch; rm -f $(PROGS) *.o core |
34 |
greg |
2.9 |
cd mgflib ; make clean |
35 |
greg |
1.3 |
|
36 |
|
|
thf2rad: thf2rad.o |
37 |
greg |
2.2 |
$(CC) $(CFLAGS) -o thf2rad thf2rad.o |
38 |
greg |
1.3 |
|
39 |
greg |
1.6 |
ies2rad: ies2rad.o |
40 |
greg |
2.13 |
$(CC) $(CFLAGS) -o ies2rad ies2rad.o -lrt -lm |
41 |
greg |
1.1 |
|
42 |
greg |
1.6 |
arch2rad: arch2rad.o trans.o |
43 |
greg |
2.2 |
$(CC) $(CFLAGS) -o arch2rad arch2rad.o trans.o -lrt |
44 |
greg |
1.1 |
|
45 |
greg |
1.3 |
nff2rad: nff2rad.o |
46 |
greg |
2.2 |
$(CC) $(CFLAGS) -o nff2rad nff2rad.o |
47 |
greg |
1.4 |
|
48 |
greg |
1.6 |
lampcolor: lampcolor.o |
49 |
greg |
2.2 |
$(CC) $(CFLAGS) -o lampcolor lampcolor.o -lrt |
50 |
greg |
1.3 |
|
51 |
greg |
2.7 |
tmesh2rad: tmesh2rad.o tmesh.o |
52 |
|
|
$(CC) $(CFLAGS) -o tmesh2rad tmesh2rad.o tmesh.o -lrt $(MLIB) |
53 |
greg |
2.5 |
|
54 |
greg |
2.7 |
obj2rad: obj2rad.o trans.o tmesh.o |
55 |
|
|
$(CC) $(CFLAGS) -o obj2rad obj2rad.o trans.o tmesh.o -lrt $(MLIB) |
56 |
greg |
2.4 |
|
57 |
greg |
2.8 |
mgf2rad: MGF_LIB mgf2rad.o tmesh.o |
58 |
greg |
2.7 |
$(CC) $(CFLAGS) -o mgf2rad mgf2rad.o tmesh.o -lmgf -lrt $(MLIB) |
59 |
|
|
|
60 |
greg |
2.10 |
rad2mgf: rad2mgf.o |
61 |
|
|
$(CC) $(CFLAGS) -o rad2mgf rad2mgf.o -lrt $(MLIB) |
62 |
|
|
|
63 |
greg |
2.12 |
mgf2meta: MGF_LIB mgf2meta.o |
64 |
|
|
$(CC) $(CFLAGS) -o mgf2meta mgf2meta.o -lmgf -lmeta -lrt $(MLIB) |
65 |
|
|
|
66 |
greg |
2.8 |
MGF_LIB: |
67 |
greg |
2.12 |
cd mgflib ; rm -f libmgf.a ; \ |
68 |
greg |
2.11 |
make libmgf.a CC=$(CC) \ |
69 |
|
|
CFLAGS="$(OPT) $(MACH) '-DMEM_PTR=char *' -DNOPROTO" ; \ |
70 |
greg |
2.8 |
cp libmgf.a ../../lib |
71 |
greg |
2.7 |
|
72 |
|
|
mgf2rad.o: mgflib/parser.h tmesh.h |
73 |
greg |
2.8 |
$(CC) $(CFLAGS) '-DMEM_PTR=char *' -DNOPROTO -c mgf2rad.c |
74 |
greg |
2.12 |
|
75 |
|
|
mgf2meta.o: mgflib/parser.h |
76 |
|
|
$(CC) $(CFLAGS) '-DMEM_PTR=char *' -DNOPROTO -c mgf2meta.c |
77 |
greg |
2.7 |
|
78 |
greg |
1.1 |
arch2rad.o trans.o: trans.h |
79 |
|
|
|
80 |
greg |
1.11 |
ies2rad.o lampcolor.o: ../common/color.h |
81 |
greg |
2.3 |
|
82 |
|
|
ies2rad.o: ../common/paths.h |
83 |
greg |
2.4 |
|
84 |
greg |
2.7 |
obj2rad.o tmesh2rad.o: tmesh.h \ |
85 |
|
|
../common/standard.h ../common/mat4.h ../common/fvect.h |
86 |
|
|
|
87 |
|
|
obj2rad.o: trans.h |
88 |
|
|
|
89 |
|
|
tmesh.o: tmesh.h ../common/fvect.h |
90 |
greg |
2.10 |
|
91 |
|
|
rad2mgf.o: ../common/fvect.h ../common/object.h ../common/color.h \ |
92 |
|
|
../common/lookup.h |