www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/23/10:13:06

From: frazer AT rtp DOT ericsson DOT se (Scott Frazer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with MAKE
Date: Mon, 23 Sep 1996 15:34:32 GMT
Organization: Ericsson Data Services Americas
Lines: 36
Message-ID: <525vvf$aq5@cnn.exu.ericsson.se>
References: <32466476 DOT 1866268 AT news DOT doc DOT ca>
NNTP-Posting-Host: pc340.rtp.ericsson.se
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019