Re: [dev] Some core tools

From: Connor Lane Smith <cls_AT_lubutu.com>
Date: Thu, 2 Feb 2017 20:08:04 +0000

On 2 February 2017 at 19:54, Markus Wichmann <nullplan_AT_gmx.net> wrote:
> GNU make style patsubst rules, i.e.
>
> %.o: %.c
> $(CC) $(CFLAGS) -o $_AT_ $<
>
> Those are really useful.

While GNU's syntax can be more general, that rule can be done in POSIX make:

> .c.o:
> $(CC) $(CFLAGS) -c $<

Likewise,

> .o:
> $(CC) $(CFLAGS) $(LDFLAGS) -o $_AT_ $<

cls
Received on Thu Feb 02 2017 - 21:08:04 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 02 2017 - 21:12:15 CET