On 13-Apr-99 [EMAIL PROTECTED] wrote:
> I apologize for this note but this list has been far better to me than
> Usenet, and I'm hoping someone knowledgable with programming could make some
> suggestions.  
> 

Hmm, are these supposed to work on Intel machines?  Seems to be mostly mips and
other non-Intel hardware options.

A makefile is a list of items and the commands to run when that item is needed.

foo: a.o b.o c.o
\tgcc a.o b.o c.o -o $@

a.o: a.c a.h
\tgcc a.c -c

b.o: b.c b.h
\tgcc b.c -c

c.o: c.c c.h
\tgcc c.c -c -lfoo -lbar -lbaz \
\t-L/look/here/for/lib -lX11

The \t means tab and where you see one, one MUST exist.  c.o has a \ after the
second line because the line is split over two lines.

The syntax is:

<name>: <depends on>
\t<command>

if command needs to be more than one command that is ok.  Each command must
have a \t before it.

g++ is indeed the correct c++ compiler.

Reply via email to