Blame view

Makefile 201 Bytes
c3db3af8   gcremasc   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