| 1 |
gregl |
3.1 |
# |
| 2 |
|
|
# SCCSid "$SunId$ SGI" |
| 3 |
|
|
# Radiance makefile for holodeck programs |
| 4 |
|
|
# |
| 5 |
|
|
|
| 6 |
|
|
MACH = -DBSD |
| 7 |
|
|
|
| 8 |
|
|
OPT = -O |
| 9 |
|
|
|
| 10 |
|
|
CFLAGS = $(MACH) $(OPT) -I../common -L../lib |
| 11 |
|
|
|
| 12 |
|
|
CC = cc |
| 13 |
|
|
|
| 14 |
|
|
INSTDIR = /usr/local/bin |
| 15 |
gregl |
3.2 |
DEVDIR = $(INSTDIR)/dev |
| 16 |
gregl |
3.1 |
|
| 17 |
|
|
LIBDIR = /usr/local/lib/ray |
| 18 |
|
|
|
| 19 |
|
|
PROGS = rholo |
| 20 |
|
|
|
| 21 |
gregl |
3.2 |
DEVS = $(DEVDIR)/x11.hdisp $(DEVDIR)/x11h.hdisp |
| 22 |
|
|
|
| 23 |
gregl |
3.1 |
all: $(PROGS) |
| 24 |
|
|
|
| 25 |
gregl |
3.2 |
install: all $(DEVS) |
| 26 |
gregl |
3.1 |
cp $(PROGS) $(INSTDIR) |
| 27 |
|
|
|
| 28 |
|
|
clean: |
| 29 |
|
|
set nonomatch; rm -f *.o $(PROGS) core |
| 30 |
|
|
|
| 31 |
gregl |
3.3 |
rholo: rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o holo.o holofile.o Version.o |
| 32 |
gregl |
3.1 |
$(CC) $(CFLAGS) -o rholo rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o \ |
| 33 |
gregl |
3.3 |
holo.o holofile.o Version.o -lrt -lm |
| 34 |
gregl |
3.1 |
|
| 35 |
gregl |
3.2 |
$(DEVDIR)/x11h.hdisp: $(DEVDIR)/x11.hdisp |
| 36 |
|
|
rm -f $(DEVDIR)/x11h.hdisp |
| 37 |
|
|
ln $(DEVDIR)/x11.hdisp $(DEVDIR)/x11h.hdisp |
| 38 |
gregl |
3.1 |
|
| 39 |
gregl |
3.2 |
$(DEVDIR)/x11.hdisp: rhdisp.o rhdisp2.o rhdisp3.o rhd_x11.o rhd_qtree.o \ |
| 40 |
|
|
rhd_ctab.o holo.o |
| 41 |
|
|
$(CC) $(CFLAGS) -o $(DEVDIR)/x11.hdisp rhdisp.o rhdisp2.o rhdisp3.o \ |
| 42 |
|
|
rhd_x11.o rhd_qtree.o rhd_ctab.o holo.o -lrt -lX11 -lm |
| 43 |
gregl |
3.1 |
|
| 44 |
gregl |
3.2 |
rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o \ |
| 45 |
|
|
rhdisp.o rhdisp2.o rhdisp3.o: rholo.h |
| 46 |
|
|
|
| 47 |
|
|
rholo4.o: rhdisp.h rholo4.c |
| 48 |
|
|
$(CC) $(CFLAGS) -DDEVPATH=\"$(DEVDIR)\" -c rholo4.c |
| 49 |
|
|
|
| 50 |
|
|
rhdisp.o rhdisp2.o: rhdisp.h rhdriver.h ../common/view.h |
| 51 |
|
|
|
| 52 |
|
|
rhdisp3.o: rhdisp.h ../common/view.h |
| 53 |
|
|
|
| 54 |
|
|
holo.o holofile.o rhdisp.o rhdisp2.o rhdisp3.o \ |
| 55 |
gregl |
3.1 |
rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o: holo.h \ |
| 56 |
|
|
../common/vars.h ../common/color.h \ |
| 57 |
|
|
../common/standard.h ../common/mat4.h ../common/fvect.h |
| 58 |
gregl |
3.2 |
|
| 59 |
|
|
rhd_x11.o rhd_qtree.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
| 60 |
|
|
|
| 61 |
|
|
rhd_x11.o rhd_qtree.o: rhd_qtree.h rhdriver.h \ |
| 62 |
|
|
../common/tonemap.h ../common/color.h |
| 63 |
|
|
|
| 64 |
|
|
rhd_x11.o: x11icon.h |