=========================================================
Windows Samples
=========================================================

Using with only ami_bmp (bmp) and without openmp 
------------------------------------------------

 c:/mingw/bin/mingw32-make.exe -f makefile_ami_image -e CXX=c:/mingw/bin/g++.exe

or

 make -f makefile_ami_image -e CXX=g++



Using with only ami_bmp (bmp) and with openmp
---------------------------------------------

 c:/mingw/bin/mingw32-make.exe -f makefile_ami_image -e CXX=c:/mingw/bin/g++.exe -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp

or

 make -f makefile_ami_image -e CXX=g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp



Using openmp and image libraries (jpeg,bmp,png,tiff)
------------------------------------------------------------------

 c:/mingw/bin/mingw32-make.exe -e CXX=c:/mingw/bin/g++.exe -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Wlibs

or

 make -e CXX=g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Wlibs



-------------------
Architecture option
-------------------

if you have an error during compile like: "undefined reference: __sync_fetch_and_add_4". You have to use -e ARCH=-march=i586, for example:

 c:/mingw/bin/mingw32-make.exe -e CXX=c:/mingw/bin/g++.exe -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Wlibs -e ARCH=-march=i586

or

 make -e CXX=g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Wlibs -e ARCH=-march=i586

or 

 c:/mingw/bin/mingw32-make.exe -f makefile_ami_image -e CXX=c:/mingw/bin/g++.exe -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e ARCH=-march=i586

or 

 make -f makefile_ami_image -e CXX=g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e ARCH=-march=i586



=========================================================
Linux Samples
=========================================================

Using openmp and ami_bmp (bmp)
------------------------------------

 usr/bin/make -f makefile_ami_image -e CXX= usr/bin/g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp

or

 make -f makefile_ami_image -e CXX= g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp



Using with ami_bmp (bmp) and without openmp 
-------------------------------------------
 
 usr/bin/make -f makefile_ami_image -e CXX= usr/bin/g++ 

or

 make -f makefile_ami_image -e CXX= g++ 



Using with openmp and 32 / 64 bits image libraries
--------------------------------------------------

32 bits:

 usr/bin/make -e CXX= usr/bin/g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Ulibs32

or

 make -e CXX= g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Ulibs32


64 bits:

 usr/bin/make -e CXX= usr/bin/g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Ulibs64

or

 make -e CXX= g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Ulibs64



Using with 32 / 64 bits image libraries and without openmp
----------------------------------------------------------

32 bits:

 usr/bin/make -e CXX= usr/bin/g++ -e LIBS=Ulibs32

or

 make -e CXX= g++ -e LIBS=Ulibs32


64 bits:

 usr/bin/make -e CXX= usr/bin/g++ -e LIBS=Ulibs64

or

 make -e CXX= g++ -e LIBS=Ulibs64



-------------------
Architecture option
-------------------

if you have an error during compile like: "undefined reference: __sync_fetch_and_add_4". You have to use -e ARCH=-march=i586, for example:

 usr/bin/make -e CXX=usr/bin/g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Ulibs32 -e ARCH=-march=i586

or

 usr/bin/make -e CXX=usr/bin/g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Ulibs64 -e ARCH=-march=i586

or

 make -e CXX=g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Ulibs32 -e ARCH=-march=i586

or

 make -e CXX=g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e LIBS=Ulibs64 -e ARCH=-march=i586

or 

 usr/bin/make -f makefile_ami_image -e CXX=usr/bin/g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e ARCH=-march=i586

or 

 make -f makefile_ami_image -e CXX=g++ -e OMPD=-DAMI_OMP_H -e OMPF=-fopenmp -e ARCH=-march=i586







































