Andreas Tille <ti...@debian.org> writes: > OK, I've implemented this in my last commit.
Great, thanks! > Isn't > > # Get the list of all .cpp files, rename to .o files > # > OBJECTS=$(patsubst %.cpp,%.o,$(wildcard $(addsuffix *.cpp,$(subdirs)))) > OBJECTS+=$(patsubst %.c,%.o,$(wildcard $(addsuffix *.c,$(subdirs)))) > OBJECTS+=$(patsubst %.cpp,%.o,$(wildcard *.cpp)) > OBJECTS+=$(patsubst %.c,%.o,$(wildcard *.c)) > > the right way to get the path correctly? Or what do you mean? Please try changing the last two lines to OBJECTS+=$(patsubst %.cpp,%.o,$(wildcard source/*.cpp)) OBJECTS+=$(patsubst %.c,%.o,$(wildcard source/*.c)) to match the relevant sources' actual location; sorry if that was unclear. (The existing setup only covers subdirectories of source, missing that directory's immediate contents.) -- Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org) http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu