Blame view

makefile 402 Bytes
8959b9d7   RABIA   "premiere livraison"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  # Makefile for the graphical library (libgraph.a)
  
  # Compiler and archiver
  CC = gcc
  AR = ar
  CFLAGS = -Wall -g
  ARFLAGS = rs
  
  # Source files and objects
  SOURCES = $(wildcard *.c)
  OBJETS = $(SOURCES:.c=.o)
  CIBLE = libgraph.a
  
  # Main target
  .PHONY: all
  all: $(CIBLE)
  
  # Clean rule
  .PHONY: clean
  clean:
  	rm -f core *.o $(CIBLE)
  
  # Dependencies for the library
  $(CIBLE): $(OBJETS)
  	$(AR) $(ARFLAGS) $@ $^