# 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) $@ $^