Commit bd86a4da9a827437aa50614712f4f494f0212e72

Authored by hraouak
1 parent 1a0b6cae

update

Showing 1 changed file with 7 additions and 3 deletions   Show diff stats
Makefile
  1 +EXEC=executable
1 2  
2   -all: executable
  3 +all: $(EXEC)
3 4  
4   -executable: projet.o
5   - gcc -o executable projet.o -g
  5 +executable: projet.o main.o
  6 + gcc -o executable projet.o main.o -g
6 7  
7 8 projet.o: projet.c
8 9 gcc -c projet.c
  10 +
  11 +main.o: main.c projet.h
  12 + gcc -c main.c
9 13  
10 14 clean:
11 15 rm -rf *.o
... ...