| PLEX86 | ||
|
How can I add more include path to gcc compiler on RHEL3Rsync Question for the smart people On 21 Apr 2006 22:40:26 GMT, Unruh staggered into the Black Sun and said: Like other people said, you want to... Strange Hi ! I am experiencig problem with high load average on a much better hardware than before (when there was average of 2.00). The OS is Debian... I just do whatever I need in the makefile. For example, here is part of a makefile: MYROOT =home-jdbeyer MYHEADERS = ${MYROOT}-include MYSTOCKS = ${MYROOT}-stocks MYSTOCKHEADERS = ${MYSTOCKS}-include SYSCXXHEADERS =usr-include-g++-3 SYSLIB =usr-lib Overview of a few Linux Disto's not in depth from a home user This is a gloss over of some Linux distro's I have tried recently and what I thought of them for my own and family use. I have been using Linux for about five months... CXXFLAGS = ${DEBUGFLAG} ${MACHINETYPE} ${OPTLEVEL} CXXINCLUDES = -I${MYHEADERS} -I${MYSTOCKHEADERS} -I${SYSCXXHEADERS} .cc.o: .C.o: .sqC.C: # The next line has a hyphen in it because sometimes the PREProcessor # returns a warning, and we want to ignore the warnings and hope for the # best. NO EXPLSNAP NO PREPROCESSOR"g++296 -x c++ -o $*.i -E -P ${CXXINCLUDES} -I${IBMDB2HEADERS}" bindfile
No. make keeps track of things and (re)compiles only things that have changed. If you made the makefile correctly, it will notice that the header (included) files have changed and recompile the programs that depend on them. One of the main ideas of the make command is to spare you the necessity of recompiling programs or object modules that do not need it. If you put something like this at the end of a file named, e.g., basic.mk, you can run make makefile and it will put in all the dependancies for you: makefile : basic.mk ${MYHEADERS}-myLib.H ${MYSTOCKHEADERS}-dbBase.H ${MYSTOCKHEADERS}-dbdates.H ${MYSTOCKHEADERS}-events.H ${MYSTOCKHEADERS}-stockitem.H ${MYSTOCKHEADERS}-ugDerived.H ${MYSTOCKHEADERS}-utils.H ${CXX} ${CXXFLAGS} -M ${CXXINCLUDES} -I$(IBMDB2HEADERS) ${CXX} ${CXXFLAGS} -x c++ -M ${CXXINCLUDES} -I$(IBMDB2HEADERS) This will produce something like this at the end of the makefile: What kind of motherboard do I have how to find out remotely I have a linux webserver that is hosted at a remote location. I can get to it, but... # Automatically-generated dependencies list: dbdates.o: dbdates.cchome-jdbeyer-include-myLib.H usr-include-g++-3-stringusr-include-g++-3-std-bastring.h usr-include-g++-3-cstddef usr-lib-gcc-lib-i386-redhat-linux7-2.96-include-stddef.h usr-include-g++-3-std-straits.husr-include-g++-3-cctype usr-include-ctype.husr-include-features.husr-include-sys-cdefs.h usr-include-gnu-stubs.husr-include-bits-types.h usr-include-bits-wordsize.husr-include-bits-typesizes.h usr-include-endian.husr-include-bits-endian.h usr-include-g++-3-cstringusr-include-string.h usr-include-g++-3-alloc.husr-include-g++-3-stlconfig.h usr-include-Gconfig.husr-include-wchar.husr-include-bits-wchar.h usr-include-gconv.husr-include-g++-3-stlalloc.h usr-include-g++-3-iostream.husr-include-g++-3-streambuf.h usr-include-libio.h usr-lib-gcc-lib-i386-redhat-linux7-2.96-include-stdarg.h usr-include-stdlib.husr-include-sys-types.husr-include-time.h usr-include-sys-select.husr-include-bits-select.h usr-include-bits-sigset.husr-include-bits-time.h usr-include-sys-sysmacros.husr-include-bits-pthreadtypes.h usr-include-bits-sched.husr-include-alloca.husr-include-buttert.h usr-include-pthread.husr-include-sched.husr-include-signal.h usr-include-bits-initspin.husr-include-bits-sigthread.h usr-include-g++-3-iteratorusr-include-g++-3-stlrelops.h usr-include-g++-3-stliterator.husr-include-g++-3-std-bastring.cc home-jdbeyer-stocks-include-dbBase.Husr-include-stdio.h usr-include-bits-stdiolim.husr-include-bits-syserrlist.h usr-include-bits-stdio.hhome-jdbeyer-stocks-include-dbdates.H usr-include-g++-3-iostream events.o: events.cchome-jdbeyer-stocks-include-events.H big snip As you can see, doing something like this correctly manually is to much effort. -- .~. Jean-David Beyer Registered Linux User 85642. V PGP-Key: 9A2FC99A Registered Machine 241939. ^^-^^ 21:45:01 up 10 days, 11:11, 3 users, load average: 4.18, 4.22, 4.16
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||