delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/17/09:34:42

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
Message-ID: <19991217143435.222.qmail@web122.yahoomail.com>
Date: Fri, 17 Dec 1999 06:34:35 -0800 (PST)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: standards for building
To: John Huddleston <jhuddles AT rocky DOT itc DOT nrcs DOT usda DOT gov>,
cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

--- John Huddleston <jhuddles AT rocky DOT itc DOT nrcs DOT usda DOT gov> wrote:
> Reply to Earnie, (Cc to Cygwin list)
> 
> No one responded for an idea for the makefiles,
> perhaps there is no standard.  Here is some sample

Well, there is a suggested "standard" at the FSF.

> code that works to isolate platforms within a makefile,
> what do you think?
> 

I'm in no way an expert at gnu Makefiles.  I haven't had to construct anything
complex.  If your sample works, then I think it's wonderful.  I would tend to
take a look at using config.guess, configure scripts that use it, autoconf and
automake packages and packages that use it to decide how I would setup the
scripts.

Does anyone on the list know of a step by step tutorial on autoconf and
automake configuration other than the info files that come with the packages? 
Does anyone else have a suggestion?

> DIR:=empty
> export UNIX_VER:=$(shell uname -r)
> ifeq ($(UNIX_VER), 20.1 (0.3/1/1))
>  DIR:=/cygwin/sysutils
> endif
> ifeq ($(UNIX_VER), 4.2MP)
>  DIR:=/unixware/sysutils
> endif
> ifeq ($(UNIX_VER), 5.5.1)
>  DIR:=/solaris5/sysutils
> endif
> ifeq ($(UNIX_VER), 5.6)
>  DIR:=/solaris6/sysutils
> endif
> 
> usage:
>  @echo "$(DIR)"
> 
> The echo line starts with a TAB.  The "uname -r"
> command under Cygnus brings out the major
> version plus the date.   There are many variants
> of this kind.   Too bad, it simply does not poduce
> the major version.
> 
> John Huddleston
> 
-8<-


=====
Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com>
Cygwin Newbies, please visit
<http://www.freeyellow.com/members5/gw32/index.html>
__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

--
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