Avant de rajouter les protos faites un diff avec les sources "officielles" LOGGEZ VOUS SUR UN LINUX (morton, silver, bechet ... JAMAIS waller) diff -r -b -B /users/cao7/czo/dev/distrib3.2b/alliance/sources/mbk ~mbk/labo/sce ensuite pour generer les protos ~czo/etc/shell/getproto prototypes getproto ecris sur stdout et ne vous fera jamais de mal. Ensuite vous pouvez modifier automatiquement les .h avec ~czo/etc/shell/myprotoize encore mieux utilisez ce makefile (a placer un rep au dessus des sources que vous aurez *RECOPIE*) et faite : make chk_proto make protoize # pour tous les sous-rep ALL_DIRS = $(shell find * -name "sce" -maxdepth 1 -type d) all : @for FILE in $(ALL_DIRS) ;\ do $(MAKE) -C $$FILE ;\ if [ $$? -ne 0 ] ;\ then exit 1 ;\ fi ;\ done tag : @for FILE in $(ALL_DIRS) ;\ do ( \ cd $$FILE ;\ ctags -W *.c *.h; etags *.c *.h ;\ ) ;\ if [ $$? -ne 0 ] ;\ then exit 1 ;\ fi ;\ done chk_proto : @for FILE in $(ALL_DIRS) ;\ do ( cd $$FILE ;\ ( getproto *.c prototypes ) 2&1 \ | grep "^#" | sort | uniq ) ;\ if [ $$? -ne 0 ] ;\ then exit 1 ;\ fi ;\ done protoize : @for FILE in $(ALL_DIRS) ;\ do ( echo "#################### $$FILE" ;\ cd $$FILE ;\ myprotoize ; exit 0 ) ;\ done % : @for FILE in $(ALL_DIRS) ;\ do $(MAKE) -C $$FILE $@ ;\ if [ $$? -ne 0 ] ;\ then exit 1 ;\ fi ;\ done .PHONY : list_files list_files : echo $(ALL_DIRS) #end of Makefile -- Sincerely, Olivier. ==================================================================== Olivier SIROL Alliance Team ASIM/LIP6/UPMC Coul. 55-65, 2e etg, Bur. 213 75252 Paris Cedex 05 mailto:Olivier.Sirol@lip6.fr Tel: (33/0) 1.44.27.74.78 http://asim.lip6.fr/~czo/ Fax: (33/0) 1.44.27.72.80