Blame view

makefile 332 Bytes
fd1ee590   bjeanlou   Update7 withHash
1
2
  #makefile pour la branche withHash
  #nom de l'executeble
8c671959   bjeanlou   No more seg fault
3
  EXEC = dico.run
fd1ee590   bjeanlou   Update7 withHash
4
5
6
  #nom du compilateur
  CC = gcc
  #warnings utilisés
8c671959   bjeanlou   No more seg fault
7
  WARN = -W -Wall -Wextra -g
fd1ee590   bjeanlou   Update7 withHash
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  #librairies
  
  #sources
  SRC =$(wildcard *.c)
  OBJ =$(subst .c,.o,$(SRC))
  
  #compilations
  $(EXEC):*.o
  	$(CC) $^ -o $@
  main.o:main.c
  	$(CC) $(WARN) -c $^
  
  %.o:%.c %.h
  	$(CC) $(WARN) -c $*.c