annotate scripts/control/MakeControlOct @ 5965:290420f503b2

[project @ 2006-08-24 19:01:16 by jwe]
author jwe
date Thu, 24 Aug 2006 19:01:17 +0000
parents 46b82fca02fc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3280
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
1 %.oct : %.cc $(OCT_LIBS) ocst.h
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
2 @echo "making $@ from $<"
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
3 mkoctfile $< -locst -lm
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
4
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
5 %.o : %.cc ocst.h
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
6 @echo "making $@ from $<"
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
7 mkoctfile $<
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
8 rm -f $*.oct
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
9
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
10 OCT_FILES = abcddim.oct \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
11 fir2sys.oct \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
12 ss2sys.oct \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
13 tf2sys.oct \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
14 zp2sys.oct \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
15 #sysout.oct \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
16 zgsgiv.oct
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
17
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
18 OCST_LIB = get_complex_vector.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
19 get_matrix.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
20 get_real_scalar.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
21 get_string_matrix.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
22 get_string.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
23 get_vect.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
24 pack.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
25 sysdefioname.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
26 sysdefstname.o
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
27
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
28 OCT_LIBS=
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
29
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
30 all: $(OCT_LIBS) $(OCT_FILES)
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
31 @echo ""
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
32 octave
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
33
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
34 libocst.so: $(OCST_LIB)
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
35 gcc -fPIC -shared -R/opt/octave/lib -o libocst.so.1 $(OCST_LIB)
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
36 cp libocst.so.1 /opt/octave/lib
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
37 rm -f /opt/octave/lib/libocst.so
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
38 ln -s /opt/octave/lib/libocst.so.1 /opt/octave/lib/libocst.so
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
39 rm -f ./libocst.so
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
40 ln -s ./libocst.so.1 ./libocst.so
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
41
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
42 ABCDDIM_DEP= abcddim.cc \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
43 zero_matrix.o
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
44 abcddim.oct: $(ABCDDIM_DEP) ocst.h
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
45 mkoctfile $(ABCDDIM_DEP)
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
46
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
47 FIR2SYS_DEP= fir2sys.cc \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
48 get_real_scalar.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
49 get_string.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
50 get_vector.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
51 pack.o
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
52 fir2sys.oct: $(FIR2SYS_DEP) ocst.h
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
53 mkoctfile $(FIR2SYS_DEP)
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
54
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
55 SS2SYS_DEP= ss2sys.cc \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
56 $(ABCDDIM_DEP) \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
57 add_name.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
58 get_matrix.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
59 get_real_scalar.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
60 get_string_matrix.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
61 get_vector.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
62 pack.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
63 sysdefioname.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
64 sysdefstname.o
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
65 ss2sys.oct: $(SS2SYS_DEP) ocst.h
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
66 mkoctfile $(SS2SYS_DEP)
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
67
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
68 SYSOUT_DEP= sysout.cc
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
69 sysout.oct: $(SYSOUT_DEP) ocst.h
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
70 mkoctfile $(SYSOUT_DEP)
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
71
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
72 TF2SYS_DEP= tf2sys.cc \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
73 get_real_scalar.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
74 get_string.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
75 get_vector.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
76 pack.o
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
77 tf2sys.oct: $(TF2SYS_DEP) ocst.h
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
78 mkoctfile $(TF2SYS_DEP)
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
79
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
80 ZGSGIV_DEP=zgsgiv.cc
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
81 zgsgiv.oct: $(ZGSGIV_DEP) ocst.h
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
82 mkoctfile $(ZGSGIV_DEP)
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
83
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
84 ZP2SYS_DEP= zp2sys.cc \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
85 get_complex_vector.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
86 get_real_scalar.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
87 get_string.o \
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
88 pack.o
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
89 zp2sys.oct: $(ZP2SYS_DEP) ocst.h
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
90 mkoctfile $(ZP2SYS_DEP)
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
91
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
92 clean:
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
93 rm -f *.o *.oct *.a *.so *.so.1
46b82fca02fc [project @ 1999-10-12 17:04:44 by jwe]
jwe
parents:
diff changeset
94