[ANSI-C] Make optimized 64bit

Un .sh come promemoria per macchine a 64bit, non si sa mai…

Versione OPTIMIZED:

[code lang=”bash” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]# Clean everything
if test -d optimized; then \
  cd optimized; \
  make distclean; \
  cd ..; \
fi;

# Do autoconf & friends
make -f Makefile.cvs
mkdir optimized
cd optimized

# Configure for debug build
export CXXFLAGS="-O2 -Wno-deprecated -Wall -g0"
../configure

# Build
make[/code]

Versione DEBUG:

[code lang=”bash” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]# Clean everything
if test -d debug; then \
cd debug; \
make distclean; \
cd ..; \
fi;

# Do autoconf & friends
make -f Makefile.cvs
mkdir debug
cd debug

# Configure for debug build
export CXXFLAGS="-O0 -Wno-deprecated -g3"
../configure

# Build
make[/code]

yep.

 

Alberto Pasca

Software engineer @ Pirelli & C. S.p.A. with a strong passion for mobile  development, security, and connected things.