makefile - What is the difference between %.c and *.c in GNU Make -
what difference between %.c
, *.c
in makefiles. example may have:
vpath %.c $(base_dir)platform/$(target)
and
files += $(wildcard *.c)
both include files in directory end .c take account. when use %.c
, when *.c
? in other words why can't use
vpath *.c $(base_dir)platform/$(target)
instead of
vpath %.c $(base_dir)platform/$(target)
?
thank you.
both %
, *
in gnu make wildcard functions. difference between them %
can used part of text substitution function whereas *
cannot.
if trying make fastest possible makefile, should try , use *
wildcard function in preference %
substitution function there should no resources used store name of matched item , substitute subsequent function call. if not bothered optimising make system limit, not need worry 1 choose.
Comments
Post a Comment