Greetings. I am unable to get the simplest VPATH example working and could use some help. I have a hello world program, hello.cpp in the src directory, and I can't reach it with VPATH. Here is the makefile
VPATH = src CC = g++ OPTS = -c -O2 -Wall OBJS = hello.o hello : $(OBJS) $(CC) -o $@ $(OBJS) hello.o : hello.cpp $(CC) $(OPTS) hello.cpp and here is the result of the make command (Gnu make 3.81) g++ -c -O2 -Wall hello.cpp g++: error: hello.cpp: No such file or directory g++: fatal error: no input files compilation terminated. make: *** [hello.o] Error 4 Any suggestions would be appreciated. Thanks. _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make