Additional Include directories

Joel Sherrill joel.sherrill at OARcorp.com
Wed Oct 11 17:51:51 UTC 2000



angelo wrote:
> 
> How do I add additional include directories to the search path inside
> the makefile?
> I know that the compiler directive is -Idir, but where does it go in
> the make file?
> does it go somewhere in here:
> 
> # C++ source names
> CXXSRCS = testcpp.cpp \
>  mainline.cpp
> CXXOBJS_ = $(CXXSRCS:.cpp=.o)
> CXXOBJS = $(CXXOBJS_:%=${ARCH}/%)
> 
> I have been using the hello
> world makefile as a base.

See make/README.  This is from there:

               DEFINES     -- cc -D items.  Included in CPPFLAGS.
                               leaf Makefiles.
                               [ eg: DEFINES += -DUNIX ]

                CPPFLAGS    -- -I include directories.
                               leaf Makefiles.
                               [ eg: CPPFLAGS += -I../include 

> --
> Angelo Fraietta
> 
> PO Box 859
> Hamilton NSW 2303
> 
> Home Page
> 
> http://users.hunterlink.net.au/~maaaf/
> 
> There are those who seek knowledge for the sake of knowledge - that is
> CURIOSITY
> There are those who seek knowledge to be known by others - that is
> VANITY
> There are those who seek knowledge in order to serve - that is LOVE
>     Bernard of Clairvaux (1090 - 1153)
> 

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list