10 |
|
|
11 |
|
CC = cc |
12 |
|
|
13 |
+ |
MLIB = -lm |
14 |
+ |
|
15 |
|
INSTDIR = /usr/local/bin |
16 |
|
|
17 |
< |
PROGS = findglare xglaresrc glarendx rpiece |
17 |
> |
PROGS = findglare xglaresrc glarendx rpiece rad |
18 |
|
|
19 |
|
all: $(PROGS) |
20 |
|
|
21 |
< |
install: all objview.csh objpict.csh proj.csh glare.csh dayfact.csh |
21 |
> |
install: all objview.csh objpict.csh glare.csh dayfact.csh rlux.csh |
22 |
|
cp $(PROGS) $(INSTDIR) |
23 |
|
cp objview.csh $(INSTDIR)/objview |
24 |
|
cp objpict.csh $(INSTDIR)/objpict |
25 |
|
cp glare.csh $(INSTDIR)/glare |
26 |
|
cp dayfact.csh $(INSTDIR)/dayfact |
27 |
|
cp debugcal.csh $(INSTDIR)/debugcal |
28 |
+ |
cp rlux.csh $(INSTDIR)/rlux |
29 |
|
chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \ |
30 |
< |
$(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal |
30 |
> |
$(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \ |
31 |
> |
$(INSTDIR)/rlux |
32 |
|
|
33 |
|
clean: |
34 |
|
set nonomatch; rm -f *.o $(PROGS) core |
35 |
|
|
36 |
|
scanner: scanner.o |
37 |
< |
$(CC) $(CFLAGS) -o scanner scanner.o -lm |
37 |
> |
$(CC) $(CFLAGS) -o scanner scanner.o $(MLIB) |
38 |
|
|
39 |
|
makedist: makedist.o setscan.o |
40 |
< |
$(CC) $(CFLAGS) -o makedist makedist.o setscan.o -lrt -lm |
40 |
> |
$(CC) $(CFLAGS) -o makedist makedist.o setscan.o -lrt $(MLIB) |
41 |
|
|
42 |
|
findglare: findglare.o glareval.o glaresrc.o setscan.o |
43 |
|
$(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ |
44 |
< |
setscan.o -lrt -lm |
44 |
> |
setscan.o -lrt $(MLIB) |
45 |
|
|
46 |
|
glarendx: glarendx.o |
47 |
< |
$(CC) $(CFLAGS) -o glarendx glarendx.o -lrt -lm |
47 |
> |
$(CC) $(CFLAGS) -o glarendx glarendx.o -lrt $(MLIB) |
48 |
|
|
49 |
|
xglaresrc: xglaresrc.o x11findwind.o |
50 |
|
$(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ |
51 |
< |
x11findwind.o -lrt -lX11 -lm |
51 |
> |
x11findwind.o -lrt -lX11 $(MLIB) |
52 |
|
|
53 |
+ |
rad: rad.o |
54 |
+ |
$(CC) $(CFLAGS) -o rad rad.o -lrt $(MLIB) |
55 |
+ |
|
56 |
|
rpiece: rpiece.o Version.o |
57 |
< |
$(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrt -lm |
57 |
> |
$(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrt $(MLIB) |
58 |
|
|
59 |
|
contour: contour.o |
60 |
< |
$(CC) $(CFLAGS) -o contour contour.o -lm |
60 |
> |
$(CC) $(CFLAGS) -o contour contour.o $(MLIB) |
61 |
|
|
62 |
|
pranim: pranim.o client/libclient.a |
63 |
|
$(CC) $(CFLAGS) -o pranim pranim.o \ |
79 |
|
|
80 |
|
rpiece.o: ../common/color.h ../common/view.h ../common/resolu.h |
81 |
|
|
82 |
< |
rpiece.o xglaresrc.o: ../common/standard.h ../common/mat4.h \ |
83 |
< |
../common/fvect.h |
82 |
> |
rad.o rpiece.o xglaresrc.o: ../common/standard.h \ |
83 |
> |
../common/mat4.h ../common/fvect.h |
84 |
|
|
85 |
|
xglaresrc.o: ../common/view.h |
86 |
|
|