bug-make
[Top][All Lists]
Advanced

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

[bug #29104] Directory Search for Link Libraries doesn't work in implici


From: Timothy N Murphy
Subject: [bug #29104] Directory Search for Link Libraries doesn't work in implicit rules
Date: Sun, 07 Mar 2010 10:04:27 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100216 Fedora/3.5.8-1.fc12 Firefox/3.5.8

Follow-up Comment #1, bug #29104 (project make):

Hi, 

The syntax for a pattern rule does not allow you to specify anything other
than the input file and the output file.  but you can still add further
prerequisites to get what you want like so:


BUILD_CMD = $(CC) $^ -o $@
all: main.exe
%.exe: %.c
        $(BUILD_CMD) 

main.exe: -lm

This is reasonably sensible - since not all exes in the entire universe
really to link to libm.


Regards,

Tim

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29104>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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