| 1 |
greg |
1.1 |
# |
| 2 |
|
|
# SCCSid "$SunId$ LBL" |
| 3 |
|
|
# Makefile for ray tracing library routines |
| 4 |
|
|
# |
| 5 |
|
|
|
| 6 |
greg |
1.17 |
OPT = -O |
| 7 |
greg |
1.19 |
MACH = -DBSD |
| 8 |
greg |
1.1 |
CFLAGS = $(MACH) $(OPT) |
| 9 |
greg |
2.5 |
CC = cc |
| 10 |
greg |
1.1 |
|
| 11 |
greg |
2.7 |
COMPAT = bmalloc.o erf.o strcmp.o # frexp.o fwrite.o random.o |
| 12 |
greg |
1.16 |
|
| 13 |
greg |
1.3 |
LIBDIR = /usr/local/lib/ray |
| 14 |
|
|
|
| 15 |
greg |
1.1 |
RTOBJ = cone.o face.o instance.o readobj.o readoct.o otypes.o objset.o \ |
| 16 |
greg |
1.10 |
octree.o readfargs.o modobject.o |
| 17 |
greg |
1.1 |
|
| 18 |
|
|
PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ |
| 19 |
greg |
2.4 |
colrops.o font.o |
| 20 |
greg |
1.1 |
|
| 21 |
greg |
1.6 |
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o fvect.o urand.o \ |
| 22 |
greg |
1.12 |
urind.o peano.o calexpr.o caldefn.o calfunc.o calprnt.o \ |
| 23 |
greg |
2.7 |
multisamp.o process.o getpath.o error.o savestr.o savqstr.o \ |
| 24 |
greg |
2.2 |
badarg.o fgetword.o words.o wordfile.o cputs.o wputs.o eputs.o quit.o |
| 25 |
greg |
1.1 |
|
| 26 |
greg |
2.8 |
SYSOBJ = ealloc.o portio.o $(COMPAT) |
| 27 |
greg |
1.1 |
|
| 28 |
|
|
librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
| 29 |
|
|
ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
| 30 |
greg |
1.14 |
-ranlib librt.a |
| 31 |
greg |
1.16 |
|
| 32 |
|
|
install: librt.a |
| 33 |
|
|
mv librt.a ../lib |
| 34 |
greg |
1.5 |
|
| 35 |
|
|
clean: |
| 36 |
greg |
2.7 |
rm -f *.o librt.a |
| 37 |
greg |
1.3 |
|
| 38 |
|
|
fropen.o: fropen.c |
| 39 |
greg |
2.5 |
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c fropen.c |
| 40 |
greg |
1.1 |
|
| 41 |
greg |
1.4 |
calexpr.o: calexpr.c calcomp.h |
| 42 |
greg |
2.5 |
$(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DRCONST -c calexpr.c |
| 43 |
greg |
1.4 |
|
| 44 |
|
|
caldefn.o: caldefn.c calcomp.h |
| 45 |
greg |
2.5 |
$(CC) $(CFLAGS) -DFUNCTION -c caldefn.c |
| 46 |
greg |
1.4 |
|
| 47 |
|
|
calfunc.o: calfunc.c calcomp.h |
| 48 |
greg |
2.5 |
$(CC) $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c |
| 49 |
greg |
1.4 |
|
| 50 |
greg |
1.1 |
color.o colrops.o resolu.o spec_rgb.o: color.h |
| 51 |
|
|
|
| 52 |
|
|
cone.o: cone.h |
| 53 |
|
|
|
| 54 |
|
|
face.o: face.h |
| 55 |
|
|
|
| 56 |
|
|
fvect.o: fvect.h |
| 57 |
|
|
|
| 58 |
|
|
instance.o: instance.h |
| 59 |
|
|
|
| 60 |
|
|
linregr.o: linregr.h |
| 61 |
|
|
|
| 62 |
greg |
1.2 |
mat4.o: mat4.h fvect.h |
| 63 |
greg |
1.1 |
|
| 64 |
|
|
cone.o face.o instance.o objset.o otypes.o \ |
| 65 |
greg |
1.18 |
modobject.o readfargs.o readobj.o readoct.o: object.h |
| 66 |
greg |
1.1 |
|
| 67 |
|
|
objset.o octree.o readoct.o: octree.h |
| 68 |
|
|
|
| 69 |
greg |
1.11 |
cone.o modobject.o objset.o otypes.o readobj.o readoct.o: otypes.h |
| 70 |
greg |
1.1 |
|
| 71 |
|
|
urand.o: random.h |
| 72 |
|
|
|
| 73 |
greg |
1.10 |
cone.o face.o image.o instance.o error.o objset.o octree.o modobject.o \ |
| 74 |
greg |
1.1 |
otypes.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h |
| 75 |
greg |
1.18 |
|
| 76 |
|
|
readfargs.o: fvect.h |
| 77 |
greg |
1.1 |
|
| 78 |
|
|
image.o: view.h |
| 79 |
greg |
1.4 |
|
| 80 |
|
|
calprnt.o: calcomp.h |
| 81 |
greg |
2.3 |
|
| 82 |
|
|
process.o: vfork.h |
| 83 |
greg |
2.4 |
|
| 84 |
|
|
font.o: font.h |