1 |
# SCCSid "$SunId$ LBL" |
2 |
|
3 |
# |
4 |
# Makefile for object generation programs |
5 |
# |
6 |
|
7 |
OPT = -O |
8 |
MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/f68881.il -DIEEE |
9 |
CFLAGS = $(MACH) $(OPT) |
10 |
|
11 |
INSTDIR = ../../bin |
12 |
|
13 |
PROGS = genbox gensky xform genblinds genrev genworm \ |
14 |
gensurf genprism replmarks |
15 |
|
16 |
all: $(PROGS) |
17 |
|
18 |
install: $(PROGS) genpine.csh genwindow.csh |
19 |
cp $(PROGS) $(INSTDIR) |
20 |
cp genwindow.csh $(INSTDIR)/genwindow |
21 |
chmod 755 $(INSTDIR)/genwindow |
22 |
|
23 |
clean: |
24 |
rm -f $(PROGS) *.o core |
25 |
|
26 |
genbeads: genbeads.o hermite3.o |
27 |
cc $(CFLAGS) -o genbeads genbeads.o hermite3.o -lm |
28 |
|
29 |
genbox: genbox.o |
30 |
cc $(CFLAGS) -o genbox genbox.o |
31 |
|
32 |
genmarble: genmarble.o random.h |
33 |
cc $(CFLAGS) -o genmarble genmarble.o -lm |
34 |
|
35 |
gensky: gensky.o sun.o |
36 |
cc $(CFLAGS) -o gensky gensky.o sun.o -lm |
37 |
|
38 |
genblinds: genblinds.o |
39 |
cc $(CFLAGS) -o genblinds genblinds.o -lm |
40 |
|
41 |
genprism: genprism.o |
42 |
cc $(CFLAGS) -o genprism genprism.o |
43 |
|
44 |
xform: xform.o xf.o mat4.o fgetline.o |
45 |
cc $(CFLAGS) -o xform xform.o xf.o mat4.o fgetline.o -lm |
46 |
|
47 |
replmarks: replmarks.o fvect.o fgetline.o |
48 |
cc $(CFLAGS) -o replmarks replmarks.o fvect.o fgetline.o -lm |
49 |
|
50 |
genrev: genrev.o calexpr.o caldefn.o calfunc.o \ |
51 |
ealloc.o savestr.o |
52 |
cc $(CFLAGS) -o genrev genrev.o caldefn.o calexpr.o \ |
53 |
calfunc.o ealloc.o savestr.o -lm |
54 |
|
55 |
genworm: genworm.o calexpr.o caldefn.o calfunc.o \ |
56 |
ealloc.o savestr.o fvect.o |
57 |
cc $(CFLAGS) -o genworm genworm.o caldefn.o calexpr.o \ |
58 |
calfunc.o ealloc.o savestr.o fvect.o -lm |
59 |
|
60 |
gensurf: gensurf.o fvect.o calexpr.o caldefn.o calfunc.o \ |
61 |
ealloc.o savestr.o |
62 |
cc $(CFLAGS) -o gensurf gensurf.o caldefn.o calexpr.o \ |
63 |
calfunc.o ealloc.o savestr.o fvect.o -lm |
64 |
|
65 |
genbranch: genbranch.o |
66 |
cc $(CFLAGS) -o genbranch genbranch.o -lm |
67 |
|
68 |
calexpr.o: calexpr.c calcomp.h |
69 |
cc $(CFLAGS) -c -DVARIABLE -DFUNCTION -DRCONST calexpr.c |
70 |
|
71 |
caldefn.o: caldefn.c calcomp.h |
72 |
cc $(CFLAGS) -c -DFUNCTION caldefn.c |
73 |
|
74 |
calfunc.o: calfunc.c calcomp.h |
75 |
cc $(CFLAGS) -c -DVARIABLE -DBIGLIB calfunc.c |
76 |
|
77 |
gensurf.o: standard.h mat4.h fvect.h |
78 |
|
79 |
fvect.o genworm.o replmarks.o: fvect.h |
80 |
|
81 |
mat4.o: mat4.h fvect.h |
82 |
|
83 |
xform.o: standard.h mat4.h fvect.h otypes.h |