Mail Archives: djgpp/1996/04/22/03:24:29
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
# 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
- Raw text -