bug-make
[Top][All Lists]
Advanced

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

[bug #17883] target-specific variables prevent builtin rules


From: anonymous
Subject: [bug #17883] target-specific variables prevent builtin rules
Date: Fri, 29 Sep 2006 08:30:03 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7

URL:
  <http://savannah.gnu.org/bugs/?17883>

                 Summary: target-specific variables prevent builtin rules
                 Project: make
            Submitted by: None
            Submitted on: Friday 09/29/2006 at 08:30 UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
       Component Version: 3.81
        Operating System: POSIX-Based
           Fixed Release: None

    _______________________________________________________

Details:

Hello,

I want to use a Makefile for creating MORE THAN ONE executables from binary
objects from C source files; but each executable has different object files
on which it depends; therefore, instead of a global $(objs) variable (which
works if it were exactly ONE executable, and no target-specific variable were
needed) , I declare a target-specific variable of enumerated object files;
then I instantiate $(objs) in the target prerequisites, possible before OTHER
prerequisites - like "Makefile" -, and call the ${CC} compiler with $(objs)
arguments; but it DOES NOT trigger the builtin rules for %.o targets.







    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Friday 09/29/2006 at 08:30 UTC  Name: Makefile  Size: 2kB   By: None
a sample Makefile
<http://savannah.gnu.org/bugs/download.php?file_id=10868>

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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