Hi thanks for the help. Unfortunately I am gettign the same exact error I was before: Missing separator except this time it is on the $(CC) -o ... Line (in my file it's line 21).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rafal Kamraj Sent: Tuesday, November 09, 2004 9:32 AM To: [EMAIL PROTECTED] Subject: Re: [newbie] Help with a makefile Manaxus wrote: > Sorry, I forgot I recently upgraded to 10.0 CE... J > > > > ---------------------------------------------------------------------- > -- > > *From:* [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] *On Behalf Of *Manaxus > *Sent:* Monday, November 08, 2004 9:06 PM > *To:* [EMAIL PROTECTED] > *Subject:* [newbie] Help with a makefile > > > > Hello I am running Mandrake 9.1 and I am trying to run a makefile. > > > > Here is the text of the file named Makefile1: > > > > # adding macros > > all: myapp > > > > # determine the compiler > > CC=gcc > > > > #include directories > > INCLUDE=. > > > > #Debug build options > > CFLAGS=-g -Wall -ansi > > > > $(CC) -I$(INCLUDE) $(CFLAGS) -c main.c > > > > > > <eof> > > > > Now the error I get when I execute the command: make -f Makefile1 > > is Makefile1:16: *** missing separator. Stop. > > > > If I expand the macros in the makefile I get the same error. If I > execute the line by itself on the command line everything works as > expected. I am at a loss as to why it is failing the way it is. > > > > Can anyone help me out? > > > > Thanks, > > -jdix > I rewrote you makefile a bit, sorry i don't feel competent to fully explain it to you, but there are lot of html pages about "make" command so try google. #adding macros #compiler CC=gcc INCLUDE= EXEC=myProggy #here comes files to compile SRC_FILES = main.c OBJ_FILES = $(SRC_FILES:.c=.o) #debug CFLAGS=-g -Wall -ansi #link'em $(EXEC): $(OBJ_FILES) $(CC) -o $(EXEC) $(OBJ_FILES) #compile'm %.o : %.c $(CC) -c $(CFLAGS) $(INCLUDE) $< -o $@ #end greets Rafał Kamraj
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________