[转载] makefile rules# Unix - 噫吁兮,危乎高哉
e*e
1 楼
【 以下文字转载自 Linux 讨论区 】
【 原文由 exihe 所发表 】
I know .o.c depenndence can be written in %.c:%.o pattern
Is it possible to write a rule for filename:filename.o dependence?
something like:
TARGETS =run1 run2
$(TARGETS):%@.o $(CC) $< -o [email protected]
Thanks
【 原文由 exihe 所发表 】
I know .o.c depenndence can be written in %.c:%.o pattern
Is it possible to write a rule for filename:filename.o dependence?
something like:
TARGETS =run1 run2
$(TARGETS):%@.o $(CC) $< -o [email protected]
Thanks