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
____________________________________________________

Reply via email to