[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compacting link-rules

From: Gisle Vanem
Subject: Compacting link-rules
Date: Thu, 18 Oct 2018 17:40:55 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hello list.

I need help with compacting a series of rules like (from a
Qwt makefile):

  animation_OBJ = examples/animation/main.obj \

  barchart_OBJ = examples/barchart/barchart.obj \
                 examples/barchart/main.obj     \

  bin/animation.exe: $(animation_OBJ) $(LIBS)
    $(call link_EXE, $@, $^)

  bin/barchart.exe: $(barchart_OBJ) $(LIBS)
    $(call link_EXE, $@, $^)

  ...  plus a lot more

into a more compact rule like:
  bin/%.exe: $($(@F)_OBJ) $(LIBS)
    $(call link_EXE, $@, $^)

But I fail to get a correct param-2 for my link_EXE macro.
What would be the correct syntax for this? (if at all possible).

This is for MSVC/clang-cl. I'm on Windows-10 using GNU-make v 4.2.90.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]