Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <016501bf4892$a53e1e80$426a4fa2@itc.nrcs.usda.gov> From: "John Huddleston" To: , References: <19991216182537 DOT 15054 DOT qmail AT web117 DOT yahoomail DOT com> Subject: Re: standards for building Date: Fri, 17 Dec 1999 06:28:46 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 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 code that works to isolate platforms within a makefile, what do you think? 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 ----- Original Message ----- From: Earnie Boyd To: John Huddleston ; Sent: Thursday, December 16, 1999 11:25 AM Subject: Re: standards for building > [snip] > Hmm... No replys yet. This one I can answer, #ifdef __CYGWIN__ is the correct > macro check. > > > What would I use in the makefiles? > > > > Hmm... Don't know how to answer this. Suggestion is to take a look at the > documentation for autoconf, automake and existing packages. > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com