Mail Archives: djgpp/1996/04/22/09:20:40
>
>
> 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 -