Mail Archives: djgpp/1998/05/09/17:10:12
Alex Weekley wrote:
>
> Can anyone please tell me what is wrong with this makefile? One minute
> it was working fine and now I always get missing separator. I've even
> tried writing a new one but the same thing always happens. Arrgh! I hate
> make!
>
> --
> Alex Weekley
> mailto:rednax89 AT airmail DOT net
>
> ------------------------------------------------------------------------
> CC=gcc
> CFLAGS=-s -O2 -Wall -x c
> FOOL_LIB=libkb.a libsb.a
> FOOL_OBJ=\
> foolmain.o\
> al_video.o\
> bitmap.o \
> font.o \
> graph.o \
> blaster.o \
> globals.o \
> engine.o \
> game_art.o\
> game_aud.o\
> debug.o
>
> fool.exe:
You must have 0x09 character at the beggining of the next line.
> $(FOOL_OBJ)
> $(CC) -o fool.exe $(FOOL_OBJ) $(FOOL_LIB)
>
> %.o:
here too:
> $(CFLAGS) %.c
The problame is:
DJGPP has a sukka maker. The separator is the 0x09 character, the TAB
character.
Most of the text editors CHANGES the tab characters to spaces.
You should USE windoze notepad.
Or use hex editor.
Or make a program to replace the + characters to 0x09.
The tab character (or + if you made a program for that) means, what
command line shall we have.
The more inportant problame is:
You have forgotten to use the -s param.
Good luck.
- Raw text -