(Courriels de diversion: <restitues@teintees-peristyles.com> <faitout@garde-cotes-crochetent.com> <disputeront@blasonner-hissais.com> <obstines@commemorerez-abrutissions.com> <discuterent@tantieme-remilitariser.com> <decapitez@abat-degrisaient.com> <epanouissiez@vilipenderont-releguerent.com> <parades@efforciez-deflation.com> <banniraient@agressais-tricoterai.com> <lenifiantes@frigidite-immortel.com> )
Selon Franz-Albert VAN DEN BUSSCHE <fa.vdb@free.fr>: > Le mardi 23 Novembre 2004 01:10, jeanmichel.123@free.fr a écrit : > > Selon Franz-Albert VAN DEN BUSSCHE <fa.vdb@free.fr>:> > > etc... > > Dans mon esprit, LibraLux doit utiliser Lliaphon. Afin de faire un premier pas dans la séparation éxécutable/librairie, en générant à la compilation une libaririe lliaphon et un exécutable LibraLux, j'ai modifié le makefile: il trouve sa place dans le répertoire src/. Je ne suis pas sur qu'il soit correct, mais il a l'air de marcher. Ci-joint un fichier src/Makefile.am Il permet de créer le fichier src/Makefile.in (par un ./configure?). Ensuite le make devrait permettre de créer l'executable src/libralux (comme actuellement) et un src/lib_lliqphon.la Je n'ai pas testé le make install Je n'ai pas vérifié que tous les fichiers compilés dans la librairie sont effectivement à leur place. Jean-Michel
Attachment:
Makefile.am
Description: Binary data
Index: src/Makefile.am
===================================================================
RCS file: /cvsroot/biglux/LibraLux/src/Makefile.am,v
retrieving revision 1.4
diff -u -r1.4 Makefile.am
--- src/Makefile.am 21 Nov 2004 23:26:54 -0000 1.4
+++ src/Makefile.am 24 Nov 2004 00:51:09 -0000
@@ -1,10 +1,12 @@
-bin_PROGRAMS = libralux
-libralux_SOURCES = libralux.c etiquetage.c init.c options.c lexique.c menu.c nett.c phonet.c tagger.c util.c synthese.c formattage.c prosodie.c play_ola.c phonetisation.c etiquetage.h formattage.h init.h lexique.h libralux.h menu.h nett.h options.h phonet.h phonetisation.h play_ola.h prosodie.h structures.h synthese.h tagger.h util.h
+bin_PROGRAMS = libralux
+lib_LTLIBRARIES = lib_lliaphon.la
+libralux_SOURCES = libralux.c lliaphon
+lib_lliaphon_la_SOURCES = etiquetage.c init.c options.c lexique.c menu.c nett.c phonet.c tagger.c util.c synthese.c formattage.c prosodie.c play_ola.c phonetisation.c etiquetage.h formattage.h init.h lexique.h libralux.h menu.h nett.h options.h phonet.h phonetisation.h play_ola.h prosodie.h structures.h synthese.h tagger.h util.h
# set the include path found by configure
INCLUDES = $(all_includes)
# the library search path.
METASOURCES = AUTO
-libralux_LDADD = -lm
+libralux_LDADD = -lm -llib_lliaphon
INCLUDES = -I$(top_srcdir)/. -I$(top_srcdir)/src
Index: src/Makefile.am =================================================================== RCS file: /cvsroot/biglux/LibraLux/src/Makefile.am,v retrieving revision 1.4 diff -r1.4 Makefile.am 1,2c1,4 < bin_PROGRAMS = libralux < libralux_SOURCES = libralux.c etiquetage.c init.c options.c lexique.c menu.c nett.c phonet.c tagger.c util.c synthese.c formattage.c prosodie.c play_ola.c phonetisation.c etiquetage.h formattage.h init.h lexique.h libralux.h menu.h nett.h options.h phonet.h phonetisation.h play_ola.h prosodie.h structures.h synthese.h tagger.h util.h --- > bin_PROGRAMS = libralux > lib_LTLIBRARIES = lib_lliaphon.la > libralux_SOURCES = libralux.c lliaphon > lib_lliaphon_la_SOURCES = etiquetage.c init.c options.c lexique.c menu.c nett.c phonet.c tagger.c util.c synthese.c formattage.c prosodie.c play_ola.c phonetisation.c etiquetage.h formattage.h init.h lexique.h libralux.h menu.h nett.h options.h phonet.h phonetisation.h play_ola.h prosodie.h structures.h synthese.h tagger.h util.h 8c10 < libralux_LDADD = -lm --- > libralux_LDADD = -lm -llib_lliaphon