You should have -m64 -O -fPIC -fexceptions in CXXFLAGS (or maybe CFLAGS - you'll have to try it) since they are not preprocessor options.
You don't need CPPFLAGS on the link line and you shouldn't need CXXFLAGS either. I've never managed to avoid having a link line - post how it's done when you find out.
"info make" is a very good source of documentation. I always use the automatic dependency generation from it - have a look. (You can post again if you don't find it).
Is this homework?
Main Topics
Browse All Topics





by: evilrixPosted on 2007-11-27 at 13:05:48ID: 20361304
Various shortcuts and optimizations for makefiles are discussed here: -
Tutor/Make /4.html
http://www.eng.hawaii.edu/