Le jeu 21/10/2004 à 01:05, Isaac Clerencia a écrit : > On Wednesday 20 October 2004 21:43, Unknown wrote: > > Hi! > > In the case you didn't noticed, the v05 branch of wormux now uses > > autotools to be built, thanks to Isaac Clerencia's contribution. > I'm still here :P so if you find any bug you can't solve in the autotools > scripts, just let me know :) > > > Another thing when adding new files! Upload to cvs new versions of > > Makefile.am
I updated Makefile.am (added tile.cpp) > > and Makefile.in after you have run the autogen.sh script. > Some people think it's better to keep the CVS free of "auto-generated" files > like Makefile.in (and other thing it's worse) :P I think so. Same thing with configure script ! Can I remove all .in and configure script from CVS ? They are autogenerated ! --- Isaac : Can you help me to modify Makefiles to have a better output. I prefer "Compile <xxx>" instead of ten lines of arguments ? We also have to remove some tests in configure because we don't use. Example of output : ********** if g++ -DPACKAGE_NAME=\"Wormux\" -DPACKAGE_TARNAME=\"wormux\" -DPACKAGE_VERSION= \"0.5-Beta1\" -DPACKAGE_STRING=\"Wormux\ 0.5-Beta1\" -DPACKAGE_BUGREPORT=\"wormu [EMAIL PROTECTED]" -DPACKAGE=\"wormux\" -DVERSION=\"0.5-Beta1\" -DSTDC_HEADERS=1 -D HAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAV E_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNI STD_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -D HAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DINTDIV0_RAISES_SIGFPE=1 -DHAVE_INTTYPES_H_WIT H_UINTMAX=1 -DHAVE_STDINT_H_WITH_UINTMAX=1 -DHAVE_UNSIGNED_LONG_LONG=1 -DHAVE_UI NTMAX_T=1 -DHAVE_INTTYPES_H=1 -DHAVE_ARGZ_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H= 1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHA VE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_FEOF_UNLOCKED=1 -DHA VE_FGETS_UNLOCKED=1 -DHAVE_GETC_UNLOCKED=1 -DHAVE_GETCWD=1 -DHAVE_GETEGID=1 -DHA VE_GETEUID=1 -DHAVE_GETGID=1 -DHAVE_GETUID=1 -DHAVE_MEMPCPY=1 -DHAVE_MUNMAP=1 -D HAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_STPCPY=1 -DHAVE_STRCASEC MP=1 -DHAVE_STRDUP=1 -DHAVE_STRTOUL=1 -DHAVE_TSEARCH=1 -DHAVE___ARGZ_COUNT=1 -DH AVE___ARGZ_STRINGIFY=1 -DHAVE___ARGZ_NEXT=1 -DHAVE___FSETLOCKING=1 -DHAVE_ICONV= 1 -DICONV_CONST= -DHAVE_LANGINFO_CODESET=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 - DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DHAVE_LIBX11= -DHAVE_DIRENT_H=1 -DSTDC_HEADE RS=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DLST AT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_STRFTIME=1 -DHAVE_SOCKET=1 -DHAVE_STRTOUL=1 -I. -I. -I/usr/X11R6/include -I/usr/include/ClanLib-0.7 -I/usr/include/lib xml++-1.0 -I/usr/lib/libxml++-1.0/include -I/usr/include/libxml2 -DINSTALL_DAT ADIR=\"/usr/local/share/wormux/\" -DINSTALL_LOCALEDIR=\"/usr/local/share/locale/ \" -I../intl -I../intl -DDEBUG -ggdb3 -MT game_loop.o -MD -MP -MF ".deps/game_lo op.Tpo" -c -o game_loop.o `test -f 'game/game_loop.cpp' || echo './'`game/game_l oop.cpp; \ then mv -f ".deps/game_loop.Tpo" ".deps/game_loop.Po"; else rm -f ".deps/game_lo op.Tpo"; exit 1; fi *********** Example : we don't need -DENABLE_NLS or -DHAVE__BOOL=1 or -DHAVE_MMAP=1 ! Or are they needed by configure to run their tests ? Another TODO for autotools : - Store .o files in hidden directory and each subdir should have it's (hidden .o files) directory. Now all .o are stored in src/. - Make "--enable-static" works ... Bye, Haypo