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 |
|
|
mgf2rad rad2mgf |
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.2 |
$(CC) $(CFLAGS) -o ies2rad ies2rad.o -lrt |
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.8 |
MGF_LIB: |
64 |
greg |
2.7 |
cd mgflib ; \ |
65 |
greg |
2.11 |
make libmgf.a CC=$(CC) \ |
66 |
|
|
CFLAGS="$(OPT) $(MACH) '-DMEM_PTR=char *' -DNOPROTO" ; \ |
67 |
greg |
2.8 |
cp libmgf.a ../../lib |
68 |
greg |
2.7 |
|
69 |
|
|
mgf2rad.o: mgflib/parser.h tmesh.h |
70 |
greg |
2.8 |
$(CC) $(CFLAGS) '-DMEM_PTR=char *' -DNOPROTO -c mgf2rad.c |
71 |
greg |
2.7 |
|
72 |
greg |
1.1 |
arch2rad.o trans.o: trans.h |
73 |
|
|
|
74 |
greg |
1.11 |
ies2rad.o lampcolor.o: ../common/color.h |
75 |
greg |
2.3 |
|
76 |
|
|
ies2rad.o: ../common/paths.h |
77 |
greg |
2.4 |
|
78 |
greg |
2.7 |
obj2rad.o tmesh2rad.o: tmesh.h \ |
79 |
|
|
../common/standard.h ../common/mat4.h ../common/fvect.h |
80 |
|
|
|
81 |
|
|
obj2rad.o: trans.h |
82 |
|
|
|
83 |
|
|
tmesh.o: tmesh.h ../common/fvect.h |
84 |
greg |
2.10 |
|
85 |
|
|
rad2mgf.o: ../common/fvect.h ../common/object.h ../common/color.h \ |
86 |
|
|
../common/lookup.h |