using variables in makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In my makefile I have these lines:
GPGPUSIM_ROOT := $(GPGPUSIM_ROOT)
include $(NVIDIA_CUDA_SDK_LOCATION)/C/common/common.mk

I have set two variables in bash.rc file. The results for echo are:
mahmood@magma:~$ echo $GPGPUSIM_ROOT
/home/mahmood/gpgpusim/gpgpu-sim_v2.1.1b

mahmood@magma:~$ echo $NVIDIA_CUDA_SDK_LOCATION
/home/mahmood/NVIDIA_GPU_Computing_SDK

Now when I run the makefile I get this error:
Makefile:<line number>: /C/common/common.mk: No such file or directory
make: *** No rule to make target `/C/common/common.mk'.  Stop.

I have searched to find why environment variables don't work in makefile,
but didn't find anything useful. I am not expert in makefile structures but
I have compiled makefiles that contain 
-I$(VARIABLE)/include and they are successfull. So what is the difference
here?

-- 
View this message in context: http://old.nabble.com/using-variables-in-makefile-tp27781832p27781832.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux