1 |
greg |
1.1 |
# SCCSid "$SunId$ LBL" |
2 |
|
|
|
3 |
|
|
# |
4 |
|
|
# Makefile for conversion programs |
5 |
|
|
# |
6 |
|
|
|
7 |
greg |
1.3 |
OPT = -O |
8 |
greg |
1.1 |
|
9 |
greg |
1.3 |
MACH = |
10 |
greg |
1.1 |
|
11 |
greg |
1.3 |
CFLAGS = $(OPT) $(MACH) |
12 |
greg |
1.1 |
|
13 |
greg |
1.3 |
INSTDIR = ../../bin |
14 |
greg |
1.1 |
|
15 |
greg |
1.3 |
LIBDIR = /usr/local/lib/ray |
16 |
|
|
|
17 |
|
|
PROGS = thf2rad ies2rad arch2rad nff2rad |
18 |
|
|
|
19 |
|
|
all: $(PROGS) |
20 |
|
|
|
21 |
|
|
install: $(PROGS) |
22 |
|
|
cp $(PROGS) $(INSTDIR) |
23 |
|
|
|
24 |
|
|
clean: |
25 |
|
|
rm -f $(PROGS) *.o core |
26 |
|
|
|
27 |
|
|
thf2rad: thf2rad.o |
28 |
|
|
cc $(CFLAGS) -o thf2rad thf2rad.o |
29 |
|
|
|
30 |
|
|
ies2rad: ies2rad.o lamps.o spec_rgb.o fropen.o rexpr.o |
31 |
|
|
cc $(CFLAGS) -o ies2rad ies2rad.o lamps.o \ |
32 |
greg |
1.1 |
spec_rgb.o fropen.o rexpr.o |
33 |
|
|
|
34 |
greg |
1.3 |
arch2rad: arch2rad.o trans.o savestr.o |
35 |
|
|
cc $(CFLAGS) -o arch2rad arch2rad.o trans.o savestr.o |
36 |
greg |
1.1 |
|
37 |
greg |
1.3 |
nff2rad: nff2rad.o |
38 |
|
|
cc $(CFLAGS) -o nff2rad nff2rad.o |
39 |
|
|
|
40 |
|
|
fropen.o: fropen.c |
41 |
|
|
cc $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c fropen.c |
42 |
greg |
1.1 |
|
43 |
|
|
arch2rad.o trans.o: trans.h |
44 |
|
|
|
45 |
greg |
1.2 |
ies2rad.o spec_rgb.o: color.h |