UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor yulei
Visitor
542 Views
Registered: ‎09-27-2018

INCLUDES=-I./. -I${INCLUDEDIR}

Jump to solution

hi all:

what does "-I ./." mean ?

////////////////////////////////////////////////////////////

COMPILER=
ARCHIVER=
CP=cp
COMPILER_FLAGS=
EXTRA_COMPILER_FLAGS=
LIB=libxil.a

CC_FLAGS = $(COMPILER_FLAGS)
ECC_FLAGS = $(EXTRA_COMPILER_FLAGS)

RELEASEDIR=../../../lib
INCLUDEDIR=../../../include
INCLUDES=-I./. -I${INCLUDEDIR}

OUTS = *.o

LIBSOURCES:=*.c
INCLUDEFILES:=*.h

OBJECTS = $(addsuffix .o, $(basename $(wildcard *.c)))

libs: banner coresightps_dcc_comp_libs clean

%.o: %.c
${COMPILER} $(CC_FLAGS) $(ECC_FLAGS) $(INCLUDES) -o $@ $<

banner:
echo "Compiling coresightps_dcc"

coresightps_dcc_comp_libs: ${OBJECTS}
$(ARCHIVER) -r ${RELEASEDIR}/${LIB} ${OBJECTS}

.PHONY: include
include: coresightps_dcc_includes

coresightps_dcc_includes:
${CP} ${INCLUDEFILES} ${INCLUDEDIR}

clean:
rm -rf ${OBJECTS}

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
540 Views
Registered: ‎08-20-2018

Re: INCLUDES=-I./. -I${INCLUDEDIR}

Jump to solution

@yulei

 

 

-I<dir> tells compiler to add the directory dir to the head of the list of directories to be searched for header files.

If you use more than one -I option, the directories are scanned in left-to-right order 

 

Best Regards,

Nutan

_____________________________

Please do not forget to accept as a solution, kudo

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution

View solution in original post

0 Kudos
2 Replies
Moderator
Moderator
541 Views
Registered: ‎08-20-2018

Re: INCLUDES=-I./. -I${INCLUDEDIR}

Jump to solution

@yulei

 

 

-I<dir> tells compiler to add the directory dir to the head of the list of directories to be searched for header files.

If you use more than one -I option, the directories are scanned in left-to-right order 

 

Best Regards,

Nutan

_____________________________

Please do not forget to accept as a solution, kudo

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution

View solution in original post

0 Kudos
Visitor yulei
Visitor
529 Views
Registered: ‎09-27-2018

Re: INCLUDES=-I./. -I${INCLUDEDIR}

Jump to solution
thank you !
but why is not " INCLUDES=-I./ -I${INCLUDEDIR} "?
0 Kudos