2007-06-22 gcc subst: replace string in Makefile 123456TARGETS = 111.cpp 222.cpp 333.cppOTARGETS= $(subst cpp,o,$(TARGETS))LTARGETS= $(subst cpp,lo,$(TARGETS))%.o: %.cpp g++ -c -o $@ $<all: objs libs Newer Autotools Older gcc参数可变的宏定义