Mail Archives: djgpp/1996/09/23/10:13:06
thompson DOT roger AT ic DOT gc DOT ca ( Roger J. Thompson) wrote:
>I've just started using DJGPP.
>The problem I have is in the following makefile. it keeps reporting
>that I have a missing seperator. The makefile works fine with Borland
>and MS, but not version 3.73 of GNU Make. Any suggestions as to what
>Iam doing wrong? The test.c is just an empty procedure.
>-------------------------------------------------------------------------------------
>#Test makefile
>CFLAGS = -I. -Wall -m486 -O3
>SFLAGS = -I. -Wall
>LFLAGS = -s
>CC = gcc
>all : test
>%.o : %.c
> $(CC) $(CFLAGS) -o $@ -c $<
>%.exe : %.o
> $(CC) $(LFLAGS) -o $@ $<
>test : test.exe
>#Dependencies
>test.o: test.c test.h
Did you use an editor that expands tabs to spaces? The lines
after your implicit rules ("%.o : %.c", etc.) need real tabs,
any other whitespace will not work.
Scott
- Raw text -