delorie.com/archives/browse.cgi | search |
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 |
X-Dreamscape-Track-A: | sA10-p60.dreamscape.com [209.4.252.252] |
X-Dreamscape-Track-B: | Sat, 13 May 2000 10:08:46 -0400 (EDT) |
From: | "Ed Hourigan" <ehouriga AT dreamscape DOT com> |
To: | "CygWin" <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | make problem w/ implicit rules |
Date: | Sat, 13 May 2000 10:16:24 -0400 |
Message-ID: | <000001bfbce5$d26aa3c0$fcfc04d1@edhourig> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook 8.5, Build 4.71.2377.0 |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
------=_NextPart_000_0001_01BFBCC4.4B5903C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I am new to the cygwin version of gcc/g++. I have used gcc/g++ under Unix for several years. In a typical Unix makefile, you can have implicit rules like this: .SUFFIXES: .cpp .o # rule to make a .o from a .cpp file .cpp.o: g++ $(FLAGS) -c $< This allows you to add source files to your project w/out having to add an explicit rule for each source file. All you have to do is update the list of object files (.o) in the makefile. However, this doesn't seem to be supported or work under the cygwin version of make. Is there something I need to configure? I took a simple makefile from a Linux machine and moved it onto a PC w/ cygwin installed (along with source .cpp files) and I cannot make/build the project anymore. The error I get is: make: ** No rule to make target 'main.o' needed by 'testit'. Stop The makefile doesn't have an explicit rule for main.o. Under Linux, it uses the implicit rule to take the source file main.cpp and compile it into main.o ----------------------------------------------------- ------=_NextPart_000_0001_01BFBCC4.4B5903C0 Content-Type: text/x-vcard; name="Ed Hourigan.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Ed Hourigan.vcf" BEGIN:VCARD VERSION:2.1 N:Hourigan;Ed FN:Ed Hourigan EMAIL;PREF;INTERNET:ehouriga AT dreamscape DOT com REV:20000303T112449Z END:VCARD ------=_NextPart_000_0001_01BFBCC4.4B5903C0 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com ------=_NextPart_000_0001_01BFBCC4.4B5903C0--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |