delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/25/13:11:23

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
>Received: from ute.port.de (oe AT ute DOT port DOT de [194.173.33.3])
by port.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id TAA08075;
Tue, 25 Jan 2000 19:13:29 +0100
Message-ID: <388DE7C9.CEBFCDB7@ute.port.de>
Date: Tue, 25 Jan 2000 19:13:29 +0100
From: Heinz-Juergen Oertel <oe AT port DOT de>
Organization: port GmbH Germany
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.13 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: manus AT eiffel DOT com
CC: cygwin users <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Make question
References: <NBBBLJDKHPIDCALEEHBCEEOPDHAA DOT manus AT eiffel DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id NAA00606

Emmanuel STAPF wrote:
> 
> In my makefile, I have the following statement:
> 
> .c.obj:
>         $(CC) $(CFLAGS) -c $<
> 
> and I'm using my makefile to generate a `file.obj' from a `file.c' which
> will be using to create a `library.lib' file.
> 
> However, make fails with the following output:
> make: *** No rule to make target `file.obj', needed by `library.lib'.  Stop.
> 
> Is there something special to do to allow my implicit rule.
> 
> Thanks in advance,
> Regards,
> Manu

It's not a Cygwin question, anyway, this works when I am using
Borland C or KEIL-C

.SUFFIXES: .obj
%.obj : %.c
        $(CC) $(CFLAGS) -o $@ -c $<


> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

-- 
with best regards / mit freundlichen Grüßen

   Heinz-Jürgen Oertel

===========================================
Heinz-Jürgen Oertel
port GmbH            phone +49 345 77755-0
Regensburger Str. 7c fax   +49 345 77755-20
D-06132 Halle/Saale  mailto:oe AT port DOT de
Germany              http://www.port.de
===========================================


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019