[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Er det Linux eller Windows ?



Mads Bondo Dydensborg <sslug@sslug> writes:

> On 17 Sep 2001, Rasmus Meldgaard wrote:
> 
> > 
> > Mads Bondo Dydensborg <sslug@sslug> writes:
> > 
> > > On Mon, 17 Sep 2001, Peter Aagaard Kristensen wrote:
> > > 
> > > > Det er rigtigt, men jeg ville gerne have det således at jeg ikke behøvede
> > > > ændre på mine makefiler(eller andre filer for den sags skyld) for at compile
> > > > til de forskellige platforme. Hvis det kunne ordnes i Makefile'n ville det
> > > > selvfølgelig også være fint, men der ved jeg heller ikke hvordan man finder
> > > > ud af platformen.
> > > > Slutresultatet skulle gerne være at:
> > > > make all
> > > > compilede det hele ligemeget hvilken platform det var.
> > > 
> > > Kig på uname kommandoen - den burde også virke under CygWin - ellers kig
> > > på autoconf.
> > > 
> > > Mads
> > 
> > jeg har lige siddet og leget med uname, men jeg kan ikke få 
> > gcc -D__`uname`__ til at virke (under zsh under red hat)
> > er der nogen der kan forklare mig hvorfor?
> 
> Hmm. Det virker nu fint her. Skriver du det på kommandolinien?
> 
> Hvis du vil have det i en makefil, er det måske mere smart at kalde en
> shell ting, og så tildele resultatet til en variabel, og bruge den?

ups det var mig det var lidt for hurtig... gråden til det så ud til at
ikke at virke var at printf() kun udskriver vis den ender på \n
-- 
Mvh
Rasmus Meldgaard
sslug@sslug


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *