Makefile 523 Bytes
REPERTOIRES = Graphique Liste Testliste
COMPILE = $(REPERTOIRES:%=all-%)
DEVERMINE = $(REPERTOIRES:%=debug-%)
NETTOYAGE = $(REPERTOIRES:%=clean-%)
export CFLAGS += -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