Erreur de makefile -> séparateur manquant

christouff Messages postés 78 Statut Membre -  
 bobby -
Bonjour,
Je programme sous C
Dans mon makefile y'a une erreur mais je ne la trouve pas

please help me

voici le code entier du makefile

CC=gcc

CFLAGS= -I../lib -I/usr/local/X11R5/include -I/usr/include -I/usr/local/include

LFLAGS= -L/usr/lib -L/usr/local/lib

LLIBS = -lm -lc

all: \
readFrame
readFrame_pack
readFrame_burst
.c.o:
$(CC) -c $(CFLAGS) $*.c

readFrame:readFrame.o
$(CC) -o readFrame readFrame.o $(LFLAGS) $(LLIBS)
readFrame.o : constant_fpga.h

readFrame_pack:readFrame_pack.o
$(CC) -o readFrame_pack readFrame_pack.o $(LFLAGS) $(LLIBS)
readFrame_pack.o : constant_fpga.h

readFrame_burst:readFrame_burst.o
$(CC) -o readFrame_burst readFrame_burst.o $(LFLAGS) $(LLIBS)
readFrame_burst.o : constant_fpga.h

clean:
rm -f *.o rm -f readFrame
rm -f *.o rm -f readFrame_pack
rm -f *.o rm -f readFrame_burst

1 réponse

bobby
 
(sorry for the up)

Réponse de ce sujet orphelin:
il manque les tabulations aux bons endroits

explication:
dans un makefile il faut suivre la syntaxe suivante:

<etiquette> : <fichiers concernés>
[--TAB--]commande

exemple:

clean :
[TABULATION]rm *.o
0