# # Makefile pour le projet filtrage réseau # # # Constantes pour la compilation des programmes # export CC = gcc export LD = gcc export CLIB = ar cq export CFLAGS = -Wall export CDEBUG = -g -DDEBUG # # Constantes liees au projet # DIRS=Network Threads # # La cible generale # all: $(patsubst %, _dir_%, $(DIRS)) $(patsubst %,_dir_%,$(DIRS)): cd $(patsubst _dir_%,%,$@) && make # # La cible de nettoyage # clean: $(patsubst %, _clean_%, $(DIRS)) $(patsubst %,_clean_%,$(DIRS)): cd $(patsubst _clean_%,%,$@) && make clean