[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: easiest way to do simultaneous builds with different options from sa
From: |
Sébastien Hinderer |
Subject: |
Re: easiest way to do simultaneous builds with different options from same dir? |
Date: |
Mon, 9 Jul 2018 11:02:58 +0200 |
Hi Britton,
You may want to give RX and TX object files different names. Assuming a
source module foo.c that will be compiled twice, once for RX and once
for TX, you would call the generated object files foo_rx.c and foo_tx.c.
Then, you could have different rules with different flags to build the
different object files and all that would work in parallel, like this:
%_rx.o: %.c
$(CC) $(CFLAGS) -o $@ $<
%_tx.o: %.c
$(CC) $(CFLAGS) -o $@ $<
Things can even be made more sophisticated with macros, target-specific
variables etc. but I think you could start with that and elaborate only
if you really need it.
hth,
Sébastien.