1#!/bin/csh -f
2#
3# $Id: makedis.csh 512803 2016-09-02 19:57:21Z ucko $
4#
5##                            PUBLIC DOMAIN NOTICE
6#               National Center for Biotechnology Information
7#
8#  This software/database is a "United States Government Work" under the
9#  terms of the United States Copyright Act.  It was written as part of
10#  the author's official duties as a United States Government employee and
11#  thus cannot be copyrighted.  This software/database is freely available
12#  to the public for use. The National Library of Medicine and the U.S.
13#  Government have not placed any restriction on its use or reproduction.
14#
15#  Although all reasonable efforts have been taken to ensure the accuracy
16#  and reliability of the software and data, the NLM and the U.S.
17#  Government do not and cannot warrant the performance or results that
18#  may be obtained by using this software or data. The NLM and the U.S.
19#  Government disclaim all warranties, express or implied, including
20#  warranties of performance, merchantability or fitness for any particular
21#  purpose.
22#
23#  Please cite the author in any work or product based on this material.
24#  Author: Karl Sirotkin <sirotkin@ncbi.nlm.nih.gov>
25#
26#  IBM AIX section: cpsosa@us.ibm.com  Jun-2001
27#
28# Script to untar and make the NCBI toolkit on Solaris.
29#
30
31# NOTE:  use "/bin/tcsh" above if "/bin/csh" is absent (e.g. on QNX OS)
32
33
34set MFLG=""
35
36if ("X$1" == "X-n") then
37	set MFLG="-n"
38	shift
39endif
40
41set tar_file = $1
42set cwd = `pwd`
43
44# do we need to extract the tar archive?
45if ( "X$tar_file" != "X" && "$tar_file" != "-") then
46	if (! -r "$tar_file") then
47		echo Unable to find the file "$tar_file"
48		exit 1
49	endif
50
51	if (-d "ncbi") then
52		echo "ncbi directory already exists, please remove or rename it"
53		exit 2
54	endif
55
56	ls -l $tar_file
57	tar xf $tar_file
58else
59	# make sure that ncbi/build directory exists
60	if ( ! -d "ncbi/build" ) then
61		echo 'ncbi/build directory should exist. Did you extract ncbi.tar.Z?'
62		exit 2
63	endif
64endif
65
66set os=`uname -s`
67
68if ( "$os" == "DragonFly" ) then
69	set os=FreeBSD
70endif
71
72#by default any Unix has Motif installed. In case of Linux do a check later.
73set HAVE_MOTIF=1
74#darwin will use native Mac GUI
75set HAVE_MAC=0
76#we will try to build OpenGL version of vibrant
77set HAVE_OGL=1
78
79if ("$?NCBI" == 0) then
80    if (-d /netopt/ncbi_tools64) then
81        set NCBI = /netopt/ncbi_tools64
82    else if (-d /netopt/ncbi_tools) then
83        set NCBI = /netopt/ncbi_tools
84    endif
85endif
86
87switch ($os)
88case SunOS:
89	switch (`uname -r`)
90	case "4.1*":
91		set platform=sun
92		breaksw
93	default:
94		if ( `uname -p` == i386 ) then
95			set platform=solarisintel
96			if ("$?CC" == 1) then
97				if ("$CC" == "gcc") then
98					set platform=solaris-gcc
99				endif
100			endif
101		else
102			set platform=solaris
103			if ("$?CC" == 1) then
104				if ("$CC" == "gcc") then
105					set platform=solaris-gcc
106				endif
107			else if ("$?SOLARIS_MODE" == 1) then
108				if ("$SOLARIS_MODE" == "64") then
109					set platform=solaris64
110				endif
111			endif
112		endif
113		breaksw
114	endsw
115	set HAVE_OGL=0
116	foreach i (/usr/local/include /usr/local/include/X11 /usr/include \
117		/usr/include/X11 /usr/openwin/include )
118		if (-d $i/GL) then
119			set HAVE_OGL=1
120			echo OpenGL found at $i/GL
121			break
122		endif
123	end
124	breaksw
125case IRIX*:
126	switch (`uname -r`)
127	case "4.*":
128		set platform=sgi4
129		breaksw
130	case "5.*":
131		set platform=sgi5
132		breaksw
133	case "6.5":
134		#set platform=sgi-mips4
135		set platform=sgi
136		breaksw
137	case "6.[0-4]":
138		set platform=sgi
139		breaksw
140	default:
141		set platform=sgi
142		breaksw
143	endsw
144	breaksw
145case OSF1:
146	set platform=alphaOSF1
147	set HAVE_MOTIF=0
148	foreach i (/usr/local/include /usr/local/include/X11 /usr/include \
149		/usr/include/X11 )
150		if (-d $i/Xm) then
151			set HAVE_MOTIF=1
152			echo Motif found at $i/Xm
153			break
154		endif
155	end
156	breaksw
157case Linux:
158case GNU/Linux:
159	lsb_release -a
160    echo "libs version is:"
161	ls -l /lib/libc.so*
162	echo "the gcc version is:"
163	gcc -v
164	switch (`uname -m`)
165	case "ia64":
166		if (-e `which icc`) then
167			set platform=linux_ecc
168		else
169			set platform=linux
170		endif
171		breaksw
172	case "ppc":
173		set platform=ppclinux
174		breaksw
175	case "parisc":
176		set platform=hppalinux
177		breaksw
178	case "i?86":
179		set platform=linux-x86
180		if ("$?LINUX_MODE" == 1) then
181			if ("$LINUX_MODE" == "icc") then
182				switch (`icc -dumpversion`)
183					case "9.*":
184					case "[1-9][0-9]*":
185						set platform=linux_icc9
186						breaksw
187					default:
188						set platform=linux_icc
189						breaksw
190				endsw
191			endif
192		endif
193		breaksw
194	case "alpha":
195		set platform=linux-alpha
196		breaksw
197	case "ppc64":
198		set platform=linux-power
199		breaksw
200	default:
201		if (-d /usr/local/lib64) then
202			set platform=linux64
203		else
204			set platform=linux
205		endif
206		if ("$?LINUX_MODE" == 1) then
207			if ("$LINUX_MODE" == "icc") then
208				set platform=${platform}_icc9
209			endif
210		endif
211		breaksw
212	endsw
213	#check do we have Motif on linux installed
214	set HAVE_MOTIF=0
215	foreach i (/usr/local/include /usr/local/include/X11 /usr/include \
216		/usr/include/X11 )
217		if (-d $i/Xm) then
218			set HAVE_MOTIF=1
219			echo Motif found at $i/Xm
220			echo "Warning: Motif version 1.2 is recommended"
221			break
222		endif
223	end
224	#check do we have OpenGL installed
225	set HAVE_OGL=0
226	foreach i (/usr/local/include /usr/local/include/X11 /usr/include \
227		/usr/include/X11 /usr/openwin/include )
228		if (-d $i/GL) then
229			set HAVE_OGL=1
230			echo OpenGL found at $i/GL
231			break
232		endif
233	end
234	breaksw
235case FreeBSD:
236	set platform=freebsd
237	set HAVE_MOTIF=0
238	foreach i (/usr/local/include /usr/local/include/X11 /usr/include \
239		/usr/include/X11 /usr/local/include )
240		if (-d $i/Xm) then
241			set HAVE_MOTIF=1
242			echo Motif found at $i/Xm
243			break
244		endif
245	end
246	breaksw
247case Darwin:
248	set platform=darwin
249	if ("$?DARWIN_MODE" == 1) then
250		if ("$DARWIN_MODE" == "universal") then
251			set platform=darwin-univ
252            unset NCBI
253            unsetenv NCBI
254		endif
255	endif
256    if ("$?NCBI" == 1) then
257        if (-d "$NCBI/ncbi64") then
258            set NCBI = $NCBI/ncbi64
259        endif
260    endif
261	set HAVE_MOTIF=0
262	breaksw
263case NetBSD:
264	set platform=netbsd
265	set HAVE_MOTIF=0
266	foreach i (/usr/local/include /usr/local/include/X11 /usr/include \
267		/usr/include/X11 )
268		if (-d $i/Xm) then
269			set HAVE_MOTIF=1
270			echo Motif found at $i/Xm
271			break
272		endif
273	end
274	breaksw
275case AIX:
276	set arch=`uname -M`
277	set platform=ibm_auto
278	if ("$?AIX_MODE" == 1) then
279		if ("$AIX_MODE" == "64") then
280			echo "64-bit mode build was selected for AIX"
281			set platform=ibm_auto64
282		endif
283	endif
284	echo "AIX machine is $arch"
285	set HAVE_MOTIF=0
286	foreach i (/usr/local/include /usr/local/include/X11 /usr/include \
287		/usr/include/X11 )
288		if (-d $i/Xm) then
289			set HAVE_MOTIF=1
290			echo Motif found at $i/Xm
291			break
292		endif
293	end
294	breaksw
295case HP-UX:
296	switch (`uname -m`)
297	case "ia64":
298		set platform=hpux_ia64
299		breaksw
300	case "9000/800":
301		set platform=hpux
302		breaksw
303	default:
304		set platform=hpux
305		breaksw
306	endsw
307	breaksw
308case QNX:
309    #uname -a: QNX qnxrulez 6.1.0 2001/06/25-15:31:48edt x86pc x86
310	set platform=qnx
311	breaksw
312default:
313	echo Platform not found : `uname -a`
314	goto BADPLATFORM
315	breaksw
316endsw
317
318echo platform is $platform
319uname -a
320
321set NCBI_DOT_MK = ncbi/platform/${platform}.ncbi.mk
322
323if (! -r "$NCBI_DOT_MK") then
324  goto BADPLATFORM
325endif
326
327set NCBI_GNUTLS_INCLUDE =
328set NCBI_GNUTLS_LIBS =
329
330if ("$?NCBI" == 1) then
331    if (-r "$NCBI/ncbi.mk") then
332        set unsplit = '{ if (/\\$/) { l = l substr($0, 0, length-1) } else { print l $0; l="" } }'
333        set NCBI_GNUTLS_INCLUDE = `awk "$unsplit" $NCBI/ncbi.mk | sed -ne 's/  */ /g; s/^ *NCBI_GNUTLS_INCLUDE *= *//p'`
334        set NCBI_GNUTLS_LIBS = `awk "$unsplit" $NCBI/ncbi.mk | sed -ne 's/  */ /g; s/^ *NCBI_GNUTLS_LIBS *= *//p'`
335    endif
336else if ( { pkg-config gnutls --exists >&/dev/null } ) then
337    set NCBI_GNUTLS_INCLUDE = "`pkg-config gnutls --cflags` -DHAVE_LIBGNUTLS"
338    set NCBI_GNUTLS_LIBS    = "`pkg-config gnutls --libs --static`"
339else if ( { libgnutls-config --version >&/dev/null } ) then
340    set NCBI_GNUTLS_INCLUDE = "`libgnutls-config --cflags` -DHAVE_LIBGNUTLS"
341    set NCBI_GNUTLS_LIBS    = "`libgnutls-config --libs`"
342endif
343
344set noglob
345# take the file $NCBI_DOT_MK and convert it to be suitable for csh eval:
346# (1) remove comments at the beginning of the lines
347# (2) change variable referenses to be in curly brackets - $AAA -> ${AAA}
348# (3) remove excessive spaces around the equal sign
349# (4) change Makefile assignments to csh ones: AAA=bb cc -> setenv AAA "bb cc"
350eval `sed -e 's/^ *#.*//g' -e 's/\$(\([a-zA-Z_]*\))/\${\1}/g' -e 's/ *= */=/g' -e 's/^\([^=]*\)=\(.*\)$/setenv \1 "\2";/' < $NCBI_DOT_MK`
351unset noglob
352
353# disable assert() unless ENABLE_ASSERT is set
354if ("$?ENABLE_ASSERT" == 0) then
355    set NCBI_OPTFLAG="-DNDEBUG $NCBI_OPTFLAG"
356    echo "Disabling assert()."
357else
358    echo "Enabling assert()."
359endif
360
361cd ncbi/build
362ln -s ../make/*.unx .
363ln -s ../make/ln-if-absent .
364mv makeall.unx makefile
365
366# if ( -r ../demo/.BLAST_VERSION ) then
367# 	echo BLAST version is `cat ../demo/.BLAST_VERSION`
368# endif
369
370
371#  Inherited to this system is the requirement to use:
372#    TO USE VIBRANT
373# to have for makeall, this line
374#  LIB30=libncbicn3d.a LIB28=libvibgif.a LIB4=libvibrant.a LIB20=libncbidesk.a
375#  LIB45=libddvlib.a  and for the makenet, this symbol
376#  BLIB31=libvibnet.a
377#
378
379#uncomment two following lines to don't build X11 apps
380#set HAVE_OGL=0
381#set HAVE_MOTIF=0
382
383# if $OPENGL_TARGETS (in <platform>.ncbi.mk) is defined,
384# then add the appropriate flags, libraries, and binaries for OpenGL apps
385if ("$?OPENGL_TARGETS" == "1" && "$HAVE_OGL" == "1" ) then
386    set OGL_NCBI_LIBS="$OPENGL_NCBI_LIBS"
387    set OGL_INCLUDE="$OPENGL_INCLUDE"
388    set OGL_LIBS="$OPENGL_LIBS"
389    set OGL_TARGETS="$OPENGL_TARGETS"
390else
391    set OGL_NCBI_LIBS=""
392    set OGL_INCLUDE=""
393    set OGL_LIBS=""
394    set OGL_TARGETS=""
395endif
396
397# if LIBPNG_DIR and ZLIB_DIR (in <platform>.ncbi.mk) are defined,
398# then add the appropriate flags and libraries for PNG support
399if ("$?LIBPNG_DIR" == "1" && "$?ZLIB_DIR" == "1") then
400    set PNG_INCLUDE="-D_PNG -I$LIBPNG_DIR -I$ZLIB_DIR"
401    set PNG_LIBS="$LIBPNG_DIR/libpng.a $ZLIB_DIR/libz.a"
402else
403    set PNG_INCLUDE=""
404    set PNG_LIBS=""
405endif
406
407set VIBWWWBLAST= #(psiblast.REAL psiblast_cs.REAL blast.REAL blast_cs.REAL)
408set NONVIBWWWBLAST= #(nph-viewgif.cgi wblast2.REAL wblast2_cs.REAL bl2bag.cgi)
409set WWWBLAST=($VIBWWWBLAST $NONVIBWWWBLAST)
410
411if ( "$HAVE_MOTIF" == 1 ) then
412	set ALL_VIB=(LIB30=libncbicn3d.a \
413		LIB28=libvibgif.a \
414		LIB4=libvibrant.a \
415		LIB20=libncbidesk.a \
416		LIB45=libddvlib.a \
417		$OGL_NCBI_LIBS \
418		VIBFLAG=\"$NCBI_VIBFLAG\" \
419		VIBLIBS=\"$NCBI_DISTVIBLIBS\")
420	#By default we don't need to build demo programs with vibrant lib
421	#set DEMO_VIB=(LIB4=-lvibrant \
422	#	VIBLIBS=\"$NCBI_DISTVIBLIBS\" \
423	#	VIBFLAG=\"$NCBI_VIBFLAG\")
424	set DEMO_VIB=()
425
426	set NET_VIB=(BLIB31=libvibnet.a \
427		VIBLIBS=\"$NCBI_DISTVIBLIBS\" \
428		OGLLIBS=\"$OGL_LIBS $PNG_LIBS\" \
429		VIBFLAG=\"$NCBI_VIBFLAG\" \
430		VIB=\"Psequin sbtedit Nentrez udv ddv blastcl3 \
431		idfetch asn2gb tbl2asn gene2xml entrez2 gbseqget $WWWBLAST \
432		$OGL_TARGETS\") # bl2seq taxblast $WWWBLAST
433else if ( "$HAVE_MAC" == 1 ) then
434	set ALL_VIB=(LIB30=libncbicn3d.a \
435		LIB28=libvibgif.a \
436		LIB4=libvibrant.a \
437		LIB20=libncbidesk.a \
438		LIB45=libddvlib.a \
439		$OGL_NCBI_LIBS \
440		VIBFLAG=\"$NCBI_VIBFLAG\" \
441		VIBLIBS=\"$NCBI_DISTVIBLIBS\")
442	#By default we don't need to build demo programs with vibrant lib
443	#set DEMO_VIB=(LIB4=-lvibrant \
444	#	VIBLIBS=\"$NCBI_DISTVIBLIBS\" \
445	#	VIBFLAG=\"$NCBI_VIBFLAG\")
446	set DEMO_VIB=()
447
448	set NET_VIB=(BLIB31=libvibnet.a \
449		VIBLIBS=\"$NCBI_DISTVIBLIBS\" \
450		OGLLIBS=\"$OGL_LIBS $PNG_LIBS\" \
451		VIBFLAG=\"$NCBI_VIBFLAG\" \
452		VIB_POST_LINK=\"../make/make-mac-bundle\" \
453		VIB=\"Psequin sbtedit udv ddv blastcl3 \
454		idfetch asn2gb tbl2asn gene2xml entrez2 gbseqget \")
455		# bl2seq taxblast $WWWBLAST
456else # no Motif, build only ascii-based applications
457    set OGL_NCBI_LIBS=""
458    set OGL_INCLUDE=""
459    set OGL_LIBS=""
460    set OGL_TARGETS=""
461
462	set ALL_VIB=()
463	set DEMO_VIB=()
464	set NET_VIB=(VIB=\"blastcl3 idfetch asn2gb tbl2asn gene2xml \")
465	# bl2seq taxblast $NONVIBWWWBLAST
466endif
467
468set CMD='make $MFLG GNUTLS_INCLUDE=\"$NCBI_GNUTLS_INCLUDE\" \
469   GNUTLS_LIBS=\"$NCBI_GNUTLS_LIBS\" \
470   CFLAGS1=\"$NCBI_OPTFLAG $NCBI_CFLAGS1 $OGL_INCLUDE $PNG_INCLUDE\" \
471   LDFLAGS1=\"$NCBI_LDFLAGS1\" OTHERLIBS=\"$NCBI_OTHERLIBS\" \
472   SHELL=\"$NCBI_MAKE_SHELL\" LCL=\"$NCBI_DEFAULT_LCL\" \
473   RAN=\"$NCBI_RANLIB\" AR=\"$NCBI_AR\" CC=\"$NCBI_CC\" $ALL_VIB all'
474eval echo $CMD
475eval echo $CMD | sh
476
477set make_stat = $status
478
479if ( $make_stat != 0 ) then
480	cat <<EoF
481
482Fatal error building NCBI core libraries.
483Please be sure that you have X11 and Motif libraries installed.
484The NCBI toolkit FAQ at ftp://ftp.ncbi.nih.gov/toolbox/FAQ.html may be helpful.
485
486EoF
487	exit 1
488endif
489
490set CMD='make $MFLG -f makedemo.unx GNUTLS_INCLUDE=\"$NCBI_GNUTLS_INCLUDE\" \
491   GNUTLS_LIBS=\"$NCBI_GNUTLS_LIBS\" CFLAGS1=\"$NCBI_OPTFLAG $NCBI_CFLAGS1\" \
492   LDFLAGS1=\"$NCBI_LDFLAGS1\" SHELL=\"$NCBI_MAKE_SHELL\" OTHERLIBS=\"$NCBI_OTHERLIBS\" \
493   LCL=\"$NCBI_DEFAULT_LCL\" RAN=\"$NCBI_RANLIB\" AR=\"$NCBI_AR\" CC=\"$NCBI_CC\" $DEMO_VIB'
494eval echo $CMD
495eval echo $CMD | sh
496
497set demo_stat = $status
498
499#
500# In case platform supports multi-threading, remake the apps which
501# should be multithreaded, if at all possible.
502#  Might repeat what is done above on some platforms.
503#
504
505# set mtapps = "blastall blastpgp seedtop megablast rpsblast blastclust"
506#
507# rm -f $mtapps
508#
509#
510# set CMD='make $MFLG -f makedemo.unx GNUTLS_INCLUDE=\"$NCBI_GNUTLS_INCLUDE\" \
511#    GNUTLS_LIBS=\"$NCBI_GNUTLS_LIBS\" CFLAGS1=\"$NCBI_OPTFLAG $NCBI_CFLAGS1\" \
512#    LDFLAGS1=\"$NCBI_LDFLAGS1\" SHELL=\"$NCBI_MAKE_SHELL\" OTHERLIBS=\"$NCBI_OTHERLIBS\" \
513#    LCL=\"$NCBI_DEFAULT_LCL\" RAN=\"$NCBI_RANLIB\" AR=\"$NCBI_AR\" CC=\"$NCBI_CC\"  \
514#    THREAD_OBJ=$NCBI_THREAD_OBJ THREAD_OTHERLIBS=\"$NCBI_MT_OTHERLIBS\" \
515#    $DEMO_VIB $mtapps'
516# eval echo $CMD
517# eval echo $CMD | sh
518
519set threaded_demo_stat = $status
520
521if ("$?NCBI_MT_OTHERLIBS" == "1") then
522    set CMD='make $MFLG -f makenet.unx GNUTLS_INCLUDE=\"$NCBI_GNUTLS_INCLUDE\" \
523        GNUTLS_LIBS=\"$NCBI_GNUTLS_LIBS\" \
524		CFLAGS1=\"$NCBI_OPTFLAG $NCBI_CFLAGS1 $OGL_INCLUDE\" \
525		LDFLAGS1=\"$NCBI_LDFLAGS1\" SHELL=\"$NCBI_MAKE_SHELL\" \
526		AR=\"$NCBI_AR\" CC=\"$NCBI_CC\" RAN=\"$NCBI_RANLIB\" OTHERLIBS=\"$NCBI_OTHERLIBS\" \
527		THREAD_OBJ=$NCBI_THREAD_OBJ \
528		THREAD_OTHERLIBS=\"$NCBI_MT_OTHERLIBS\" \
529		NETENTREZVERSION=\"$NETENTREZVERSION\" $NET_VIB'
530else
531    set CMD='make $MFLG -f makenet.unx GNUTLS_INCLUDE=\"$NCBI_GNUTLS_INCLUDE\" \
532        GNUTLS_LIBS=\"$NCBI_GNUTLS_LIBS\" \
533		CFLAGS1=\"$NCBI_OPTFLAG $NCBI_CFLAGS1 $OGL_INCLUDE\" \
534		LDFLAGS1=\"$NCBI_LDFLAGS1\" SHELL=\"$NCBI_MAKE_SHELL\" \
535		AR=\"$NCBI_AR\" CC=\"$NCBI_CC\" RAN=\"$NCBI_RANLIB\" OTHERLIBS=\"$NCBI_OTHERLIBS\" \
536		NETENTREZVERSION=\"$NETENTREZVERSION\" $NET_VIB'
537endif
538eval echo $CMD
539eval echo $CMD | sh
540
541set net_stat = $status
542
543if ($make_stat != 0 || $demo_stat != 0 || $threaded_demo_stat != 0 || $net_stat != 0) then
544   echo FAILURE primary make status = $make_stat, demo = $demo_stat, threaded_demo = $threaded_demo_stat, net = $net_stat
545	cat <<EOF
546#######
547#        #####   #####    ####   #####
548#        #    #  #    #  #    #  #    #
549#####    #    #  #    #  #    #  #    #
550#        #####   #####   #    #  #####
551#        #   #   #   #   #    #  #   #
552#######  #    #  #    #   ####   #    #
553EOF
554   exit 1
555else
556   # we are in ncbi/build directory now. Let us make the VERSION file
557   echo "Put the date stamp to the file ../VERSION"
558   echo "The executable files were built on `date`" > ../VERSION
559   echo "The version number of each individual application" >> ../VERSION
560   echo "may be found in the appropriate documentation files in ./ncbi/doc/" >> ../VERSION
561   echo "uname -a ouput is: `uname -a`" >> ../VERSION
562   foreach i ( Nentrez Psequin sbtedit asn2ff asn2xml asn2gb asn2idx asndhuff asntool bl2seq \
563	blastall blastall_old blastcl3 blastclust blastpgp cdscan checksub \
564	copymat ddv demo_regexp demo_regexp_grep dosimple entrcmd entrez \
565	errhdr fa2htgs fastacmd findspl fmerge formatdb formatrpsdb getfeat \
566        getmesh getpub getseq gil2bin idfetch impala indexpub makemat makeset \
567	megablast ncbisort netentcf rpsblast seedtop seqtest sequin entrez2 \
568	tbl2asn gene2xml test_regexp testcore testobj testval udv vecscreen Cn3D \
569	blast debruijn taxblast $WWWBLAST )
570	if ( -x ./$i ) then
571		rm -rf ../bin/$i ../bin/$i.app
572		if ( $os == "Darwin" ) then
573			/Developer/Tools/Rez Carbon.r -o $i
574			if ( -x ./$i.app ) then
575				cp -pr ./$i.app ../bin/
576			endif
577		endif
578		ln ./$i ../bin/
579	endif
580   end
581   echo '*********************************************************'
582   echo '*The new binaries are located in ./ncbi/build/ directory*'
583   echo '*********************************************************'
584   exit 0
585endif
586
587BADPLATFORM:
588cat << EoF
589Your platform is not supported.
590To port ncbi toolkit to your platform consult
591the files ./ncbi/platform/*.ncbi.mk
592The NCBI toolkit FAQ at ftp://ftp.ncbi.nih.gov/toolbox/FAQ.html may be useful.
593EoF
594exit 0
595