Blame view

makefile 333 Bytes
fd1ee590   bjeanlou   Update7 withHash
1
2
  #makefile pour la branche withHash
  #nom de l'executeble
ccb47d03   bjeanlou   menu quit ok
3
  EXEC = dico.exec
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