makefile variable

J

juky ma

all source code file are in the path(/opt/Hi3520_SDK_V1.0.5.0.c2/
mpp_master/sample/hishow888/),a makefile also is here,all lib files
are in the path(/opt/Hi3520_SDK_V1.0.5.0.c2/mpp_master/lib/),makefile
looks like this
MPP_PATH:=$(PWD)/../..
LIB_PATH:=$(MPP_PATH)/lib
LIBS := $(LIB_PATH)/libmpi.a
$(warning test LIBS is $(LIBS ))
$(CC) $(CFLAGS) -lpthread -lm -o $@ $^ $(LIBS)

when making the makefile,a message(/opt/Hi3520_SDK_V1.0.5.0..c2/
mpp_master/sample/hishow888/../../lib/libmpi.a) is prited .and the
makefile runs ok.
in the path(/opt/Hi3520_SDK_V1.0.5.0.c2/mpp_master/sample/
hishow888/../../lib/),nothing is here,but the makefile runs ok.
I want to know what happened.please
 
V

Victor Bazarov

all source code file are in the path(/opt/Hi3520_SDK_V1.0.5.0.c2/
mpp_master/sample/hishow888/),a makefile also is here,all lib files
are in the path(/opt/Hi3520_SDK_V1.0.5.0.c2/mpp_master/lib/),makefile
looks like this
MPP_PATH:=$(PWD)/../..
LIB_PATH:=$(MPP_PATH)/lib
LIBS := $(LIB_PATH)/libmpi.a
$(warning test LIBS is $(LIBS ))
$(CC) $(CFLAGS) -lpthread -lm -o $@ $^ $(LIBS)

when making the makefile,a message(/opt/Hi3520_SDK_V1.0.5.0.c2/
mpp_master/sample/hishow888/../../lib/libmpi.a) is prited .and the
makefile runs ok.
in the path(/opt/Hi3520_SDK_V1.0.5.0.c2/mpp_master/sample/
hishow888/../../lib/),nothing is here,but the makefile runs ok.
I want to know what happened.please

Sorry, makefiles are not part of C++ language, and as such are
off-topic. Perhaps you can find more help in a newsgroup that deals
with gmake or your compiler or your OS... IIRC, there is a "debug"
mode/switch with which you can run the makefile with all commands output
instead of executed, try that, it might give you the idea what is not
going right.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top