Makefile
536 Bytes
REPERTOIRES = Graphique Liste Testliste Centipede
COMPILE = $(REPERTOIRES:%=all-%)
DEVERMINE = $(REPERTOIRES:%=debug-%)
NETTOYAGE = $(REPERTOIRES:%=clean-%)
export CFLAGS += -g -Wall
all: $(COMPILE)
$(COMPILE):
$(MAKE) -C $(@:all-%=%)
debug: $(DEVERMINE)
$(DEVERMINE): CFLAGS += -g -DDEVERMINE
$(DEVERMINE):
$(MAKE) -C $(@:debug-%=%)
clean: $(NETTOYAGE)
$(NETTOYAGE):
$(MAKE) -C $(@:clean-%=%) clean
all-Main: all-Bibliotheque
debug-Main: debug-Bibliotheque
.PHONY: $(COMPILE) $(DEVERMINE) $(NETTOYAGE)
.PHONY: all debug clean