Bonjour tout le monde
ma question est simple. quand je recopie le makefile du tuto:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
all: hello
hello: hello.o main.o
        gcc -o hello hello.o main.o
 
hello.o: hello.c
        gcc -o hello.o -c hello.c -Wall -ansi
 
main.o: main.c hello.h
        gcc -o main.o -c main.c -Wall -ansi
 
clean:
        rm -rf *.o
 
mrproper: clean
        rm -rf hello
Pour après la compilation reussie, j'ai toujours dans mon repertoire les fichiers .o ? alors que je croyais que la regle clean était faite mais elle ne l'est pas. pourquoi ?
merci de votre éclairage
++