| 12 |
|
|
| 13 |
|
CC = cc |
| 14 |
|
|
| 15 |
+ |
MLIB = -lm |
| 16 |
+ |
|
| 17 |
|
INSTDIR = /usr/local/bin |
| 18 |
|
|
| 19 |
|
LIBDIR = /usr/local/lib/ray |
| 20 |
|
|
| 21 |
< |
PROGS = thf2rad ies2rad arch2rad nff2rad lampcolor |
| 21 |
> |
PROGS = thf2rad ies2rad arch2rad nff2rad lampcolor tmesh2rad obj2rad mgf2rad |
| 22 |
|
|
| 23 |
< |
LIBFILES = source.cal tilt.cal lamp.tab |
| 23 |
> |
LIBFILES = source.cal tilt.cal lamp.tab tmesh.cal |
| 24 |
|
|
| 25 |
|
all: $(PROGS) |
| 26 |
|
|
| 47 |
|
lampcolor: lampcolor.o |
| 48 |
|
$(CC) $(CFLAGS) -o lampcolor lampcolor.o -lrt |
| 49 |
|
|
| 50 |
+ |
tmesh2rad: tmesh2rad.o tmesh.o |
| 51 |
+ |
$(CC) $(CFLAGS) -o tmesh2rad tmesh2rad.o tmesh.o -lrt $(MLIB) |
| 52 |
+ |
|
| 53 |
+ |
obj2rad: obj2rad.o trans.o tmesh.o |
| 54 |
+ |
$(CC) $(CFLAGS) -o obj2rad obj2rad.o trans.o tmesh.o -lrt $(MLIB) |
| 55 |
+ |
|
| 56 |
+ |
mgf2rad: mgf2rad.o ../lib/libmgf.a |
| 57 |
+ |
$(CC) $(CFLAGS) -o mgf2rad mgf2rad.o tmesh.o -lmgf -lrt $(MLIB) |
| 58 |
+ |
|
| 59 |
+ |
../lib/libmgf.a: |
| 60 |
+ |
cd mgflib ; \ |
| 61 |
+ |
make libmgf.a CFLAGS="$(OPT) $(MACH) '-DMEM_PTR=char *' -DNOPROTO" ; \ |
| 62 |
+ |
mv libmgf.a ../../lib |
| 63 |
+ |
|
| 64 |
+ |
mgf2rad.o: mgflib/parser.h tmesh.h |
| 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 |