1.
gnu make的函数调用是$,比如 $(subst ee,EE,feet on the street)
Pattern Rules
Makefile里的.c.o等价于 %.o : %.c
.c.o: $(COMPILE) -MT [email protected] -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o [email protected] $< $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -I./glob -g -O2 -MT ar.o -MD -MP -MF .deps/ar.Tpo -c -o ar.o ar.c mv -f .deps/ar.Tpo .deps/ar.Po...
gcc -g -O2 -o make ar.o arscan.o commands.o default.o dir.o expand.o file.o function.o getopt.o getopt1.o implicit.o job.o main.o misc.o read.o remake.o remote-stub.o rule.o signame.o strcache.o variable.o version.o vpath.o hash.o glob/libglob.a
下载3.8.2源码编译,./configure && make
http://www.gnu.org/software/make/manual/make.html#Text-Functions
http://ftp.gnu.org/gnu/make/
时间: 2024-11-05 18:54:10