[Makefile][rule explain] Makefile rule explain
%.o : %.c
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
%.o
% like *
$< : substitute all file to match document
ex : %.c
abc.c bcd.c xxx.c
$@ : substitute all file to match target
ex : %.o
abc.o bcd.o xxx.o
0 意見:
張貼留言