delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/20/15:35:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Brian Fallik" <fallik AT assurtech DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Variables in Makefiles
Date: Thu, 20 Nov 2003 15:34:58 -0500
Message-ID: <KGEPJACPEAKBALKALIGKAEIGCBAA.fallik@assurtech.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Spam-Processed: Assurtech.com, Thu, 20 Nov 2003 15:35:51 -0500
(not processed: message from valid local sender)
X-Return-Path: fallik AT assurtech DOT com
X-MDaemon-Deliver-To: cygwin AT cygwin DOT com
Reply-To: fallik AT assurtech DOT com

Cygwin folks,

I'm having trouble getting makefiles to work in the cygwin environment.
They work perfectly fine in Linux.  I've checked the mailing list archives,
google, google groups, and the faq for help but haven't found the solution.
Any help would be appreciates.  Please CC me on responses as I'm not
subscribed.

Did I miss something obvious?

Thanks,
brian

===============

On Linux (YDL 2.3) I have an extensive non-recursive makefile structure.
make -v shows GNU Make version 3.79.1.  On Win 2000 I've installed cygwin
and the development tools.  make -v shows GNU Make 3.80.  When I try to run
make from the root directory (in both --unix and not) I get output like the
following repeated over and over:
  c:\***/asip/netdefinition/build/gmake/Rules.mk:79: no file name for
`-include'
I believe this is just a warning but I'm concerned it may cause a problem
later on.

Additionally and perhaps more importantly, make doesn't actually do
anything.  It seems to be producing .a files without compiling anything.  If
I try make with warn-undefined-variables I get many warnings undefined vars
and if I try to echo some vars used in my makefiles they all appear empty.

For instance, this makefile section:
  SRCS_$(d)	:= \
		../../source/product/Alarm_impl.cpp

  test:
	echo $(SRCS_$(d))

echoes nothing when run on Windows but echoes
../../source/product/Alarm_impl.cpp on Linux.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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