Blame view

Makefile 201 Bytes
974b1ae4   tvolleri   ajout des fichier...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  EXEC = main
  CC = gcc
  SRC = $(wildcard *.c)
  OBJ = $(SRC:.c = .o)
  CFLAG =  -g -Wall -Wextra -O0
  
  all: $(EXEC)
  
  %.o : %.c
  	$(CC) $(CFLAG) -o $@ -c $<
  
  $(EXEC) : $(OBJ)
  	$(CC) -o $@ $^
  
  clean:
  	rm -rf *.o