From: Robert Hoehne 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: NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 * *****************************************************************