8 if test $# -ge 1 ; then
13 if test "$1" = "-release" ; then
15 elif test "$1" = "-skipcompile" ; then
17 elif test "$1" = "-tecio" ; then
20 EXTRAFLAGS
="$EXTRAFLAGS $1"
25 echo "Choose platform:"
51 echo " linuxg248x64.26"
52 echo " linuxg27x64.26"
58 echo " 1. Make tecio.a only"
59 echo " 2. Make tecio.a and pltview"
63 if test $choice -eq 1 ;then
77 FINALCFLAGS
="-arch ppc -arch i386 -arch ppc64 -arch x86_64 -DDARWIN -DLONGIS64 -I/usr/X11R6/include"
79 LINKFLAGS
="-arch ppc -arch i386 -arch ppc64 -arch x86_64"
82 FINALCFLAGS
="-DIRISX -DLONGIS64 -mips4 -64"
83 LINKFLAGS
="-mips4 -64"
86 FINALCFLAGS
="-DIRISX -DLONGIS64 -mips4 -64"
87 LINKFLAGS
="-mips4 -64"
90 FINALCFLAGS
="-DIRISX -mips4 -n32"
91 LINKFLAGS
="-mips4 -n32"
94 FINALCFLAGS
="-DIRISX -o32"
98 FINALCFLAGS
="-DIRISX -DIRIX62 -DLONGIS64 -mips4 -64"
99 LINKFLAGS
="-mips4 -64"
102 FINALCFLAGS
="-DIRISX -DIRIX62 -mips4 -n32"
103 LINKFLAGS
="-mips4 -n32"
106 FINALCFLAGS
="-DIRISX -DIRIX62 -mips1 -32"
107 LINKFLAGS
="-mips1 -32"
110 FINALCFLAGS
="-DIRISX -DIRIX62 -mips3 -n32"
111 LINKFLAGS
="-mips3 -n32"
114 FINALCFLAGS
=-DIBMRS6000X
117 FINALCFLAGS
="-DIBMRS6000X -DLONGIS64 -q64"
121 FINALCFLAGS
="-DCOMPAQX -I/usr/include -ieee_with_inexact"
124 FINALCFLAGS
="-DDECALPHAX -I/usr/include -ieee_with_inexact"
126 hp7xx.
*-64) CCOMP
=aCC
127 FINALCFLAGS
="+DD64 +DS2.0 -AA -DHPX -DLONGIS64 -I/usr/include/X11R6 -I/usr/include/Motif2.1"
128 LINKFLAGS
="+DA2.0W +DD64 +DS2.0W"
130 hp7xx64.11
) CCOMP
=aCC
131 FINALCFLAGS
="+DA2.0W +DD64 +DS2.0W -AA -DHPX -DLONGIS64 -I/usr/include/X11R6 -I/usr/include/Motif2.1"
132 LINKFLAGS
="+DA2.0W +DD64 +DS2.0W"
135 FINALCFLAGS
="+DD64 -AA -DHPX -DLONGIS64 -I/usr/include/X11R6 -I/usr/include/Motif2.1"
139 FINALCFLAGS
="+DAportable -AA -DHPX -I/usr/include/X11R6 -I/usr/include/Motif2.1"
140 LINKFLAGS
="+DAportable"
143 FINALCFLAGS
="-DCRAY -DUNIXX"
145 linux
*i64.
*)CCOMP
=g
++
146 FINALCFLAGS
="-fPIC -DLINUX -DLINUXI64"
148 linux
*64.
*) CCOMP
=g
++
149 FINALCFLAGS
="-fPIC -DLINUX -DLINUX64"
152 FINALCFLAGS
="-fPIC -DLINUX"
154 sun4.54
) CCOMP
=/opt
/SUNWspro
/bin
/CC
155 FINALCFLAGS
="-DSUN -DSUNSOLARISX -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
156 LINKFLAGS
="-library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg"
157 MAKECMD
=/usr
/ccs
/bin
/make
158 AR
=/opt
/SUNWspro
/bin
/CC
161 sun4.55
) CCOMP
=/opt
/SUNWspro
/bin
/CC
162 FINALCFLAGS
="-DSUN -DSUNSOLARISX -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
163 LINKFLAGS
="-library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg"
164 MAKECMD
=/usr
/ccs
/bin
/make
165 AR
=/opt
/SUNWspro
/bin
/CC
168 sun4.57
) CCOMP
=/opt
/SUNWspro
/bin
/CC
169 FINALCFLAGS
="-DSUNSOLARISX -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
170 LINKFLAGS
="-library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg"
171 MAKECMD
=/usr
/ccs
/bin
/make
172 AR
=/opt
/SUNWspro
/bin
/CC
175 sun4.57
-64) CCOMP
=/opt
/SUNWspro
/bin
/CC
176 FINALCFLAGS
="-DSUNSOLARISX -DLONGIS64 -KPIC -xarch=v9 -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
177 LINKFLAGS
="-KPIC -xarch=v9 -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg"
178 MAKECMD
=/usr
/ccs
/bin
/make
179 AR
=/opt
/SUNWspro
/bin
/CC
182 sun464.57
) CCOMP
=/opt
/SUNWspro
/bin
/CC
183 FINALCFLAGS
="-DSUNSOLARISX -DLONGIS64 -KPIC -xarch=v9 -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
184 LINKFLAGS
="-KPIC -xarch=v9 -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg"
185 MAKECMD
=/usr
/ccs
/bin
/make
186 AR
=/opt
/SUNWspro
/bin
/CC
189 sun464.59
) CCOMP
=/opt
/SUNWspro
/bin
/CC
190 FINALCFLAGS
="-DSUNSOLARISX -DLONGIS64 -KPIC -m64 -xarch=generic -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
191 LINKFLAGS
="-KPIC -m64 -xarch=generic -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg"
192 MAKECMD
=/usr
/ccs
/bin
/make
193 AR
=/opt
/SUNWspro
/bin
/CC
196 sun86.54
) CCOMP
=/opt
/SUNWspro
/bin
/CC
197 FINALCFLAGS
="-DSUN -DSUNSOLARISX -I/usr/openwin/include -I/usr/dt/include"
198 MAKECMD
=/usr
/ccs
/bin
/make
199 AR
=/opt
/SUNWspro
/bin
/CC
202 *) echo "Err: Invalid platform"
207 if test "$isrelease" = "y" ; then
208 EXTRAFLAGS
="$EXTRAFLAGS -DNO_ASSERTS"
213 if test "$skipcompile" = "n" ; then
214 rm -f *.o
*/*.o
*.a
> /dev
/null
2>&1
217 rm -f *.a
> /dev
/null
2>&1
221 FINALCFLAGS
="$FINALCFLAGS $EXTRAFLAGS -DUSEENUM -DTHREED"
223 # NOTE: Used to use make here but had problems with using remsh to run
224 # make multiple times to get 64 bit and 32 bit versions of libraries....
226 # $MAKECMD $MAKEWHAT AR=$AR CC=$CCOMP LINKFLAGS="$LINKFLAGS" STRIPFLAG=$STRIPFLAG CFLAGS="$EXTRAFLAGS -DUSEENUM -DTHREED $FINALCFLAGS"
233 BASELIST
=`/bin/ls -1 *.cpp`
236 for file in $BASELIST
238 OBJNAME
=`echo $file | sed 's/\.cpp/.o/'`
239 OBJLIST
="$OBJLIST tecsrc/$OBJNAME"
244 if test "$skipcompile" = "n" ; then
245 for file in $BASELIST
248 tecxxx.cpp
) ARCHIVEFLAG
=-DMAKEARCHIVE;;
249 arrlist.cpp
) ARCHIVEFLAG
=-DMAKEARCHIVE;;
250 datautil.cpp
) ARCHIVEFLAG
=-DMAKEARCHIVE;;
253 echo "$CCOMP $FINALCFLAGS $ARCHIVEFLAG -c $file"
254 $CCOMP $FINALCFLAGS $ARCHIVEFLAG -c $file
263 echo "$AR $ARFLAGS tecio.a $OBJLIST"
264 $AR $ARFLAGS tecio.a
$OBJLIST
265 if test -f /bin
/ranlib
; then
267 elif test -f /usr
/bin
/ranlib
; then
268 /usr
/bin
/ranlib tecio.a
;
269 elif test -f /usr
/ucb
/ranlib
; then
270 /usr
/ucb
/ranlib tecio.a
;
273 echo "$CCOMP -I./tecsrc -DMAKEARCHIVE $FINALCFLAGS -c pltview.cpp"
274 $CCOMP -I.
/tecsrc
-DMAKEARCHIVE $FINALCFLAGS -c pltview.cpp
276 echo "$CCOMP $FINALCFLAGS pltview.o tecio.a $LINKFLAGS $LINKLIBS $STRIPFLAG -lm -o pltview"
277 $CCOMP $FINALCFLAGS pltview.o tecio.a
$LINKFLAGS $LINKLIBS $STRIPFLAG -lm -o pltview