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.

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to