Ubuntu .mk file
Posted: Wed Nov 02, 2011 4:11 am
I made this .mk file for ubuntu (serial version) that should work out of the box, that is, simply doing
export TARGET=ubuntu_serial
make
It will install the necessary system libraries, you need root access to your system. GNU c++ warning are silenced also. Let me know if something doesn't work. -- Thanks, Alfredo
the file:
#-------------------------------------------------------------------------------
# ubuntu_serial.mk
# makefile-include for an Ubuntu distribution,
# tested on Ubuntu 11.04 (may work also in 9.10) and qbox-1.54.4 (may work with earlier versions)
# tested on a amd64 system (may work on x86 also)
#-------------------------------------------------------------------------------
PLT=`uname -m`
#Linux_x8664
#-------------------------------------------------------------------------------
all : system_libs qb
system_libs :
sudo apt-get install fftw-dev libxerces-c-dev liblapack-dev libblas-dev g++
CXX=c++
LD=$(CXX)
PLAT=`uname -m`
#Linux_x8664
PLTFLAGS += -DUSE_FFTW -DUSE_XERCES -DXERCESC_3 -DADD_ -DAPP_NO_THREADS -DXML_USE_NO_THREADS
CXXFLAGS = -O4 -D$(PLT) $(PLTFLAGS) -Wno-write-strings -Wno-unused-result -Wfatal-errors $(DFLAGS)
LIBS = -lfftw -lxerces-c -llapack
LDFLAGS = $(LIBS)
#eof
export TARGET=ubuntu_serial
make
It will install the necessary system libraries, you need root access to your system. GNU c++ warning are silenced also. Let me know if something doesn't work. -- Thanks, Alfredo
the file:
#-------------------------------------------------------------------------------
# ubuntu_serial.mk
# makefile-include for an Ubuntu distribution,
# tested on Ubuntu 11.04 (may work also in 9.10) and qbox-1.54.4 (may work with earlier versions)
# tested on a amd64 system (may work on x86 also)
#-------------------------------------------------------------------------------
PLT=`uname -m`
#Linux_x8664
#-------------------------------------------------------------------------------
all : system_libs qb
system_libs :
sudo apt-get install fftw-dev libxerces-c-dev liblapack-dev libblas-dev g++
CXX=c++
LD=$(CXX)
PLAT=`uname -m`
#Linux_x8664
PLTFLAGS += -DUSE_FFTW -DUSE_XERCES -DXERCESC_3 -DADD_ -DAPP_NO_THREADS -DXML_USE_NO_THREADS
CXXFLAGS = -O4 -D$(PLT) $(PLTFLAGS) -Wno-write-strings -Wno-unused-result -Wfatal-errors $(DFLAGS)
LIBS = -lfftw -lxerces-c -llapack
LDFLAGS = $(LIBS)
#eof