Commit b1d3cf1360a36182bd23e42f3e6fb91661e0800a

Authored by hraouak
1 parent 24684ce8

update

Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
Makefile
  1 +CC=gcc
1 2 EXEC=executable
2 3  
3 4 all: $(EXEC)
4 5  
5 6 executable: projet.o main.o
6   - gcc -o executable projet.o main.o -g
  7 + $(CC) -o executable projet.o main.o -g
7 8  
8 9 projet.o: projet.c
9   - gcc -c projet.c
  10 + $(CC) -c projet.c
10 11  
11 12 main.o: main.c projet.h
12   - gcc -c main.c
  13 + $(CC) -c main.c
13 14  
14 15 clean:
15 16 rm -rf *.o
16 17  
17 18 mrproper: clean
18 19 - rm -rf $(EXEC)
  20 + rm -rf $(EXEC)
19 21 \ No newline at end of file
... ...