File: mk

package info (click to toggle)
mothur 1.33.3+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,248 kB
  • ctags: 12,231
  • sloc: cpp: 152,046; fortran: 665; makefile: 74; sh: 34
file content (27 lines) | stat: -rwxr-xr-x 1,027 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
CPPNames='addtargets2 alignchime alignchimel alnparams alpha alpha2 fractid getparents globalalign2 make3way mx myutils path searchchime seqdb setnucmx sfasta tracebackbit uchime_main usort viterbifast writechhit'
ObjNames='addtargets2.o alignchime.o alignchimel.o alnparams.o alpha.o alpha2.o fractid.o getparents.o globalalign2.o make3way.o mx.o myutils.o path.o searchchime.o seqdb.o setnucmx.o sfasta.o tracebackbit.o uchime_main.o usort.o viterbifast.o writechhit.o'

rm -f *.o mk.stdout mk.stderr tmp.stderr

for CPPName in $CPPNames
do
  echo $CPPName >&2
  g++ $ENV_GCC_OPTS -c -O2 -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -DUCHIMES=1 $CPPName.cpp -o $CPPName.o  >> mk.stdout 2>> tmp.stderr
	cat tmp.stderr
	cat tmp.stderr >> mk.stderr
	rm -f tmp.stderr
done

LINK_OPTS= 
#if [ `uname -s` == Linux ] ; then
#    LINK_OPTS=-static
#fi
g++ $LINK_OPTS $ENV_LINK_OPTS -g -o uchime $ObjNames >> mk.stdout 2>> tmp.stderr
cat tmp.stderr
cat tmp.stderr >> mk.stderr
rm -f tmp.stderr

strip uchime
ls -lh uchime
sum uchime