www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/22/09:20:40

Date: Mon, 22 Apr 1996 12:32:42 +0200 (MET DST)
From: "Christoph P. Kukulies" <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Subject: Re: Get ready to through the book at me :) ....
In-reply-to: <199604220820.SAA00278@linuxbox.nse.com.au> from <root@Apr>
To: naderr AT topaz DOT cqu DOT edu DOT au
Cc: djgpp AT delorie DOT com
Reply-to: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Message-id: <199604221032.MAA24623@gilberto.physik.rwth-aachen.de>
MIME-version: 1.0

> 
> 
> Ok fellas, here we go,
> 
> I'm trying to write the most simple makefile for the
> most simple of C programs, hello.cc ... yet I get
> 
> makefile:5: *** missing separator. Stop
> 
> 
> The makefile goes like:
> 
> # gnu makefile
> all : hello.exe
> 
> hello.exe : hello.cc
>         gcc -O2 hello.cc -o hello.exe

^^^^^^^^^ This got to be a <TAB>

Watch out for empty lines beginning with a <TAB>. This usually
confuses make. Also continuation \'s followed by blanks
are common pitfalls.


> # eof
> 
> I can compile the little bugger from the
> command line:
> 
> C:\> gcc -O2  hello.cc -o hello.exe
> 
> After not being able to figure it out
> I grabbed the \djgpp\src\makefile
> copied it and modified it for hello.cc
> Yet I got the same thing!
> 
> What is _it_ that I'm missing?
> 
> 
> Also, these makefiles are fairly GNU standard?
> compatible with gnu make-3.7.4 that I use for Linux?
> So if I setup the OS specific variables such as
> "target extension $(EXE)", etc, I should be able to have 
> the same makefile for both platforms by just editing
> (un/commenting) the right make variables??
> 
> 
> Any ideas greatly appreaciated
> 
> 
> Cheers,
> 
> 		Rob
> 

--Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de

- Raw text -


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