www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/24/17:00:34

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: dos/unix defines
Date: Thu, 24 Apr 1997 15:49:56 +0200
Organization: TU Chemnitz-Zwickau
Lines: 37
Message-ID: <335F6504.7833DFFE@Mathematik.tu-chemnitz.de>
References: <Pine DOT SGI DOT 3 DOT 93 DOT 970422112220 DOT 7282C-100000 AT gibson DOT eee DOT upd DOT edu DOT ph> <gerlachE93Jr6 DOT DGp AT netcom DOT com>
NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Matthew H. Gerlach wrote:
> 
> on both UNIX and DJCPP make.  In other words, I would like to something like
> the following:
> 
> ifeq (OS, UNIX)
> RM=rm -f
> else
> rm=del
> endif

Here are the fragments, which I'm using for RHIDE:

ifneq ($(strip $(DJDIR)),)
export rhide_OS:=DJGPP
endif

ifeq ($(strip $(rhide_OS)),)
export rhide_OS:=$(shell uname)
endif

ifeq ($(rhide_OS),Linux)
... Do some Linux stuff
endif

ifeq ($(rhide_OS),DJGPP)
... Do some DJGPP stuff
endif

Robert
-- 
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post:    Am Berg 3, D-09573 Dittmannsdorf                     *
* e-Mail:  Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************

- Raw text -


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