From: Paul Harness Subject: Re: Makefile misery! To: gambcl AT essex DOT ac DOT uk (Gamble C O) Date: Mon, 14 Mar 1994 12:00:58 +0000 (GMT) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp) > > Hi again, I noticed that my code was taking a long time to compile and that > large sections of it were now complete, so I split it into several files and > tried to write a makefile. > > I have never used Make before but I struggled on and produced what you see > below. When I try to run it I get the message: > > :11:Missing seperator.stop. > > I assume that the 11 is a line number, but I just cannot see what is wrong > with the makefile, can anyone help me please, this is driving me INSANE!!! > > Here is the makefile, for your viewing pleasure (haha): > > # makefile, this is line 1 > .SUFFIXES: .exe .c .S .o > > > > CC = gcc > LIBS = -lpc -lm -lgrx > OBJS = fishy.o menu.o view.o print.o > > fishy: $(OBJS) > $(CC) -o fishy $(OBJS) $(LIBS) ^^^^^^^^^ ^^^^^^^^^ You need to setup your editor to use tabs rather than spaces. Some editors are set by default to replace a tab by 8 spaces. To check, when you delete a tab it should disappear with one keypress. This drove me insane for a while too. -- Paul Harness, | Internet: gapa83 AT udcf DOT gla DOT ac DOT uk Department of Physics and Astronomy, | University of Glasgow, | Tel +44-41-339-8855 ext 8359 Glasgow, G12 8QQ, SCOTLAND. | Fax +44-41-334-9029