patsubst
or the following handy trick
SRC_FILES:= test.cpp foo.cpp bar.cpp
OBJ_FILES:= $(SRC_FILES:%.cpp=%.o)
Using
patsubst
the same thing can be achieved.
OBJ_FILES:=$(patsubst %.cpp,%.o,$(SRC_FILES))
No comments:
Post a Comment