Make的 built-in(implicit) rules

下面的内容可以使用命令

 make  --print-data-base 得到。

%.o : %.c 

#command to execute
    $(COMPILE.c)  $(OUTPUT_OPTION) $<

%:%.c
    $(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@

%:%.o
    $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@

LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
OUTPUT_OPTION = -o $@
CC = cc
LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
LINK.o = $(CC) $(LDFALGS) $(TARGET_ARCH)

你可能感兴趣的:(output)