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: mahm...@magma:~$ echo $GPGPUSIM_ROOT /home/mahmood/gpgpusim/gpgpu-sim_v2.1.1b mahm...@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 successful. So what is the difference here? -- View this message in context: http://old.nabble.com/using-variables-in-makefile-tp27790598p27790598.html Sent from the Gnu - Make - Help mailing list archive at Nabble.com. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
