# Makefile pour UE INF15 "Reseau et Communication" # # 29/05/2011 - Edouard.Thiel@lif.univ-mrs.fr SHELL = /bin/bash CC = gcc CFLAGS = -Wall -W -ansi -pedantic LIBS = LEX = flex CFLAGS_LEX = -D_GNU_SOURCE LIBS_LEX = -lfl # Decommenter au fur et a mesure des seances. # ATTENTION, il ne doit pas y avoir de commentaires en plein milieu !! EXECS = \ # td01-primeurt tp01-rebourfils \ # td02-fintub td02-heritub td02-redirtub tp02-redir2tub \ # td03-scrutatub td03-scrutimeout EXECSUTIL = \ # td01-sigaz tp01-triosig \ # tp02-debitub \ # td03-scrutsig tp03-debitntub tp03-tradu2tub \ # td04-mEtMme-cli td04-mEtMme-ser \ # td05-date-ser td05-date-cli \ # tp05-nhello-ser tp05-nhello-cli tp05-nhello-ser2 \ # td06-pair-cli td06-pair-ser \ # tp06-scrutpair-cli tp06-scrutpair-ser \ # td07-daytime td07-defrag tp07-aspiweb \ # td08-serweb1 tp08-serweb2 EXECSTIMER = \ # td09-multime tp09-serweb3 tp09-serweb4 \ # td10-chat-ser1 td10-chat-cli1 EXECSLEX = \ # td10-aspiweb2 .SUFFIXES: .lex .yy.c .c.o : $(CC) -c $(CFLAGS) $*.c .lex.yy.c : $(LEX) $(CFLAGS_LEX) -o$*.yy.c $*.lex help :: @echo "Options du make : help all clean distclean" all :: $(EXECS) $(EXECSUTIL) $(EXECSTIMER) $(EXECSLEX) $(EXECS) : %: %.o $(CC) -o $@ $@.o $(LIBS) $(EXECSUTIL) : %: %.o bor-util.o $(CC) -o $@ $@.o bor-util.o $(LIBS) $(EXECSTIMER) : %: %.o bor-util.o bor-timer.o $(CC) -o $@ $@.o bor-util.o bor-timer.o $(LIBS) $(EXECSLEX) : %: %.yy.o bor-util.o $(CC) -o $@ $@.yy.o bor-util.o $(LIBS_LEX) $(LIBS) clean :: \rm -f *.o core distclean :: clean \rm -f *% $(EXECS) $(EXECSUTIL) $(EXECSTIMER) $(EXECSLEX)