diff --git a/.gitignore b/.gitignore index cff00806..6d7b48be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +cvsCommit.txt +gitCommit.txt Linux.*/ Darwin/ Solaris/ diff --git a/alliance/src/abe/src/Makefile.am b/alliance/src/abe/src/Makefile.am index cf06e756..8b296387 100644 --- a/alliance/src/abe/src/Makefile.am +++ b/alliance/src/abe/src/Makefile.am @@ -1,8 +1,7 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/abl/src -lib_LTLIBRARIES = libAbe.la +lib_LTLIBRARIES = libAbe.la include_HEADERS = abe.h -libAbe_la_SOURCES = \ -abe.h beh_del.c beh_error.c beh_getgenva.c beh_rmv.c beh_view.c \ -beh_add.c beh_dict.c beh_fre.c beh_message.c beh_toolbug.c - -libAbe_la_LDFLAGS = -version-info @ABE_DLL_VERSION@ +libAbe_la_SOURCES = abe.h beh_del.c beh_error.c beh_getgenva.c beh_rmv.c beh_view.c \ + beh_add.c beh_dict.c beh_fre.c beh_message.c beh_toolbug.c +libAbe_la_LDFLAGS = -version-info @ABE_DLL_VERSION@ +libAbe_la_LIBADD = -lAbl -lAut -lMut diff --git a/alliance/src/abl/src/Makefile.am b/alliance/src/abl/src/Makefile.am index f409d2ab..bae65f36 100644 --- a/alliance/src/abl/src/Makefile.am +++ b/alliance/src/abl/src/Makefile.am @@ -1,16 +1,15 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src lib_LTLIBRARIES = libAbl.la include_HEADERS = abl.h -libAbl_la_SOURCES = \ -abldel.h ablflat.h abloptim.h ablunflat.h \ -abladd.c abldev.c ablfree.c ablpolar.c ablvhdl.c \ -abladd.h abldev.h ablfree.h ablpolar.h ablvhdl.h \ -ablcreate.c abldup.c ablget.c ablsimp.c ablview.c \ -ablcreate.h abldup.h ablget.h ablsimp.h ablview.h \ -ablctlnorm.c ablenv.c ablis.c ablstr.c \ -ablctlnorm.h ablenv.h ablis.h ablstr.h \ -ablctlsimp.c ablerror.c ablmap.c ablsubst.c \ -ablctlsimp.h ablerror.h ablmap.h ablsubst.h \ -abldel.c ablflat.c abloptim.c ablunflat.c - -libAbl_la_LDFLAGS = -version-info @ABL_DLL_VERSION@ +libAbl_la_SOURCES = abldel.h ablflat.h abloptim.h ablunflat.h \ + abladd.c abldev.c ablfree.c ablpolar.c ablvhdl.c \ + abladd.h abldev.h ablfree.h ablpolar.h ablvhdl.h \ + ablcreate.c abldup.c ablget.c ablsimp.c ablview.c \ + ablcreate.h abldup.h ablget.h ablsimp.h ablview.h \ + ablctlnorm.c ablenv.c ablis.c ablstr.c \ + ablctlnorm.h ablenv.h ablis.h ablstr.h \ + ablctlsimp.c ablerror.c ablmap.c ablsubst.c \ + ablctlsimp.h ablerror.h ablmap.h ablsubst.h \ + abldel.c ablflat.c abloptim.c ablunflat.c +libAbl_la_LDFLAGS = -version-info @ABL_DLL_VERSION@ +libAbl_la_LIBADD = -lAut -lMut diff --git a/alliance/src/abt/src/Makefile.am b/alliance/src/abt/src/Makefile.am index 0e0330e6..28da65dd 100644 --- a/alliance/src/abt/src/Makefile.am +++ b/alliance/src/abt/src/Makefile.am @@ -1,10 +1,12 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/abl/src -I$(top_srcdir)/bdd/src \ --I$(top_srcdir)/abe/src +AM_CFLAGS = -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/abl/src \ + -I$(top_srcdir)/bdd/src \ + -I$(top_srcdir)/abe/src lib_LTLIBRARIES = libAbt.la include_HEADERS = abt.h -libAbt_la_SOURCES = \ -abt.h bhl_depend.c bhl_freabl.c bhl_makgex.c \ -bhl_delaux.c bhl_error.c bhl_makbdd.c bhl_orderbdd.c \ -bhl_delaux.h bhl_error.h bhl_makbdd.h bhl_orderbdd.h - -libAbt_la_LDFLAGS = -version-info @ABT_DLL_VERSION@ +libAbt_la_SOURCES = abt.h bhl_depend.c bhl_freabl.c bhl_makgex.c \ + bhl_delaux.c bhl_error.c bhl_makbdd.c bhl_orderbdd.c \ + bhl_delaux.h bhl_error.h bhl_makbdd.h bhl_orderbdd.h +libAbt_la_LDFLAGS = -version-info @ABT_DLL_VERSION@ +libAbt_la_LIBADD = -lBdd -lAbe -lAbl -lAut -lMut diff --git a/alliance/src/abv/src/Makefile.am b/alliance/src/abv/src/Makefile.am index 61b2fab2..73e5fdbe 100644 --- a/alliance/src/abv/src/Makefile.am +++ b/alliance/src/abv/src/Makefile.am @@ -1,13 +1,19 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/abl/src -I$(top_srcdir)/bdd/src \ --I$(top_srcdir)/abe/src +AM_CFLAGS = -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/abl/src \ + -I$(top_srcdir)/bdd/src \ + -I$(top_srcdir)/abe/src lib_LTLIBRARIES = libAbv.la include_HEADERS = abv.h libAbv_la_SOURCES = bvl_bcomp_y.y bvl_bcomp_l.l \ -abv.h bvl_bspec.c bvl_drive.c bvl_parse.h bvl_util.h \ -bvl_bedef.h bvl_bspec.h bvl_drive.h bvl_utdef.h bvl_utype.h \ -bvl_blex.h bvl_byacc.h bvl_parse.c bvl_util.c + abv.h bvl_bspec.c bvl_drive.c bvl_parse.h bvl_util.h \ + bvl_bedef.h bvl_bspec.h bvl_drive.h bvl_utdef.h bvl_utype.h \ + bvl_blex.h bvl_byacc.h bvl_parse.c bvl_util.c +libAbv_la_LIBADD = -lAbe -lBdd -lMut + CLEANFILES = bvl_bcomp_y.c bvl_bcomp_y.h bvl_bcomp_l.c + bvl_bcomp_y.c bvl_bcomp_y.h : $(srcdir)/bvl_bcomp_y.y $(YACC) -d $(YFLAGS) $(srcdir)/bvl_bcomp_y.y && sed -e "s/yy/bvl_y_/g" -e "s/YY/BVL_Y_/g" y.tab.c > bvl_bcomp_y.c && sed -e "s/yy/bvl_y_/g" -e "s/YY/BVL_Y_/g" y.tab.h > bvl_bcomp_y.h diff --git a/alliance/src/asimut/src/Makefile.am b/alliance/src/asimut/src/Makefile.am index 808219c9..58babbb6 100644 --- a/alliance/src/asimut/src/Makefile.am +++ b/alliance/src/asimut/src/Makefile.am @@ -1,59 +1,38 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/log/src -I$(top_srcdir)/beh/src -I$(top_srcdir)/pat/src \ --I$(top_srcdir)/bhl/src -I$(top_srcdir)/bvl/src -I$(top_srcdir)/ppt/src -I$(top_srcdir)/mlu/src +AM_CFLAGS = -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/log/src \ + -I$(top_srcdir)/beh/src \ + -I$(top_srcdir)/pat/src \ + -I$(top_srcdir)/bhl/src \ + -I$(top_srcdir)/bvl/src \ + -I$(top_srcdir)/ppt/src \ + -I$(top_srcdir)/mlu/src -lib_LTLIBRARIES = libCst.la libSch.la -include_HEADERS = cst.h sch.h +lib_LTLIBRARIES = libSch.la +include_HEADERS = sch.h -libCst_la_SOURCES = \ -cst_AddSetElt.c cst_error.c cst_globals.c \ -cst_CrtCompSet.c cst_GetFirstElt.c cst.h \ -cst_CrtInterSet.c cst_GetLastElt.c cst_IsInSetElt.c \ -cst_CrtUnionSet.c cst_GetNextElt.c cst_RemSetElt.c \ -cst_DisjunctSet.c cst_GetPrevElt.c cst_SetCmp.c +libSch_la_SOURCES = sch_addshent.c sch_CrtSch.c sch_GetCTim.c sch.h sch_rmventry.c \ + sch_addshtra.c sch_debug.c sch_GetCTra.c sch_hash.c sch_SetCTim.c \ + sch_addshwav.c sch_debug.h sch_GetNTim.c sch_insentry.c \ + sch_AddTra.c sch_error.c sch_globals.c sch_inswave.c \ + sch_bug.c sch_Free.c sch_GoNTim.c sch_message.c - -libSch_la_SOURCES = \ -sch_addshent.c sch_CrtSch.c sch_GetCTim.c sch.h sch_rmventry.c \ -sch_addshtra.c sch_debug.c sch_GetCTra.c sch_hash.c sch_SetCTim.c \ -sch_addshwav.c sch_debug.h sch_GetNTim.c sch_insentry.c \ -sch_AddTra.c sch_error.c sch_globals.c sch_inswave.c \ -sch_bug.c sch_Free.c sch_GoNTim.c sch_message.c - -libCst_la_LDFLAGS = -version-info @CST_DLL_VERSION@ libSch_la_LDFLAGS = -version-info @SCH_DLL_VERSION@ +libSch_la_LIBADD = -lMut -bin_PROGRAMS = asimut +bin_PROGRAMS = asimut -asimut_LDADD = \ --lBvl \ --lBhl \ --L. libCst.la libSch.la \ --L$(top_builddir)/mbkvti/src \ --L$(top_builddir)/mbkedif/src \ --L$(top_builddir)/mbkhilo/src \ --L$(top_builddir)/mbkvrlog/src \ --L$(top_builddir)/mbkspice/src \ --L$(top_builddir)/mbkvhdlg/src \ --L$(top_builddir)/mbk/src \ --L$(top_builddir)/mbk/src \ --L$(top_builddir)/bvl/src \ --L$(top_builddir)/bhl/src \ --L$(top_builddir)/beh/src \ --L$(top_builddir)/ppt/src \ --L$(top_builddir)/phl/src \ --L$(top_builddir)/pat/src \ --L$(top_builddir)/log/src \ --L$(top_builddir)/mbk/src \ --L$(top_builddir)/mbkal/src \ --lMlu \ --lMal \ --lMcl -lMel -lMhl -lMgl -lMsl \ - -lMvg -lMlo -lRcn -lBvl -lBhl -lBeh -lPpt -lPhl -lPat -lLog -lMut +asimut_LDADD = -L. libSch.la -lBvl -lBhl \ + -L$(top_builddir)/mbk/src \ + -L$(top_builddir)/bvl/src \ + -L$(top_builddir)/bhl/src \ + -L$(top_builddir)/beh/src \ + -L$(top_builddir)/pat/src \ + -L$(top_builddir)/log/src \ + -lMlu -lRcn -lBvl -lBhl -lBeh -lPat -lLog -lMut -asimut_SOURCES = \ -beh_delay.h c_fsyn_sr1k_56.c vh_debug.c vh_lspec.c vh_util.h vh_init.h \ -beh_setdelay.c c_fsyn_sr4k_10.c vh_debug.h vh_lspec.h vh_xcomm.c \ -c_fsyn_sr1k_10.c c_hada_repondeur.c vh_dtype.h vh_ltype.h vh_xcomm.h \ -c_fsyn_sr1k_1.c c_sr1k_8a.c vh_globals.c vh_simulad.c vh_xspec.c \ -c_fsyn_sr1k_24.c c_sr1k_8b.c vh_globals.h vh_simulad.h vh_xspec.h \ -c_fsyn_sr1k_4.c c_sr8k_8a.c vh_init.c vh_util.c +asimut_SOURCES = beh_delay.h c_fsyn_sr1k_56.c vh_debug.c vh_lspec.c vh_util.h vh_init.h \ + beh_setdelay.c c_fsyn_sr4k_10.c vh_debug.h vh_lspec.h vh_xcomm.c \ + c_fsyn_sr1k_10.c c_hada_repondeur.c vh_dtype.h vh_ltype.h vh_xcomm.h \ + c_fsyn_sr1k_1.c c_sr1k_8a.c vh_globals.c vh_simulad.c vh_xspec.c \ + c_fsyn_sr1k_24.c c_sr1k_8b.c vh_globals.h vh_simulad.h vh_xspec.h \ + c_fsyn_sr1k_4.c c_sr8k_8a.c vh_init.c vh_util.c diff --git a/alliance/src/aut/src/Makefile.am b/alliance/src/aut/src/Makefile.am index 3a9e7b99..d26d76a5 100644 --- a/alliance/src/aut/src/Makefile.am +++ b/alliance/src/aut/src/Makefile.am @@ -9,3 +9,4 @@ autdebug.h autexit.h authash.h autresize.h \ autenv.c autfree.c authash2.c autsort.c libAut_la_LDFLAGS = -version-info @AUT_DLL_VERSION@ +libAut_la_LIBADD = -lMut diff --git a/alliance/src/autostuff b/alliance/src/autostuff index cab1d624..0ba68312 100755 --- a/alliance/src/autostuff +++ b/alliance/src/autostuff @@ -70,9 +70,9 @@ dirs="$newdirs documentation" ## Order directories. -order="mbk mbkal mbkap mbkedif mbkhilo mbkmg mbkspice mbkvhdl mbkvrlog mbkvti \ - mbkvhdlg aut rds rdscif rdsgds elp abl bdd log btr vex ctl ctp abe abt \ - abv fsm fks fvh ftl rtn rtd scl vbh vbl vpn vpd vvh vtl pat ppt phl gcp \ +order="mbk \ + aut rds elp abl bdd log btr vex ctl ctp abe abt \ + abv fsm fks fvh ftl rtn rtd scl vbh vpn pat gcp \ druc beh bhl bvl" ordered_dirs="" for lib in $order; do diff --git a/alliance/src/bdd/src/Makefile.am b/alliance/src/bdd/src/Makefile.am index efb2cad8..8b4df4e6 100644 --- a/alliance/src/bdd/src/Makefile.am +++ b/alliance/src/bdd/src/Makefile.am @@ -1,28 +1,28 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/abl/src -lib_LTLIBRARIES = libBdd.la +lib_LTLIBRARIES = libBdd.la include_HEADERS = bdd.h -libBdd_la_SOURCES = \ -bdd.h bddenv.h bddimply.h bddsimpdc.h \ -bddalloc.c bdderror.c bddlog.c bddsubst.c \ -bddalloc.h bdderror.h bddlog.h bddsubst.h \ -bddapply.c bddexist.c bddmark.c bddsupport.c \ -bddapply.h bddexist.h bddmark.h bddsupport.h \ -bddassoc.c bddexplosion.c bddnode.c bddsweep.c \ -bddassoc.h bddexplosion.h bddnode.h bddsweep.h \ -bddblock.c bddflag.c bddoptimize.c bddsystem.c \ -bddblock.h bddflag.h bddoptimize.h bddsystem.h \ -bddcheck.c bddfraction.c bddreduce.c bddtest.c \ -bddcheck.h bddfraction.h bddreduce.h bddtest.h \ -bddcircuit.c bddfree.c bddref.c bddtransfert.c \ -bddcircuit.h bddfree.h bddref.h bddtransfert.h \ -bddcofactor.c bddgarbage.c bddrelprod.c bdduser.c \ -bddcofactor.h bddgarbage.h bddrelprod.h bdduser.h \ -bddcompose.c bddheath.c bddreorder.c bddvar.c \ -bddcompose.h bddheath.h bddreorder.h bddvar.h \ -bddconvert.c bddhnode.c bddresize.c bddvaraux.c \ -bddconvert.h bddhnode.h bddresize.h bddvaraux.h \ -bdddump.c bddhoper.c bddsatisfy.c \ -bdddump.h bddhoper.h bddsatisfy.h \ -bddenv.c bddimply.c bddsimpdc.c +libBdd_la_SOURCES = bdd.h bddenv.h bddimply.h bddsimpdc.h \ + bddalloc.c bdderror.c bddlog.c bddsubst.c \ + bddalloc.h bdderror.h bddlog.h bddsubst.h \ + bddapply.c bddexist.c bddmark.c bddsupport.c \ + bddapply.h bddexist.h bddmark.h bddsupport.h \ + bddassoc.c bddexplosion.c bddnode.c bddsweep.c \ + bddassoc.h bddexplosion.h bddnode.h bddsweep.h \ + bddblock.c bddflag.c bddoptimize.c bddsystem.c \ + bddblock.h bddflag.h bddoptimize.h bddsystem.h \ + bddcheck.c bddfraction.c bddreduce.c bddtest.c \ + bddcheck.h bddfraction.h bddreduce.h bddtest.h \ + bddcircuit.c bddfree.c bddref.c bddtransfert.c \ + bddcircuit.h bddfree.h bddref.h bddtransfert.h \ + bddcofactor.c bddgarbage.c bddrelprod.c bdduser.c \ + bddcofactor.h bddgarbage.h bddrelprod.h bdduser.h \ + bddcompose.c bddheath.c bddreorder.c bddvar.c \ + bddcompose.h bddheath.h bddreorder.h bddvar.h \ + bddconvert.c bddhnode.c bddresize.c bddvaraux.c \ + bddconvert.h bddhnode.h bddresize.h bddvaraux.h \ + bdddump.c bddhoper.c bddsatisfy.c \ + bdddump.h bddhoper.h bddsatisfy.h \ + bddenv.c bddimply.c bddsimpdc.c -libBdd_la_LDFLAGS = -version-info @BDD_DLL_VERSION@ +libBdd_la_LDFLAGS = -version-info @BDD_DLL_VERSION@ +libBdd_la_LIBADD = -lAbl -lAut diff --git a/alliance/src/beh/src/Makefile.am b/alliance/src/beh/src/Makefile.am index df3d4842..f087c949 100644 --- a/alliance/src/beh/src/Makefile.am +++ b/alliance/src/beh/src/Makefile.am @@ -1,23 +1,28 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/log/src -lib_LTLIBRARIES = libBeh.la -include_HEADERS = beh.h -libBeh_la_SOURCES = \ -beh_addbeaux.c beh_delbebus.c beh_frebeaux.c beh_message.c \ -beh_addbebus.c beh_delbebux.c beh_frebebus.c beh_rmvbeaux.c \ -beh_addbebux.c beh_delbeder.c beh_frebebux.c beh_rmvbebus.c \ -beh_addbeder.c beh_delbefig.c beh_frebeder.c beh_rmvbebux.c \ -beh_addbefig.c beh_delbegen.c beh_frebefig.c beh_rmvbeder.c \ -beh_addbegen.c beh_delbemsg.c beh_frebegen.c beh_rmvbefig.c \ -beh_addbemsg.c beh_delbeout.c beh_frebemsg.c beh_rmvbegen.c \ -beh_addbeout.c beh_delbepor.c beh_frebeout.c beh_rmvbemsg.c \ -beh_addbepor.c beh_delbequad.c beh_frebepor.c beh_rmvbeout.c \ -beh_addbequad.c beh_delbereg.c beh_frebereg.c beh_rmvbepor.c \ -beh_addbereg.c beh_delberin.c beh_freberin.c beh_rmvbereg.c \ -beh_addberin.c beh_delbiabl.c beh_frebiabl.c beh_rmvberin.c \ -beh_addbiabl.c beh_delbinod.c beh_frebinod.c beh_rpldelayed.c \ -beh_addbinod.c beh_dict.c beh_getgenva.c beh_rplstable.c \ -beh_apdbeaux.c beh_error.c beh_getvers.c beh_toolbug.c \ -beh_apdberin.c beh_expdelayed.c beh_globals.c beh_vhdlname.c \ -beh_delbeaux.c beh_expstable.c beh.h beh_vhvector.c +lib_LTLIBRARIES = libBeh.la +include_HEADERS = beh.h cst.h +libBeh_la_SOURCES = beh_addbeaux.c beh_delbebus.c beh_frebeaux.c beh_message.c \ + beh_addbebus.c beh_delbebux.c beh_frebebus.c beh_rmvbeaux.c \ + beh_addbebux.c beh_delbeder.c beh_frebebux.c beh_rmvbebus.c \ + beh_addbeder.c beh_delbefig.c beh_frebeder.c beh_rmvbebux.c \ + beh_addbefig.c beh_delbegen.c beh_frebefig.c beh_rmvbeder.c \ + beh_addbegen.c beh_delbemsg.c beh_frebegen.c beh_rmvbefig.c \ + beh_addbemsg.c beh_delbeout.c beh_frebemsg.c beh_rmvbegen.c \ + beh_addbeout.c beh_delbepor.c beh_frebeout.c beh_rmvbemsg.c \ + beh_addbepor.c beh_delbequad.c beh_frebepor.c beh_rmvbeout.c \ + beh_addbequad.c beh_delbereg.c beh_frebereg.c beh_rmvbepor.c \ + beh_addbereg.c beh_delberin.c beh_freberin.c beh_rmvbereg.c \ + beh_addberin.c beh_delbiabl.c beh_frebiabl.c beh_rmvberin.c \ + beh_addbiabl.c beh_delbinod.c beh_frebinod.c beh_rpldelayed.c \ + beh_addbinod.c beh_dict.c beh_getgenva.c beh_rplstable.c \ + beh_apdbeaux.c beh_error.c beh_getvers.c beh_toolbug.c \ + beh_apdberin.c beh_expdelayed.c beh_globals.c beh_vhdlname.c \ + beh_delbeaux.c beh_expstable.c beh.h beh_vhvector.c \ + cst_AddSetElt.c cst_error.c cst_globals.c \ + cst_CrtCompSet.c cst_GetFirstElt.c cst.h \ + cst_CrtInterSet.c cst_GetLastElt.c cst_IsInSetElt.c \ + cst_CrtUnionSet.c cst_GetNextElt.c cst_RemSetElt.c \ + cst_DisjunctSet.c cst_GetPrevElt.c cst_SetCmp.c -libBeh_la_LDFLAGS = -version-info @BEH_DLL_VERSION@ +libBeh_la_LDFLAGS = -version-info @BEH_DLL_VERSION@ +libBeh_la_LIBADD = -lLog -lAbl -lAut -lMut diff --git a/alliance/src/asimut/src/cst.h b/alliance/src/beh/src/cst.h similarity index 100% rename from alliance/src/asimut/src/cst.h rename to alliance/src/beh/src/cst.h diff --git a/alliance/src/asimut/src/cst_AddSetElt.c b/alliance/src/beh/src/cst_AddSetElt.c similarity index 100% rename from alliance/src/asimut/src/cst_AddSetElt.c rename to alliance/src/beh/src/cst_AddSetElt.c diff --git a/alliance/src/asimut/src/cst_CrtCompSet.c b/alliance/src/beh/src/cst_CrtCompSet.c similarity index 100% rename from alliance/src/asimut/src/cst_CrtCompSet.c rename to alliance/src/beh/src/cst_CrtCompSet.c diff --git a/alliance/src/asimut/src/cst_CrtInterSet.c b/alliance/src/beh/src/cst_CrtInterSet.c similarity index 100% rename from alliance/src/asimut/src/cst_CrtInterSet.c rename to alliance/src/beh/src/cst_CrtInterSet.c diff --git a/alliance/src/asimut/src/cst_CrtUnionSet.c b/alliance/src/beh/src/cst_CrtUnionSet.c similarity index 100% rename from alliance/src/asimut/src/cst_CrtUnionSet.c rename to alliance/src/beh/src/cst_CrtUnionSet.c diff --git a/alliance/src/asimut/src/cst_DisjunctSet.c b/alliance/src/beh/src/cst_DisjunctSet.c similarity index 100% rename from alliance/src/asimut/src/cst_DisjunctSet.c rename to alliance/src/beh/src/cst_DisjunctSet.c diff --git a/alliance/src/asimut/src/cst_GetFirstElt.c b/alliance/src/beh/src/cst_GetFirstElt.c similarity index 100% rename from alliance/src/asimut/src/cst_GetFirstElt.c rename to alliance/src/beh/src/cst_GetFirstElt.c diff --git a/alliance/src/asimut/src/cst_GetLastElt.c b/alliance/src/beh/src/cst_GetLastElt.c similarity index 100% rename from alliance/src/asimut/src/cst_GetLastElt.c rename to alliance/src/beh/src/cst_GetLastElt.c diff --git a/alliance/src/asimut/src/cst_GetNextElt.c b/alliance/src/beh/src/cst_GetNextElt.c similarity index 100% rename from alliance/src/asimut/src/cst_GetNextElt.c rename to alliance/src/beh/src/cst_GetNextElt.c diff --git a/alliance/src/asimut/src/cst_GetPrevElt.c b/alliance/src/beh/src/cst_GetPrevElt.c similarity index 100% rename from alliance/src/asimut/src/cst_GetPrevElt.c rename to alliance/src/beh/src/cst_GetPrevElt.c diff --git a/alliance/src/asimut/src/cst_IsInSetElt.c b/alliance/src/beh/src/cst_IsInSetElt.c similarity index 100% rename from alliance/src/asimut/src/cst_IsInSetElt.c rename to alliance/src/beh/src/cst_IsInSetElt.c diff --git a/alliance/src/asimut/src/cst_RemSetElt.c b/alliance/src/beh/src/cst_RemSetElt.c similarity index 100% rename from alliance/src/asimut/src/cst_RemSetElt.c rename to alliance/src/beh/src/cst_RemSetElt.c diff --git a/alliance/src/asimut/src/cst_SetCmp.c b/alliance/src/beh/src/cst_SetCmp.c similarity index 100% rename from alliance/src/asimut/src/cst_SetCmp.c rename to alliance/src/beh/src/cst_SetCmp.c diff --git a/alliance/src/asimut/src/cst_error.c b/alliance/src/beh/src/cst_error.c similarity index 100% rename from alliance/src/asimut/src/cst_error.c rename to alliance/src/beh/src/cst_error.c diff --git a/alliance/src/asimut/src/cst_globals.c b/alliance/src/beh/src/cst_globals.c similarity index 100% rename from alliance/src/asimut/src/cst_globals.c rename to alliance/src/beh/src/cst_globals.c diff --git a/alliance/src/bhl/src/Makefile.am b/alliance/src/bhl/src/Makefile.am index a0661cce..1d520024 100644 --- a/alliance/src/bhl/src/Makefile.am +++ b/alliance/src/bhl/src/Makefile.am @@ -1,11 +1,10 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/log/src -I$(top_srcdir)/beh/src -lib_LTLIBRARIES = libBhl.la +lib_LTLIBRARIES = libBhl.la include_HEADERS = bhl.h -libBhl_la_SOURCES = \ -beh_chkbefig.c beh_dly2sta.c beh_makbdd.c beh_makvarlist.c \ -beh_clrdepend.c beh_freabl.c beh_makderiv.c beh_namelist.c \ -beh_debug.c beh_gettu.c beh_makgex.c beh_sta2dly.c \ -beh_debug.h beh_indexbdd.c beh_maknode.c beh_unamlist.c \ -beh_depend.c beh_makquad.c bhl.h - -libBhl_la_LDFLAGS = -version-info @BHL_DLL_VERSION@ +libBhl_la_SOURCES = beh_chkbefig.c beh_dly2sta.c beh_makbdd.c beh_makvarlist.c \ + beh_clrdepend.c beh_freabl.c beh_makderiv.c beh_namelist.c \ + beh_debug.c beh_gettu.c beh_makgex.c beh_sta2dly.c \ + beh_debug.h beh_indexbdd.c beh_maknode.c beh_unamlist.c \ + beh_depend.c beh_makquad.c bhl.h +libBhl_la_LDFLAGS = -version-info @BHL_DLL_VERSION@ +libBhl_la_LIBADD = -lBeh -lAut -lMut diff --git a/alliance/src/boog/src/Makefile.am b/alliance/src/boog/src/Makefile.am index 7e8062df..35818838 100644 --- a/alliance/src/boog/src/Makefile.am +++ b/alliance/src/boog/src/Makefile.am @@ -1,58 +1,48 @@ ## Process this file with automake to produce Makefile.in -AM_CFLAGS = -I$(top_srcdir)/abe/src \ --I$(top_srcdir)/abl/src \ --I$(top_srcdir)/abv/src \ --I$(top_srcdir)/bdd/src \ --I$(top_srcdir)/aut/src \ --I$(top_srcdir)/mbk/src \ -@ALLIANCE_CFLAGS@ +AM_CFLAGS = -I$(top_srcdir)/abe/src \ + -I$(top_srcdir)/abl/src \ + -I$(top_srcdir)/abv/src \ + -I$(top_srcdir)/bdd/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/mbk/src \ + @ALLIANCE_CFLAGS@ bin_PROGRAMS = boog -boog_LDADD = @ALLIANCE_LIBS@ \ --L$(builddir)/../../abv/src \ --L$(builddir)/../../abe/src \ --L$(builddir)/../../abt/src \ --L$(builddir)/../../mbk/src \ --L$(builddir)/../../mbkvti/src \ --L$(builddir)/../../mbkal/src \ --L$(builddir)/../../mbkspice/src \ --L$(builddir)/../../mbkhilo/src \ --L$(builddir)/../../mbkedif/src \ --L$(builddir)/../../mbkvhdlg/src \ --L$(builddir)/../../mbkvrlog/src \ --L$(builddir)/../../mbk/src \ --L$(builddir)/../../mbk/src \ --L$(builddir)/../../bdd/src \ --L$(builddir)/../../abl/src \ --L$(builddir)/../../aut/src \ --L$(builddir)/../../mbk/src \ - -lAbv -lAbe -lAbt -lMlu -lMcl -lMal -lMsl -lMhl -lMel -lMvg -lMgl -lRcn -lMlo -lBdd -lAbl -lAut -lMut +boog_LDADD = @ALLIANCE_LIBS@ \ + -L$(builddir)/../../abv/src \ + -L$(builddir)/../../abe/src \ + -L$(builddir)/../../abt/src \ + -L$(builddir)/../../mbk/src \ + -L$(builddir)/../../mbk/src \ + -L$(builddir)/../../bdd/src \ + -L$(builddir)/../../abl/src \ + -L$(builddir)/../../aut/src \ + -lAbv -lAbe -lAbt -lMlu -lRcn -lMlo -lBdd -lAbl -lAut -lMut -boog_SOURCES = \ -bog_lax_param.c bog_map_adapt.h bog_normalize_simplify.h \ -bog_lax_param.h bog_map_befig.c bog_signal_adapt.c \ -bog_lib_cell.c bog_map_befig.h bog_signal_adapt.h \ -bog_lib_cell.h bog_map_delay.c bog_signal_delay.c \ -bog_lib_complete.c bog_map_delay.h bog_signal_delay.h \ -bog_lib_complete.h bog_map_pattern.c bog_signal_nameindex.c \ -bog_lib_format.c bog_map_pattern.h bog_signal_nameindex.h \ -bog_lib_format.h bog_map_prepare.c bog_signal_utils.c \ -bog_lib_matching.c bog_map_prepare.h bog_signal_utils.h \ -bog_lib_matching.h bog_normalize_ARITY.c bog_unflatten_abl.c \ -bog_lib_negativ.c bog_normalize_ARITY.h bog_unflatten_abl.h \ -bog_lib_negativ.h bog_normalize_DAG.c bog_unflatten_area.c \ -bog_lib_permute.c bog_normalize_DAG.h bog_unflatten_area.h \ -bog_lib_permute.h bog_normalize_DC.c bog_unflatten_befig.c \ -bog_lib_reader.c bog_normalize_DC.h bog_unflatten_befig.h \ -bog_lib_reader.h bog_normalize_message.c bog_unflatten_delay.c \ -bog_lib_specifications.c bog_normalize_message.h bog_unflatten_delay.h \ -bog_lib_specifications.h bog_normalize_nameindex.c bog_unflatten_oper.c \ -bog_lib_utils.c bog_normalize_nameindex.h bog_unflatten_oper.h \ -bog_lib_utils.h bog_normalize_power.c bog_unflatten_utils.c \ -bog_main.c bog_normalize_power.h bog_unflatten_utils.h \ -bog_map_abl.c bog_normalize_register.c bog_xsch_driver.c \ -bog_map_abl.h bog_normalize_register.h bog_xsch_driver.h \ -bog_map_adapt.c bog_normalize_simplify.c +boog_SOURCES = bog_lax_param.c bog_map_adapt.h bog_normalize_simplify.h \ + bog_lax_param.h bog_map_befig.c bog_signal_adapt.c \ + bog_lib_cell.c bog_map_befig.h bog_signal_adapt.h \ + bog_lib_cell.h bog_map_delay.c bog_signal_delay.c \ + bog_lib_complete.c bog_map_delay.h bog_signal_delay.h \ + bog_lib_complete.h bog_map_pattern.c bog_signal_nameindex.c \ + bog_lib_format.c bog_map_pattern.h bog_signal_nameindex.h \ + bog_lib_format.h bog_map_prepare.c bog_signal_utils.c \ + bog_lib_matching.c bog_map_prepare.h bog_signal_utils.h \ + bog_lib_matching.h bog_normalize_ARITY.c bog_unflatten_abl.c \ + bog_lib_negativ.c bog_normalize_ARITY.h bog_unflatten_abl.h \ + bog_lib_negativ.h bog_normalize_DAG.c bog_unflatten_area.c \ + bog_lib_permute.c bog_normalize_DAG.h bog_unflatten_area.h \ + bog_lib_permute.h bog_normalize_DC.c bog_unflatten_befig.c \ + bog_lib_reader.c bog_normalize_DC.h bog_unflatten_befig.h \ + bog_lib_reader.h bog_normalize_message.c bog_unflatten_delay.c \ + bog_lib_specifications.c bog_normalize_message.h bog_unflatten_delay.h \ + bog_lib_specifications.h bog_normalize_nameindex.c bog_unflatten_oper.c \ + bog_lib_utils.c bog_normalize_nameindex.h bog_unflatten_oper.h \ + bog_lib_utils.h bog_normalize_power.c bog_unflatten_utils.c \ + bog_main.c bog_normalize_power.h bog_unflatten_utils.h \ + bog_map_abl.c bog_normalize_register.c bog_xsch_driver.c \ + bog_map_abl.h bog_normalize_register.h bog_xsch_driver.h \ + bog_map_adapt.c bog_normalize_simplify.c diff --git a/alliance/src/btr/src/Makefile.am b/alliance/src/btr/src/Makefile.am index 204ad8a8..d9eb2c34 100644 --- a/alliance/src/btr/src/Makefile.am +++ b/alliance/src/btr/src/Makefile.am @@ -1,9 +1,8 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/abl/src -I$(top_srcdir)/bdd/src -lib_LTLIBRARIES = libBtr.la +lib_LTLIBRARIES = libBtr.la include_HEADERS = btr.h -libBtr_la_SOURCES = \ -btr.h btrenv.c btrerror.h btrfunc.c btrresize.h \ -btralloc.c btrenv.h btrfree.c btrfunc.h btrtrans.c \ -btralloc.h btrerror.c btrfree.h btrresize.c btrtrans.h - -libBtr_la_LDFLAGS = -version-info @BTR_DLL_VERSION@ +libBtr_la_SOURCES = btr.h btrenv.c btrerror.h btrfunc.c btrresize.h \ + btralloc.c btrenv.h btrfree.c btrfunc.h btrtrans.c \ + btralloc.h btrerror.c btrfree.h btrresize.c btrtrans.h +libBtr_la_LDFLAGS = -version-info @BTR_DLL_VERSION@ +libBtr_la_LIBADD = -lBdd diff --git a/alliance/src/bvl/src/Makefile.am b/alliance/src/bvl/src/Makefile.am index 3e91d775..5d81aec9 100644 --- a/alliance/src/bvl/src/Makefile.am +++ b/alliance/src/bvl/src/Makefile.am @@ -4,8 +4,8 @@ include_HEADERS = bvl.h libBvl_la_SOURCES = bvl_bcomp_y.y bvl_bcomp_l.l bvl_bcomp_y.h \ bvl_bedef.h bvl_drive.c bvl.h bvl_util.c \ bvl_byacc.h bvl_globals.c bvl_parse.c - libBvl_la_LDFLAGS = -version-info @BVL_DLL_VERSION@ +libBvl_la_LIBADD = -lBhl -lBeh -lMut CLEANFILES = bvl_bcomp_y.c bvl_bcomp_y.h bvl_bcomp_l.c diff --git a/alliance/src/ctl/src/Makefile.am b/alliance/src/ctl/src/Makefile.am index d0d7089e..b4c6000e 100644 --- a/alliance/src/ctl/src/Makefile.am +++ b/alliance/src/ctl/src/Makefile.am @@ -1,9 +1,8 @@ AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/vex/src -lib_LTLIBRARIES = libCtl.la +lib_LTLIBRARIES = libCtl.la include_HEADERS = ctl.h -libCtl_la_SOURCES = \ -ctladd.c ctlalloc.h ctlenv.c ctlerror.h ctl.h ctlview.c \ -ctladd.h ctldel.c ctlenv.h ctlfree.c ctlsearch.c ctlview.h \ -ctlalloc.c ctldel.h ctlerror.c ctlfree.h ctlsearch.h - -libCtl_la_LDFLAGS = -version-info @CTL_DLL_VERSION@ +libCtl_la_SOURCES = ctladd.c ctlalloc.h ctlenv.c ctlerror.h ctl.h ctlview.c \ + ctladd.h ctldel.c ctlenv.h ctlfree.c ctlsearch.c ctlview.h \ + ctlalloc.c ctldel.h ctlerror.c ctlfree.h ctlsearch.h +libCtl_la_LDFLAGS = -version-info @CTL_DLL_VERSION@ +libCtl_la_LIBADD = -lVex -lAut -lMut diff --git a/alliance/src/ctp/src/Makefile.am b/alliance/src/ctp/src/Makefile.am index 68a8011e..165e5821 100644 --- a/alliance/src/ctp/src/Makefile.am +++ b/alliance/src/ctp/src/Makefile.am @@ -1,23 +1,24 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/vex/src -I$(top_srcdir)/ctl/src -lib_LTLIBRARIES = libCtp.la +lib_LTLIBRARIES = libCtp.la include_HEADERS = ctp.h -libCtp_la_SOURCES = ctp_y.y ctp_l.l ctp.h \ -ctp_bedef.h ctp_bspec.c ctp_byacc.h ctp_parse.c ctp_util.h \ -ctp_blex.h ctp_bspec.h ctp_util.c ctp_utype.h - -libCtp_la_LDFLAGS = -version-info @CTP_DLL_VERSION@ +libCtp_la_SOURCES = ctp_y.y ctp_l.l ctp.h \ + ctp_bedef.h ctp_bspec.c ctp_byacc.h ctp_parse.c ctp_util.h \ + ctp_blex.h ctp_bspec.h ctp_util.c ctp_utype.h +libCtp_la_LDFLAGS = -version-info @CTP_DLL_VERSION@ +libCtp_la_LIBADD = -lCtl -lVex -lAut -lMut CLEANFILES = ctp_y.c ctp_y.h ctp_l.c ctp_y.c ctp_y.h : $(srcdir)/ctp_y.y - $(YACC) -d $(YFLAGS) $(srcdir)/ctp_y.y && sed -e "s/yy/ctp_y_/g" -e "s/YY/CTL_Y_/g" y.tab.c > ctp_y.c && sed -e "s/yy/ctp_y_/g" -e "s/YY/CTL_Y_/g" y.tab.h > ctp_y.h + $(YACC) -d $(YFLAGS) $(srcdir)/ctp_y.y && \ + sed -e "s/yy/ctp_y_/g" -e "s/YY/CTL_Y_/g" y.tab.c > ctp_y.c && \ + sed -e "s/yy/ctp_y_/g" -e "s/YY/CTL_Y_/g" y.tab.h > ctp_y.h ctp_l.c : $(srcdir)/ctp_l.l ctp_y.h $(LEX) -t $(srcdir)/ctp_l.l | sed -e "s/yy/ctp_y_/g" -e "s/YY/CTL_Y_/g" > ctp_l.c -EXTRA_PROGRAMS = ctptest +EXTRA_PROGRAMS = ctptest -ctptest_LDADD = -L. -lCtp \ - -lCtl -lVex -lAut -lMut +ctptest_LDADD = -L. -lCtp -lCtl -lVex -lAut -lMut ctptest_SOURCES = main.c diff --git a/alliance/src/dreal/src/Makefile.am b/alliance/src/dreal/src/Makefile.am index cd0fabc4..57868b6f 100644 --- a/alliance/src/dreal/src/Makefile.am +++ b/alliance/src/dreal/src/Makefile.am @@ -1,16 +1,16 @@ ## Process this file with automake to produce Makefile.in bin_PROGRAMS = dreal -AM_CFLAGS = -I$(top_srcdir)/mbk/src \ --I$(top_srcdir)/rds/src \ -@ALLIANCE_CFLAGS@ @X_CFLAGS@ \ - -DDREAL_DEFAULT_TECHNO_NAME=\"etc/cmos.dreal\" \ - -DGMS_FILE_NAME=\".dreal.cfg\" \ - -DDREAL_WINDOW_DX=\"DREAL_WINDOW_DX\" \ - -DDREAL_WINDOW_DY=\"DREAL_WINDOW_DY\" \ - -DDREAL_WINDOW_XMIN=\"DREAL_WINDOW_XMIN\" \ - -DDREAL_WINDOW_YMIN=\"DREAL_WINDOW_YMIN\" \ - -DDREAL_WINDOW_SIDE=\"DREAL_WINDOW_SIDE\" +AM_CFLAGS = -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/rds/src \ + @ALLIANCE_CFLAGS@ @X_CFLAGS@ \ + -DDREAL_DEFAULT_TECHNO_NAME=\"etc/cmos.dreal\" \ + -DGMS_FILE_NAME=\".dreal.cfg\" \ + -DDREAL_WINDOW_DX=\"DREAL_WINDOW_DX\" \ + -DDREAL_WINDOW_DY=\"DREAL_WINDOW_DY\" \ + -DDREAL_WINDOW_XMIN=\"DREAL_WINDOW_XMIN\" \ + -DDREAL_WINDOW_YMIN=\"DREAL_WINDOW_YMIN\" \ + -DDREAL_WINDOW_SIDE=\"DREAL_WINDOW_SIDE\" # ----------------------------------------------------------------------------- @@ -48,14 +48,9 @@ ALL_X_LIBS = $(X_LDFLAGS) $(LIBXM) $(LIBXT) $(LIBXPM) \ dreal_LDADD = @ALLIANCE_LIBS@ $(ALL_X_LIBS) \ --L$(top_builddir)/mbk/src \ --L$(top_builddir)/mbkap/src \ --L$(top_builddir)/mbkmg/src \ --L$(top_builddir)/mbkvti/src \ --L$(top_builddir)/rds/src \ --L$(top_builddir)/rdscif/src \ --L$(top_builddir)/rdsgds/src \ --lRtl -lRgs -lRcf -lRut -lRfm -lRpr -lRds -lMpu -lMap -lMmg -lMcp -lMph -lMut + -L$(top_builddir)/mbk/src \ + -L$(top_builddir)/rds/src \ + -lRds -lMpu -lMph -lMut dreal_SOURCES = \ diff --git a/alliance/src/druc/src/Makefile.am b/alliance/src/druc/src/Makefile.am index 4a56b0a2..3f7e8789 100644 --- a/alliance/src/druc/src/Makefile.am +++ b/alliance/src/druc/src/Makefile.am @@ -23,15 +23,9 @@ bin_PROGRAMS = druc AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/rds/src -druc_LDADD = $(ALLIANCE_LIBS) -L. -lVrd \ --L$(builddir)/../../rds/src -lRtl -lRgs \ --L$(builddir)/../../rdscif/src -lRcf -lRfm -lRpr -lRwi -lRut \ --L$(builddir)/../../rdsgds/src -lRds \ --L$(builddir)/../../mbk/src -lMpu \ --L$(builddir)/../../mbkvti/src -lMcp \ --L$(builddir)/../../mbkap/src -lMap \ --L$(builddir)/../../mbkmg/src -lMmg -lMph \ --lMut +druc_LDADD = $(ALLIANCE_LIBS) -L. libVrd.la \ +-L$(builddir)/../../rds/src -lRds \ +-L$(builddir)/../../mbk/src -lMpu -lMut druc_SOURCES = \ drucbath.c drucbath.h diff --git a/alliance/src/elp/src/Makefile.am b/alliance/src/elp/src/Makefile.am index 645e6e3f..41969abb 100644 --- a/alliance/src/elp/src/Makefile.am +++ b/alliance/src/elp/src/Makefile.am @@ -1,11 +1,11 @@ AM_CFLAGS = -DTECHNOLOGY=\"etc/prol.elp\" -I$(top_srcdir)/mbk/src -lib_LTLIBRARIES = libElp.la +lib_LTLIBRARIES = libElp.la include_HEADERS = elp.h -libElp_la_SOURCES = elp_y.y elp_l.l \ -elp.c elperror.c elp.h +libElp_la_SOURCES = elp_y.y elp_l.l elp.c elperror.c elp.h -libElp_la_LDFLAGS = -version-info @ELP_DLL_VERSION@ +libElp_la_LDFLAGS = -version-info @ELP_DLL_VERSION@ +libElp_la_LIBADD = -lRcn -lMut CLEANFILES = elp_y.c elp_y.h elp_l.c diff --git a/alliance/src/fks/src/Makefile.am b/alliance/src/fks/src/Makefile.am index 25ada2d9..49f46bab 100644 --- a/alliance/src/fks/src/Makefile.am +++ b/alliance/src/fks/src/Makefile.am @@ -1,8 +1,10 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/abl/src -I$(top_srcdir)/bdd/src \ --I$(top_srcdir)/fsm/src -lib_LTLIBRARIES = libFks.la +AM_CFLAGS = -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/abl/src \ + -I$(top_srcdir)/bdd/src \ + -I$(top_srcdir)/fsm/src +lib_LTLIBRARIES = libFks.la include_HEADERS = fks.h -libFks_la_SOURCES = \ -fks.h fksdrive.c fksdrive.h fkserror.c fkserror.h fksparse.c fksparse.h - -libFks_la_LDFLAGS = -version-info @FKS_DLL_VERSION@ +libFks_la_SOURCES = fks.h fksdrive.c fksdrive.h fkserror.c fkserror.h fksparse.c fksparse.h +libFks_la_LDFLAGS = -version-info @FKS_DLL_VERSION@ +libFks_la_LIBADD = -lFsm -lAbl -lBdd -lAut -lMut diff --git a/alliance/src/flatbeh/src/Makefile.am b/alliance/src/flatbeh/src/Makefile.am index 877344c6..a592cc38 100644 --- a/alliance/src/flatbeh/src/Makefile.am +++ b/alliance/src/flatbeh/src/Makefile.am @@ -15,17 +15,10 @@ flatbeh_LDADD = @ALLIANCE_LIBS@ \ -L$(top_srcdir)/abe/src \ -L$(top_srcdir)/abt/src \ -L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkvti/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkvhdl/src \ --L$(top_srcdir)/mbkvrlog/src \ -L$(top_srcdir)/bdd/src \ -L$(top_srcdir)/abl/src \ -L$(top_srcdir)/aut/src \ - -lAbv -lAbe -lAbt -lMlu -lMcl -lMal -lMsl -lMhl -lMel -lMvl -lMgl -lRcn -lMlo -lBdd -lAbl -lAut -lMut + -lAbv -lAbe -lAbt -lMlu -lRcn -lMlo -lBdd -lAbl -lAut -lMut flatbeh_SOURCES = abstract.c abstract.h utils.c utils.h main.c diff --git a/alliance/src/flatlo/src/Makefile.am b/alliance/src/flatlo/src/Makefile.am index 73cd79b3..76da0224 100644 --- a/alliance/src/flatlo/src/Makefile.am +++ b/alliance/src/flatlo/src/Makefile.am @@ -12,24 +12,10 @@ flatlo_LDADD = \ -L$(top_builddir)/aut/src \ -L$(top_builddir)/bdd/src \ -L$(top_builddir)/mbk/src \ --L$(top_builddir)/mbkal/src \ --L$(top_builddir)/mbkedif/src \ --L$(top_builddir)/mbkhilo/src \ --L$(top_builddir)/mbkspice/src \ --L$(top_builddir)/mbkvhdlg/src \ --L$(top_builddir)/mbkvrlog/src \ --L$(top_builddir)/mbkvti/src \ -lAbv \ -lAbe \ -lAbt \ -lMlu \ - -lMcl \ - -lMal \ - -lMsl \ - -lMhl \ - -lMel \ - -lMvg \ - -lMgl \ -lRcn \ -lMlo \ -lBdd \ diff --git a/alliance/src/flatph/src/Makefile.am b/alliance/src/flatph/src/Makefile.am index 4d591bfc..172f06bf 100644 --- a/alliance/src/flatph/src/Makefile.am +++ b/alliance/src/flatph/src/Makefile.am @@ -6,23 +6,7 @@ bin_PROGRAMS = flatph flatph_LDADD = @ALLIANCE_LIBS@ \ -L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdl/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ -lMpu -lMlu \ - -lMcl -lMcp \ - -lMal -lMap \ - -lMsl \ - -lMel -lMgl \ - -lMhl \ - -lMvl \ - -lMmg \ -lMlo \ -lMph -lMut \ -lRcn diff --git a/alliance/src/fsm/src/Makefile.am b/alliance/src/fsm/src/Makefile.am index b50ab5ae..47f639a7 100644 --- a/alliance/src/fsm/src/Makefile.am +++ b/alliance/src/fsm/src/Makefile.am @@ -1,10 +1,9 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/abl/src -I$(top_srcdir)/bdd/src -lib_LTLIBRARIES = libFsm.la +lib_LTLIBRARIES = libFsm.la include_HEADERS = fsm.h -libFsm_la_SOURCES = \ -fsm.h fsmalloc.h fsmdel.h fsmfree.h fsmsearch.h fsmview.h \ -fsmadd.c fsmbdd.c fsmerror.c fsmorder.c fsmsimp.c \ -fsmadd.h fsmbdd.h fsmerror.h fsmorder.h fsmsimp.h \ -fsmalloc.c fsmdel.c fsmfree.c fsmsearch.c fsmview.c - -libFsm_la_LDFLAGS = -version-info @FSM_DLL_VERSION@ +libFsm_la_SOURCES = fsm.h fsmalloc.h fsmdel.h fsmfree.h fsmsearch.h fsmview.h \ + fsmadd.c fsmbdd.c fsmerror.c fsmorder.c fsmsimp.c \ + fsmadd.h fsmbdd.h fsmerror.h fsmorder.h fsmsimp.h \ + fsmalloc.c fsmdel.c fsmfree.c fsmsearch.c fsmview.c +libFsm_la_LDFLAGS = -version-info @FSM_DLL_VERSION@ +libFsm_la_LIBADD = -lBdd -lAbl -lAut -lMut diff --git a/alliance/src/ftl/src/Makefile.am b/alliance/src/ftl/src/Makefile.am index 585af5ee..b50d0ad1 100644 --- a/alliance/src/ftl/src/Makefile.am +++ b/alliance/src/ftl/src/Makefile.am @@ -1,15 +1,16 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/abl/src -I$(top_srcdir)/bdd/src \ --I$(top_srcdir)/fsm/src -lib_LTLIBRARIES = libFtl.la +AM_CFLAGS = -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/abl/src \ + -I$(top_srcdir)/bdd/src \ + -I$(top_srcdir)/fsm/src +lib_LTLIBRARIES = libFtl.la include_HEADERS = ftl.h -libFtl_la_SOURCES = \ -ftl.h ftlacces.c ftlacces.h ftlerror.c ftlerror.h - -libFtl_la_LDFLAGS = -version-info @FTL_DLL_VERSION@ +libFtl_la_SOURCES = ftl.h ftlacces.c ftlacces.h ftlerror.c ftlerror.h +libFtl_la_LDFLAGS = -version-info @FTL_DLL_VERSION@ +libFtl_la_LIBADD = -lFks -lFvh -lFsm -lBdd -lAbl -lAut -lMut EXTRA_PROGRAMS = fsmtest -fsmtest_LDADD = -L. -lFtl -lFks -lFvh -lFsm \ - -lBdd -lAbl -lAut -lMut -fsmtest_SOURCES = main.c +fsmtest_LDADD = -L. -lFtl -lFks -lFvh -lFsm -lBdd -lAbl -lAut -lMut +fsmtest_SOURCES = main.c diff --git a/alliance/src/fvh/src/Makefile.am b/alliance/src/fvh/src/Makefile.am index e76ad8e9..29a3a319 100644 --- a/alliance/src/fvh/src/Makefile.am +++ b/alliance/src/fvh/src/Makefile.am @@ -1,20 +1,26 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/abl/src -I$(top_srcdir)/bdd/src \ --I$(top_srcdir)/fsm/src -lib_LTLIBRARIES = libFvh.la +AM_CFLAGS = -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/abl/src \ + -I$(top_srcdir)/bdd/src \ + -I$(top_srcdir)/fsm/src +lib_LTLIBRARIES = libFvh.la include_HEADERS = fvh.h -libFvh_la_SOURCES = fbl_bcomp_y.y fbl_bcomp_l.l \ -fbh_add.c fbh_del.c fbh_env.c fbh_fre.c fbh_rin.c fbh_rmv.c \ -fbh_typ.c fbh_uti.c fbh_view.c \ -fbl_bedef.h fbl_blex.h fbl_bspec.c fbl_bspec.h fbl_byacc.h \ -fbl_drive.c fbl_drive.h fbl_utdef.h fbl_util.c fbl_util.h \ -fbl_utype.h fvhdrive.c fvhdrive.h fvherror.c fvherror.h \ -fvhfbh2fsm.c fvhfbh2fsm.h fvh.h fvhparse.c fvhparse.h +libFvh_la_SOURCES = fbl_bcomp_y.y fbl_bcomp_l.l \ + fbh_add.c fbh_del.c fbh_env.c fbh_fre.c fbh_rin.c fbh_rmv.c \ + fbh_typ.c fbh_uti.c fbh_view.c \ + fbl_bedef.h fbl_blex.h fbl_bspec.c fbl_bspec.h fbl_byacc.h \ + fbl_drive.c fbl_drive.h fbl_utdef.h fbl_util.c fbl_util.h \ + fbl_utype.h fvhdrive.c fvhdrive.h fvherror.c fvherror.h \ + fvhfbh2fsm.c fvhfbh2fsm.h fvh.h fvhparse.c fvhparse.h -libFvh_la_LDFLAGS = -version-info @FVH_DLL_VERSION@ +libFvh_la_LDFLAGS = -version-info @FVH_DLL_VERSION@ +libFvh_la_LIBADD = -lFsm -lAbl -lBdd -lAut -lMut CLEANFILES = fbl_bcomp_y.c fbl_bcomp_y.h fbl_bcomp_l.c fbl_bcomp_y.c fbl_bcomp_y.h : $(srcdir)/fbl_bcomp_y.y - $(YACC) -d $(YFLAGS) $(srcdir)/fbl_bcomp_y.y && sed -e "s/yy/fbl_y_/g" -e "s/YY/FBL_Y_/g" y.tab.c > fbl_bcomp_y.c && sed -e "s/yy/fbl_y_/g" -e "s/YY/FBL_Y_/g" y.tab.h > fbl_bcomp_y.h + $(YACC) -d $(YFLAGS) $(srcdir)/fbl_bcomp_y.y && \ + sed -e "s/yy/fbl_y_/g" -e "s/YY/FBL_Y_/g" y.tab.c > fbl_bcomp_y.c && \ + sed -e "s/yy/fbl_y_/g" -e "s/YY/FBL_Y_/g" y.tab.h > fbl_bcomp_y.h fbl_bcomp_l.c : $(srcdir)/fbl_bcomp_l.l fbl_bcomp_y.h $(LEX) -t $(srcdir)/fbl_bcomp_l.l | sed -e "s/yy/fbl_y_/g" -e "s/YY/FBL_Y_/g" > fbl_bcomp_l.c diff --git a/alliance/src/genlib/src/Makefile.am b/alliance/src/genlib/src/Makefile.am index 5805f731..5ed34631 100644 --- a/alliance/src/genlib/src/Makefile.am +++ b/alliance/src/genlib/src/Makefile.am @@ -26,6 +26,7 @@ libMgn_la_SOURCES = genlib.c \ dpgen_Shifter.c libMgn_la_LDFLAGS = -version-info @MGN_DLL_VERSION@ +libMgn_la_LIBADD = -lMlu -lMlo -lMpu -lMph -lMut bin_SCRIPTS = genlib CLEANFILES = genlib y.output dpgen_ROM_code.c dpgen_ROM_code.h diff --git a/alliance/src/genlib/src/genlib.sh b/alliance/src/genlib/src/genlib.sh index a2393726..2b3ed93b 100755 --- a/alliance/src/genlib/src/genlib.sh +++ b/alliance/src/genlib/src/genlib.sh @@ -248,25 +248,14 @@ cat << EOF > $MAKEFILE LOCAL_ALC_LVBE = -lBvl \\ -lBeh \\ -lBhl \\ - -lLog \\ - -lCst + -lLog LOCAL_ALC_LMGN = -lMgn LOCAL_ALC_LMUT = -lMut LOCAL_ALC_LMLO = -lMlu \\ -lMlo \\ - -lMal \\ - -lMcl \\ - -lMgl \\ - -lMel \\ - -lMhl \\ - -lMsl \\ - -lMvg \\ -lRcn LOCAL_ALC_LMPH = -lMpu \\ - -lMph \\ - -lMap \\ - -lMcp \\ - -lMmg + -lMph LOCAL_ALC_LIBS = \$(LOCAL_ALC_LDIR) \\ \$(LOCAL_ALC_LVBE) \\ \$(LOCAL_ALC_LMGN) \\ diff --git a/alliance/src/genpat/src/Makefile.am b/alliance/src/genpat/src/Makefile.am index bd29a659..8a816227 100644 --- a/alliance/src/genpat/src/Makefile.am +++ b/alliance/src/genpat/src/Makefile.am @@ -1,18 +1,17 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src \ --I$(top_srcdir)/pat/src \ --I$(top_srcdir)/ppt/src \ --I$(top_srcdir)/phl/src +AM_CFLAGS = -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/pat/src -lib_LTLIBRARIES = libPgn.la -include_HEADERS = genpat.h -libPgn_la_SOURCES = AFFECT.c ARRAY.c CONV.c DECLAR.c DEF_GEN.c GETCPAT.c \ - INIT.c LABEL.c SAVE.c SAV_GEN.c SETTUNIT.c \ - libpat_l.c libpat_l.h +lib_LTLIBRARIES = libPgn.la +include_HEADERS = genpat.h +libPgn_la_SOURCES = AFFECT.c ARRAY.c CONV.c DECLAR.c DEF_GEN.c GETCPAT.c \ + INIT.c LABEL.c SAVE.c SAV_GEN.c SETTUNIT.c \ + libpat_l.c libpat_l.h libPgn_la_LDFLAGS = -version-info @PGN_DLL_VERSION@ +libPgn_la_LIBADD = -lPat -lMut -bin_SCRIPTS = genpat -CLEANFILES = genpat +bin_SCRIPTS = genpat +CLEANFILES = genpat genpat : ${srcdir}/genpat.sh ${SED} 's,__ALLIANCE_INSTALL_DIR__,$(ALLIANCE_INSTALL_DIR),' $< > $@ diff --git a/alliance/src/genpat/src/genpat.sh b/alliance/src/genpat/src/genpat.sh index 4b90212b..a95883e5 100755 --- a/alliance/src/genpat/src/genpat.sh +++ b/alliance/src/genpat/src/genpat.sh @@ -59,8 +59,6 @@ cat << EOF > $makefile ALLIANCE_LIBRARY = -L\$(ALLIANCE_TOP)/lib \\ -lPgn \\ - -lPpt \\ - -lPhl \\ -lPat \\ -lMut \\ -lRcn diff --git a/alliance/src/graal/src/Makefile.am b/alliance/src/graal/src/Makefile.am index 5a4938b6..28d295c3 100644 --- a/alliance/src/graal/src/Makefile.am +++ b/alliance/src/graal/src/Makefile.am @@ -1,17 +1,17 @@ ## Process this file with automake to produce Makefile.in bin_PROGRAMS = graal -AM_CFLAGS = @ALLIANCE_CFLAGS@ @X_CFLAGS@ \ --I$(top_srcdir)/mbk/src \ --I$(top_srcdir)/rds/src \ --I$(top_srcdir)/druc/src \ - -DGRAAL_DEFAULT_TECHNO_NAME=\"etc/cmos.graal\" \ - -DGMS_FILE_NAME=\".graal.cfg\" \ - -DGRAAL_WINDOW_DX=\"GRAAL_WINDOW_DX\" \ - -DGRAAL_WINDOW_DY=\"GRAAL_WINDOW_DY\" \ - -DGRAAL_WINDOW_XMIN=\"GRAAL_WINDOW_XMIN\" \ - -DGRAAL_WINDOW_YMIN=\"GRAAL_WINDOW_YMIN\" \ - -DGRAAL_WINDOW_SIDE=\"GRAAL_WINDOW_SIDE\" +AM_CFLAGS = @ALLIANCE_CFLAGS@ @X_CFLAGS@ \ + -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/rds/src \ + -I$(top_srcdir)/druc/src \ + -DGRAAL_DEFAULT_TECHNO_NAME=\"etc/cmos.graal\" \ + -DGMS_FILE_NAME=\".graal.cfg\" \ + -DGRAAL_WINDOW_DX=\"GRAAL_WINDOW_DX\" \ + -DGRAAL_WINDOW_DY=\"GRAAL_WINDOW_DY\" \ + -DGRAAL_WINDOW_XMIN=\"GRAAL_WINDOW_XMIN\" \ + -DGRAAL_WINDOW_YMIN=\"GRAAL_WINDOW_YMIN\" \ + -DGRAAL_WINDOW_SIDE=\"GRAAL_WINDOW_SIDE\" # ----------------------------------------------------------------------------- # X Libraries. @@ -49,16 +49,10 @@ ALL_X_LIBS = $(X_LDFLAGS) $(LIBXM) $(LIBXT) $(LIBXPM) \ graal_LDADD = @ALLIANCE_LIBS@ $(ALL_X_LIBS) \ --L$(top_builddir)/druc/src \ --L$(top_builddir)/mbk/src \ --L$(top_builddir)/mbkap/src \ --L$(top_builddir)/mbkmg/src \ --L$(top_builddir)/mbkvti/src \ --L$(top_builddir)/rds/src \ --L$(top_builddir)/rdscif/src \ --L$(top_builddir)/rdsgds/src \ --lVrd -lRtl -lRgs -lRcf -lRfm -lRpr -lRwi -lRut -lRds -lMpu \ --lMap -lMmg -lMcp -lMph -lMut + -L$(top_builddir)/druc/src \ + -L$(top_builddir)/mbk/src \ + -L$(top_builddir)/rds/src \ + -lVrd -lRds -lMpu -lMph -lMut graal_SOURCES = \ graal.c GMC_create.c GMC_create.h GMC_dialog.c GMC_dialog.h GMC.h GMC_menu.c GMC_menu.h \ diff --git a/alliance/src/l2p/src/Makefile.am b/alliance/src/l2p/src/Makefile.am index 385edd5f..6ced9a41 100644 --- a/alliance/src/l2p/src/Makefile.am +++ b/alliance/src/l2p/src/Makefile.am @@ -2,28 +2,13 @@ bin_PROGRAMS = l2p -AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src \ --I$(top_srcdir)/rds/src +AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/rds/src -l2p_LDADD = @ALLIANCE_LIBS@ \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdlg/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ --L$(top_srcdir)/rds/src \ --L$(top_srcdir)/rdscif/src \ --L$(top_srcdir)/rdsgds/src \ - -lMlu -lMpu -lMap -lMmg -lMcp -lMcl -lMel \ - -lMhl -lMvg -lMlo -lMph -lMut -lMal -lRcn \ - -lMsl -lMgl \ - -lRtl -lRgs -lRcf -lRfm -lRpr -lRwi -lRut -lRds +l2p_LDADD = @ALLIANCE_LIBS@ \ + -L$(top_srcdir)/mbk/src \ + -L$(top_srcdir)/rds/src \ + -lMlu -lMpu -lMlo -lMph -lMut -lRds -l2p_SOURCES = \ -drive_ps.c rps_inc.h tmp_man.c \ -dict_color.ps l2p.c tmp_dict.c +l2p_SOURCES = drive_ps.c rps_inc.h tmp_man.c \ + dict_color.ps l2p.c tmp_dict.c diff --git a/alliance/src/log/src/Makefile.am b/alliance/src/log/src/Makefile.am index 1a890a9a..dc7e4e1c 100644 --- a/alliance/src/log/src/Makefile.am +++ b/alliance/src/log/src/Makefile.am @@ -1,8 +1,7 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src lib_LTLIBRARIES = libLog.la include_HEADERS = log.h -libLog_la_SOURCES = \ -log_bdd0.c log.h log_thashbdd.c log_thashloc.c \ -log_bdd1.c log_prefbib.c log_thash.c - -libLog_la_LDFLAGS = -version-info @LOG_DLL_VERSION@ +libLog_la_SOURCES = log_bdd0.c log.h log_thashbdd.c log_thashloc.c \ + log_bdd1.c log_prefbib.c log_thash.c +libLog_la_LDFLAGS = -version-info @LOG_DLL_VERSION@ +libLog_la_LIBADD = -lMut diff --git a/alliance/src/loon/src/Makefile.am b/alliance/src/loon/src/Makefile.am index 72427a79..a0a4f063 100644 --- a/alliance/src/loon/src/Makefile.am +++ b/alliance/src/loon/src/Makefile.am @@ -18,14 +18,7 @@ loon_LDADD = @ALLIANCE_LIBS@ \ -L$(top_builddir)/aut/src \ -L$(top_builddir)/bdd/src \ -L$(top_builddir)/mbk/src \ --L$(top_builddir)/mbkal/src \ --L$(top_builddir)/mbkedif/src \ --L$(top_builddir)/mbkhilo/src \ --L$(top_builddir)/mbkspice/src \ --L$(top_builddir)/mbkvhdlg/src \ --L$(top_builddir)/mbkvrlog/src \ --L$(top_builddir)/mbkvti/src \ - -lAbv -lAbe -lAbt -lMlu -lMcl -lMal -lMsl -lMhl -lMel -lMvg -lMgl -lRcn -lMlo -lBdd -lAbl -lAut -lMut + -lAbv -lAbe -lAbt -lMlu -lMlo -lBdd -lAbl -lAut -lMut loon_SOURCES = \ lon_lax_param.c lon_lib_utils.c lon_optim_capa.h \ diff --git a/alliance/src/ltmain.sh b/alliance/src/ltmain.sh deleted file mode 100644 index a72f2fd7..00000000 --- a/alliance/src/ltmain.sh +++ /dev/null @@ -1,8406 +0,0 @@ -# Generated from ltmain.m4sh. - -# ltmain.sh (GNU libtool) 2.2.6b -# Written by Gordon Matzigkeit , 1996 - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Libtool; see the file COPYING. If not, a copy -# can be downloaded from http://www.gnu.org/licenses/gpl.html, -# or obtained by writing to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -# Usage: $progname [OPTION]... [MODE-ARG]... -# -# Provide generalized library-building support services. -# -# --config show all configuration variables -# --debug enable verbose shell tracing -# -n, --dry-run display commands without modifying any files -# --features display basic configuration information and exit -# --mode=MODE use operation mode MODE -# --preserve-dup-deps don't remove duplicate dependency libraries -# --quiet, --silent don't print informational messages -# --tag=TAG use configuration variables from tag TAG -# -v, --verbose print informational messages (default) -# --version print version information -# -h, --help print short or long help message -# -# MODE must be one of the following: -# -# clean remove files from the build directory -# compile compile a source file into a libtool object -# execute automatically set library path, then run a program -# finish complete the installation of libtool libraries -# install install libraries or executables -# link create a library or an executable -# uninstall remove libraries from an installed directory -# -# MODE-ARGS vary depending on the MODE. -# Try `$progname --help --mode=MODE' for a more detailed description of MODE. -# -# When reporting a bug, please describe a test case to reproduce it and -# include the following information: -# -# host-triplet: $host -# shell: $SHELL -# compiler: $LTCC -# compiler flags: $LTCFLAGS -# linker: $LD (gnu? $with_gnu_ld) -# $progname: (GNU libtool) 2.2.6b -# automake: $automake_version -# autoconf: $autoconf_version -# -# Report bugs to . - -PROGRAM=ltmain.sh -PACKAGE=libtool -VERSION=2.2.6b -TIMESTAMP="" -package_revision=1.3017 - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac -fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh - -# NLS nuisances: We save the old values to restore during execute mode. -# Only set LANG and LC_ALL to C if already set. -# These must not be set unconditionally because not all systems understand -# e.g. LANG=C (notably SCO). -lt_user_locale= -lt_safe_locale= -for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES -do - eval "if test \"\${$lt_var+set}\" = set; then - save_$lt_var=\$$lt_var - $lt_var=C - export $lt_var - lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" - lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" - fi" -done - -$lt_unset CDPATH - - - - - -: ${CP="cp -f"} -: ${ECHO="echo"} -: ${EGREP="/bin/grep -E"} -: ${FGREP="/bin/grep -F"} -: ${GREP="/bin/grep"} -: ${LN_S="ln -s"} -: ${MAKE="make"} -: ${MKDIR="mkdir"} -: ${MV="mv -f"} -: ${RM="rm -f"} -: ${SED="/bin/sed"} -: ${SHELL="${CONFIG_SHELL-/bin/sh}"} -: ${Xsed="$SED -e 1s/^X//"} - -# Global variables: -EXIT_SUCCESS=0 -EXIT_FAILURE=1 -EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. -EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. - -exit_status=$EXIT_SUCCESS - -# Make sure IFS has a sensible default -lt_nl=' -' -IFS=" $lt_nl" - -dirname="s,/[^/]*$,," -basename="s,^.*/,," - -# func_dirname_and_basename file append nondir_replacement -# perform func_basename and func_dirname in a single function -# call: -# dirname: Compute the dirname of FILE. If nonempty, -# add APPEND to the result, otherwise set result -# to NONDIR_REPLACEMENT. -# value returned in "$func_dirname_result" -# basename: Compute filename of FILE. -# value retuned in "$func_basename_result" -# Implementation must be kept synchronized with func_dirname -# and func_basename. For efficiency, we do not delegate to -# those functions but instead duplicate the functionality here. -func_dirname_and_basename () -{ - # Extract subdirectory from the argument. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` - if test "X$func_dirname_result" = "X${1}"; then - func_dirname_result="${3}" - else - func_dirname_result="$func_dirname_result${2}" - fi - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` -} - -# Generated shell functions inserted here. - -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh -# is ksh but when the shell is invoked as "sh" and the current value of -# the _XPG environment variable is not equal to 1 (one), the special -# positional parameter $0, within a function call, is the name of the -# function. -progpath="$0" - -# The name of this program: -# In the unlikely event $progname began with a '-', it would play havoc with -# func_echo (imagine progname=-n), so we prepend ./ in that case: -func_dirname_and_basename "$progpath" -progname=$func_basename_result -case $progname in - -*) progname=./$progname ;; -esac - -# Make sure we have an absolute path for reexecution: -case $progpath in - [\\/]*|[A-Za-z]:\\*) ;; - *[\\/]*) - progdir=$func_dirname_result - progdir=`cd "$progdir" && pwd` - progpath="$progdir/$progname" - ;; - *) - save_IFS="$IFS" - IFS=: - for progdir in $PATH; do - IFS="$save_IFS" - test -x "$progdir/$progname" && break - done - IFS="$save_IFS" - test -n "$progdir" || progdir=`pwd` - progpath="$progdir/$progname" - ;; -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed="${SED}"' -e 1s/^X//' -sed_quote_subst='s/\([`"$\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Re-`\' parameter expansions in output of double_quote_subst that were -# `\'-ed in input to the same. If an odd number of `\' preceded a '$' -# in input to double_quote_subst, that '$' was protected from expansion. -# Since each input `\' is now two `\'s, look for any number of runs of -# four `\'s followed by two `\'s and then a '$'. `\' that '$'. -bs='\\' -bs2='\\\\' -bs4='\\\\\\\\' -dollar='\$' -sed_double_backslash="\ - s/$bs4/&\\ -/g - s/^$bs2$dollar/$bs&/ - s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g - s/\n//g" - -# Standard options: -opt_dry_run=false -opt_help=false -opt_quiet=false -opt_verbose=false -opt_warning=: - -# func_echo arg... -# Echo program name prefixed message, along with the current mode -# name if it has been set yet. -func_echo () -{ - $ECHO "$progname${mode+: }$mode: $*" -} - -# func_verbose arg... -# Echo program name prefixed message in verbose mode only. -func_verbose () -{ - $opt_verbose && func_echo ${1+"$@"} - - # A bug in bash halts the script if the last line of a function - # fails when set -e is in force, so we need another command to - # work around that: - : -} - -# func_error arg... -# Echo program name prefixed message to standard error. -func_error () -{ - $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 -} - -# func_warning arg... -# Echo program name prefixed warning message to standard error. -func_warning () -{ - $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 - - # bash bug again: - : -} - -# func_fatal_error arg... -# Echo program name prefixed message to standard error, and exit. -func_fatal_error () -{ - func_error ${1+"$@"} - exit $EXIT_FAILURE -} - -# func_fatal_help arg... -# Echo program name prefixed message to standard error, followed by -# a help hint, and exit. -func_fatal_help () -{ - func_error ${1+"$@"} - func_fatal_error "$help" -} -help="Try \`$progname --help' for more information." ## default - - -# func_grep expression filename -# Check whether EXPRESSION matches any line of FILENAME, without output. -func_grep () -{ - $GREP "$1" "$2" >/dev/null 2>&1 -} - - -# func_mkdir_p directory-path -# Make sure the entire path to DIRECTORY-PATH is available. -func_mkdir_p () -{ - my_directory_path="$1" - my_dir_list= - - if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then - - # Protect directory names starting with `-' - case $my_directory_path in - -*) my_directory_path="./$my_directory_path" ;; - esac - - # While some portion of DIR does not yet exist... - while test ! -d "$my_directory_path"; do - # ...make a list in topmost first order. Use a colon delimited - # list incase some portion of path contains whitespace. - my_dir_list="$my_directory_path:$my_dir_list" - - # If the last portion added has no slash in it, the list is done - case $my_directory_path in */*) ;; *) break ;; esac - - # ...otherwise throw away the child directory and loop - my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` - done - my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` - - save_mkdir_p_IFS="$IFS"; IFS=':' - for my_dir in $my_dir_list; do - IFS="$save_mkdir_p_IFS" - # mkdir can fail with a `File exist' error if two processes - # try to create one of the directories concurrently. Don't - # stop in that case! - $MKDIR "$my_dir" 2>/dev/null || : - done - IFS="$save_mkdir_p_IFS" - - # Bail out if we (or some other process) failed to create a directory. - test -d "$my_directory_path" || \ - func_fatal_error "Failed to create \`$1'" - fi -} - - -# func_mktempdir [string] -# Make a temporary directory that won't clash with other running -# libtool processes, and avoids race conditions if possible. If -# given, STRING is the basename for that directory. -func_mktempdir () -{ - my_template="${TMPDIR-/tmp}/${1-$progname}" - - if test "$opt_dry_run" = ":"; then - # Return a directory name, but don't create it in dry-run mode - my_tmpdir="${my_template}-$$" - else - - # If mktemp works, use that first and foremost - my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` - - if test ! -d "$my_tmpdir"; then - # Failing that, at least try and use $RANDOM to avoid a race - my_tmpdir="${my_template}-${RANDOM-0}$$" - - save_mktempdir_umask=`umask` - umask 0077 - $MKDIR "$my_tmpdir" - umask $save_mktempdir_umask - fi - - # If we're not in dry-run mode, bomb out on failure - test -d "$my_tmpdir" || \ - func_fatal_error "cannot create temporary directory \`$my_tmpdir'" - fi - - $ECHO "X$my_tmpdir" | $Xsed -} - - -# func_quote_for_eval arg -# Aesthetically quote ARG to be evaled later. -# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT -# is double-quoted, suitable for a subsequent eval, whereas -# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters -# which are still active within double quotes backslashified. -func_quote_for_eval () -{ - case $1 in - *[\\\`\"\$]*) - func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; - *) - func_quote_for_eval_unquoted_result="$1" ;; - esac - - case $func_quote_for_eval_unquoted_result in - # Double-quote args containing shell metacharacters to delay - # word splitting, command substitution and and variable - # expansion for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" - ;; - *) - func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" - esac -} - - -# func_quote_for_expand arg -# Aesthetically quote ARG to be evaled later; same as above, -# but do not quote variable references. -func_quote_for_expand () -{ - case $1 in - *[\\\`\"]*) - my_arg=`$ECHO "X$1" | $Xsed \ - -e "$double_quote_subst" -e "$sed_double_backslash"` ;; - *) - my_arg="$1" ;; - esac - - case $my_arg in - # Double-quote args containing shell metacharacters to delay - # word splitting and command substitution for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - my_arg="\"$my_arg\"" - ;; - esac - - func_quote_for_expand_result="$my_arg" -} - - -# func_show_eval cmd [fail_exp] -# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP -# is given, then evaluate it. -func_show_eval () -{ - my_cmd="$1" - my_fail_exp="${2-:}" - - ${opt_silent-false} || { - func_quote_for_expand "$my_cmd" - eval "func_echo $func_quote_for_expand_result" - } - - if ${opt_dry_run-false}; then :; else - eval "$my_cmd" - my_status=$? - if test "$my_status" -eq 0; then :; else - eval "(exit $my_status); $my_fail_exp" - fi - fi -} - - -# func_show_eval_locale cmd [fail_exp] -# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP -# is given, then evaluate it. Use the saved locale for evaluation. -func_show_eval_locale () -{ - my_cmd="$1" - my_fail_exp="${2-:}" - - ${opt_silent-false} || { - func_quote_for_expand "$my_cmd" - eval "func_echo $func_quote_for_expand_result" - } - - if ${opt_dry_run-false}; then :; else - eval "$lt_user_locale - $my_cmd" - my_status=$? - eval "$lt_safe_locale" - if test "$my_status" -eq 0; then :; else - eval "(exit $my_status); $my_fail_exp" - fi - fi -} - - - - - -# func_version -# Echo version message to standard output and exit. -func_version () -{ - $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { - s/^# // - s/^# *$// - s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ - p - }' < "$progpath" - exit $? -} - -# func_usage -# Echo short help message to standard output and exit. -func_usage () -{ - $SED -n '/^# Usage:/,/# -h/ { - s/^# // - s/^# *$// - s/\$progname/'$progname'/ - p - }' < "$progpath" - $ECHO - $ECHO "run \`$progname --help | more' for full usage" - exit $? -} - -# func_help -# Echo long help message to standard output and exit. -func_help () -{ - $SED -n '/^# Usage:/,/# Report bugs to/ { - s/^# // - s/^# *$// - s*\$progname*'$progname'* - s*\$host*'"$host"'* - s*\$SHELL*'"$SHELL"'* - s*\$LTCC*'"$LTCC"'* - s*\$LTCFLAGS*'"$LTCFLAGS"'* - s*\$LD*'"$LD"'* - s/\$with_gnu_ld/'"$with_gnu_ld"'/ - s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ - s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ - p - }' < "$progpath" - exit $? -} - -# func_missing_arg argname -# Echo program name prefixed message to standard error and set global -# exit_cmd. -func_missing_arg () -{ - func_error "missing argument for $1" - exit_cmd=exit -} - -exit_cmd=: - - - - - -# Check that we have a working $ECHO. -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then - # Yippee, $ECHO works! - : -else - # Restart under the correct shell, and then maybe $ECHO will work. - exec $SHELL "$progpath" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1; then - taglist="$taglist $tagname" - - # Evaluate the configuration. Be careful to quote the path - # and the sed script, to avoid splitting on whitespace, but - # also don't use non-portable quotes within backquotes within - # quotes we have to do it in 2 steps: - extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` - eval "$extractedcf" - else - func_error "ignoring unknown tag $tagname" - fi - ;; - esac -} - -# Parse options once, thoroughly. This comes as soon as possible in -# the script to make things like `libtool --version' happen quickly. -{ - - # Shorthand for --mode=foo, only valid as the first argument - case $1 in - clean|clea|cle|cl) - shift; set dummy --mode clean ${1+"$@"}; shift - ;; - compile|compil|compi|comp|com|co|c) - shift; set dummy --mode compile ${1+"$@"}; shift - ;; - execute|execut|execu|exec|exe|ex|e) - shift; set dummy --mode execute ${1+"$@"}; shift - ;; - finish|finis|fini|fin|fi|f) - shift; set dummy --mode finish ${1+"$@"}; shift - ;; - install|instal|insta|inst|ins|in|i) - shift; set dummy --mode install ${1+"$@"}; shift - ;; - link|lin|li|l) - shift; set dummy --mode link ${1+"$@"}; shift - ;; - uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) - shift; set dummy --mode uninstall ${1+"$@"}; shift - ;; - esac - - # Parse non-mode specific arguments: - while test "$#" -gt 0; do - opt="$1" - shift - - case $opt in - --config) func_config ;; - - --debug) preserve_args="$preserve_args $opt" - func_echo "enabling shell trace mode" - opt_debug='set -x' - $opt_debug - ;; - - -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break - execute_dlfiles="$execute_dlfiles $1" - shift - ;; - - --dry-run | -n) opt_dry_run=: ;; - --features) func_features ;; - --finish) mode="finish" ;; - - --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break - case $1 in - # Valid mode arguments: - clean) ;; - compile) ;; - execute) ;; - finish) ;; - install) ;; - link) ;; - relink) ;; - uninstall) ;; - - # Catch anything else as an error - *) func_error "invalid argument for $opt" - exit_cmd=exit - break - ;; - esac - - mode="$1" - shift - ;; - - --preserve-dup-deps) - opt_duplicate_deps=: ;; - - --quiet|--silent) preserve_args="$preserve_args $opt" - opt_silent=: - ;; - - --verbose| -v) preserve_args="$preserve_args $opt" - opt_silent=false - ;; - - --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break - preserve_args="$preserve_args $opt $1" - func_enable_tag "$1" # tagname is set here - shift - ;; - - # Separate optargs to long options: - -dlopen=*|--mode=*|--tag=*) - func_opt_split "$opt" - set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} - shift - ;; - - -\?|-h) func_usage ;; - --help) opt_help=: ;; - --version) func_version ;; - - -*) func_fatal_help "unrecognized option \`$opt'" ;; - - *) nonopt="$opt" - break - ;; - esac - done - - - case $host in - *cygwin* | *mingw* | *pw32* | *cegcc*) - # don't eliminate duplications in $postdeps and $predeps - opt_duplicate_compiler_generated_deps=: - ;; - *) - opt_duplicate_compiler_generated_deps=$opt_duplicate_deps - ;; - esac - - # Having warned about all mis-specified options, bail out if - # anything was wrong. - $exit_cmd $EXIT_FAILURE -} - -# func_check_version_match -# Ensure that we are using m4 macros, and libtool script from the same -# release of libtool. -func_check_version_match () -{ - if test "$package_revision" != "$macro_revision"; then - if test "$VERSION" != "$macro_version"; then - if test -z "$macro_version"; then - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from an older release. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - fi - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, -$progname: but the definition of this LT_INIT comes from revision $macro_revision. -$progname: You should recreate aclocal.m4 with macros from revision $package_revision -$progname: of $PACKAGE $VERSION and run autoconf again. -_LT_EOF - fi - - exit $EXIT_MISMATCH - fi -} - - -## ----------- ## -## Main. ## -## ----------- ## - -$opt_help || { - # Sanity checks first: - func_check_version_match - - if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then - func_fatal_configuration "not configured to build any kind of library" - fi - - test -z "$mode" && func_fatal_error "error: you must specify a MODE." - - - # Darwin sucks - eval std_shrext=\"$shrext_cmds\" - - - # Only execute mode is allowed to have -dlopen flags. - if test -n "$execute_dlfiles" && test "$mode" != execute; then - func_error "unrecognized option \`-dlopen'" - $ECHO "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Change the help message to a mode-specific one. - generic_help="$help" - help="Try \`$progname --help --mode=$mode' for more information." -} - - -# func_lalib_p file -# True iff FILE is a libtool `.la' library or `.lo' object file. -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_lalib_p () -{ - test -f "$1" && - $SED -e 4q "$1" 2>/dev/null \ - | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 -} - -# func_lalib_unsafe_p file -# True iff FILE is a libtool `.la' library or `.lo' object file. -# This function implements the same check as func_lalib_p without -# resorting to external programs. To this end, it redirects stdin and -# closes it afterwards, without saving the original file descriptor. -# As a safety measure, use it only where a negative result would be -# fatal anyway. Works if `file' does not exist. -func_lalib_unsafe_p () -{ - lalib_p=no - if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then - for lalib_p_l in 1 2 3 4 - do - read lalib_p_line - case "$lalib_p_line" in - \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; - esac - done - exec 0<&5 5<&- - fi - test "$lalib_p" = yes -} - -# func_ltwrapper_script_p file -# True iff FILE is a libtool wrapper script -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_script_p () -{ - func_lalib_p "$1" -} - -# func_ltwrapper_executable_p file -# True iff FILE is a libtool wrapper executable -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_executable_p () -{ - func_ltwrapper_exec_suffix= - case $1 in - *.exe) ;; - *) func_ltwrapper_exec_suffix=.exe ;; - esac - $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 -} - -# func_ltwrapper_scriptname file -# Assumes file is an ltwrapper_executable -# uses $file to determine the appropriate filename for a -# temporary ltwrapper_script. -func_ltwrapper_scriptname () -{ - func_ltwrapper_scriptname_result="" - if func_ltwrapper_executable_p "$1"; then - func_dirname_and_basename "$1" "" "." - func_stripname '' '.exe' "$func_basename_result" - func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" - fi -} - -# func_ltwrapper_p file -# True iff FILE is a libtool wrapper script or wrapper executable -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_p () -{ - func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" -} - - -# func_execute_cmds commands fail_cmd -# Execute tilde-delimited COMMANDS. -# If FAIL_CMD is given, eval that upon failure. -# FAIL_CMD may read-access the current command in variable CMD! -func_execute_cmds () -{ - $opt_debug - save_ifs=$IFS; IFS='~' - for cmd in $1; do - IFS=$save_ifs - eval cmd=\"$cmd\" - func_show_eval "$cmd" "${2-:}" - done - IFS=$save_ifs -} - - -# func_source file -# Source FILE, adding directory component if necessary. -# Note that it is not necessary on cygwin/mingw to append a dot to -# FILE even if both FILE and FILE.exe exist: automatic-append-.exe -# behavior happens only for exec(3), not for open(2)! Also, sourcing -# `FILE.' does not work on cygwin managed mounts. -func_source () -{ - $opt_debug - case $1 in - */* | *\\*) . "$1" ;; - *) . "./$1" ;; - esac -} - - -# func_infer_tag arg -# Infer tagged configuration to use if any are available and -# if one wasn't chosen via the "--tag" command line option. -# Only attempt this if the compiler in the base compile -# command doesn't match the default compiler. -# arg is usually of the form 'gcc ...' -func_infer_tag () -{ - $opt_debug - if test -n "$available_tags" && test -z "$tagname"; then - CC_quoted= - for arg in $CC; do - func_quote_for_eval "$arg" - CC_quoted="$CC_quoted $func_quote_for_eval_result" - done - case $@ in - # Blanks in the command may have been stripped by the calling shell, - # but not from the CC environment variable when configure was run. - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; - # Blanks at the start of $base_compile will cause this to fail - # if we don't check for them as well. - *) - for z in $available_tags; do - if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" - CC_quoted= - for arg in $CC; do - # Double-quote args containing other shell metacharacters. - func_quote_for_eval "$arg" - CC_quoted="$CC_quoted $func_quote_for_eval_result" - done - case "$@ " in - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) - # The compiler in the base compile command matches - # the one in the tagged configuration. - # Assume this is the tagged configuration we want. - tagname=$z - break - ;; - esac - fi - done - # If $tagname still isn't set, then no tagged configuration - # was found and let the user know that the "--tag" command - # line option must be used. - if test -z "$tagname"; then - func_echo "unable to infer tagged configuration" - func_fatal_error "specify a tag with \`--tag'" -# else -# func_verbose "using $tagname tagged configuration" - fi - ;; - esac - fi -} - - - -# func_write_libtool_object output_name pic_name nonpic_name -# Create a libtool object file (analogous to a ".la" file), -# but don't create it if we're doing a dry run. -func_write_libtool_object () -{ - write_libobj=${1} - if test "$build_libtool_libs" = yes; then - write_lobj=\'${2}\' - else - write_lobj=none - fi - - if test "$build_old_libs" = yes; then - write_oldobj=\'${3}\' - else - write_oldobj=none - fi - - $opt_dry_run || { - cat >${write_libobj}T <?"'"'"' &()|`$[]' \ - && func_warning "libobj name \`$libobj' may not contain shell special characters." - func_dirname_and_basename "$obj" "/" "" - objname="$func_basename_result" - xdir="$func_dirname_result" - lobj=${xdir}$objdir/$objname - - test -z "$base_compile" && \ - func_fatal_help "you must specify a compilation command" - - # Delete any leftover library objects. - if test "$build_old_libs" = yes; then - removelist="$obj $lobj $libobj ${libobj}T" - else - removelist="$lobj $libobj ${libobj}T" - fi - - # On Cygwin there's no "real" PIC flag so we must build both object types - case $host_os in - cygwin* | mingw* | pw32* | os2* | cegcc*) - pic_mode=default - ;; - esac - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then - # non-PIC code in shared libraries is not supported - pic_mode=default - fi - - # Calculate the filename of the output object if compiler does - # not support -o with -c - if test "$compiler_c_o" = no; then - output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} - lockfile="$output_obj.lock" - else - output_obj= - need_locks=no - lockfile= - fi - - # Lock this critical section if it is needed - # We use this script file to make the link, it avoids creating a new file - if test "$need_locks" = yes; then - until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do - func_echo "Waiting for $lockfile to be removed" - sleep 2 - done - elif test "$need_locks" = warn; then - if test -f "$lockfile"; then - $ECHO "\ -*** ERROR, $lockfile exists and contains: -`cat $lockfile 2>/dev/null` - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - removelist="$removelist $output_obj" - $ECHO "$srcfile" > "$lockfile" - fi - - $opt_dry_run || $RM $removelist - removelist="$removelist $lockfile" - trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 - - if test -n "$fix_srcfile_path"; then - eval srcfile=\"$fix_srcfile_path\" - fi - func_quote_for_eval "$srcfile" - qsrcfile=$func_quote_for_eval_result - - # Only build a PIC object if we are building libtool libraries. - if test "$build_libtool_libs" = yes; then - # Without this assignment, base_compile gets emptied. - fbsd_hideous_sh_bug=$base_compile - - if test "$pic_mode" != no; then - command="$base_compile $qsrcfile $pic_flag" - else - # Don't build PIC code - command="$base_compile $qsrcfile" - fi - - func_mkdir_p "$xdir$objdir" - - if test -z "$output_obj"; then - # Place PIC objects in $objdir - command="$command -o $lobj" - fi - - func_show_eval_locale "$command" \ - 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' - - if test "$need_locks" = warn && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $ECHO "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed, then go on to compile the next one - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then - func_show_eval '$MV "$output_obj" "$lobj"' \ - 'error=$?; $opt_dry_run || $RM $removelist; exit $error' - fi - - # Allow error messages only from the first compilation. - if test "$suppress_opt" = yes; then - suppress_output=' >/dev/null 2>&1' - fi - fi - - # Only build a position-dependent object if we build old libraries. - if test "$build_old_libs" = yes; then - if test "$pic_mode" != yes; then - # Don't build PIC code - command="$base_compile $qsrcfile$pie_flag" - else - command="$base_compile $qsrcfile $pic_flag" - fi - if test "$compiler_c_o" = yes; then - command="$command -o $obj" - fi - - # Suppress compiler output if we already did a PIC compilation. - command="$command$suppress_output" - func_show_eval_locale "$command" \ - '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' - - if test "$need_locks" = warn && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $ECHO "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then - func_show_eval '$MV "$output_obj" "$obj"' \ - 'error=$?; $opt_dry_run || $RM $removelist; exit $error' - fi - fi - - $opt_dry_run || { - func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" - - # Unlock the critical section if it was locked - if test "$need_locks" != no; then - removelist=$lockfile - $RM "$lockfile" - fi - } - - exit $EXIT_SUCCESS -} - -$opt_help || { -test "$mode" = compile && func_mode_compile ${1+"$@"} -} - -func_mode_help () -{ - # We need to display help for each of the modes. - case $mode in - "") - # Generic help is extracted from the usage comments - # at the start of this file. - func_help - ;; - - clean) - $ECHO \ -"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... - -Remove files from the build directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, object or program, all the files associated -with it are deleted. Otherwise, only FILE itself is deleted using RM." - ;; - - compile) - $ECHO \ -"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE - -Compile a source file into a libtool library object. - -This mode accepts the following additional options: - - -o OUTPUT-FILE set the output file name to OUTPUT-FILE - -no-suppress do not suppress compiler output for multiple passes - -prefer-pic try to building PIC objects only - -prefer-non-pic try to building non-PIC objects only - -shared do not build a \`.o' file suitable for static linking - -static only build a \`.o' file suitable for static linking - -COMPILE-COMMAND is a command to be used in creating a \`standard' object file -from the given SOURCEFILE. - -The output file name is determined by removing the directory component from -SOURCEFILE, then substituting the C source code suffix \`.c' with the -library object suffix, \`.lo'." - ;; - - execute) - $ECHO \ -"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... - -Automatically set library path, then run a program. - -This mode accepts the following additional options: - - -dlopen FILE add the directory containing FILE to the library path - -This mode sets the library path environment variable according to \`-dlopen' -flags. - -If any of the ARGS are libtool executable wrappers, then they are translated -into their corresponding uninstalled binary, and any of their required library -directories are added to the library path. - -Then, COMMAND is executed, with ARGS as arguments." - ;; - - finish) - $ECHO \ -"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... - -Complete the installation of libtool libraries. - -Each LIBDIR is a directory that contains libtool libraries. - -The commands that this mode executes may require superuser privileges. Use -the \`--dry-run' option if you just want to see what would be executed." - ;; - - install) - $ECHO \ -"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... - -Install executables or libraries. - -INSTALL-COMMAND is the installation command. The first component should be -either the \`install' or \`cp' program. - -The following components of INSTALL-COMMAND are treated specially: - - -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation - -The rest of the components are interpreted as arguments to that command (only -BSD-compatible install options are recognized)." - ;; - - link) - $ECHO \ -"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... - -Link object files or libraries together to form another library, or to -create an executable program. - -LINK-COMMAND is a command using the C compiler that you would use to create -a program from several object files. - -The following components of LINK-COMMAND are treated specially: - - -all-static do not do any dynamic linking at all - -avoid-version do not add a version suffix if possible - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) - -export-symbols SYMFILE - try to export only the symbols listed in SYMFILE - -export-symbols-regex REGEX - try to export only the symbols matching REGEX - -LLIBDIR search LIBDIR for required installed libraries - -lNAME OUTPUT-FILE requires the installed library libNAME - -module build a library that can dlopened - -no-fast-install disable the fast-install mode - -no-install link a not-installable executable - -no-undefined declare that a library does not refer to external symbols - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects - -objectlist FILE Use a list of object files found in FILE to specify objects - -precious-files-regex REGEX - don't remove output files matching REGEX - -release RELEASE specify package release information - -rpath LIBDIR the created library will eventually be installed in LIBDIR - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries - -shared only do dynamic linking of libtool libraries - -shrext SUFFIX override the standard shared library file extension - -static do not do any dynamic linking of uninstalled libtool libraries - -static-libtool-libs - do not do any dynamic linking of libtool libraries - -version-info CURRENT[:REVISION[:AGE]] - specify library version info [each variable defaults to 0] - -weak LIBNAME declare that the target provides the LIBNAME interface - -All other options (arguments beginning with \`-') are ignored. - -Every other argument is treated as a filename. Files ending in \`.la' are -treated as uninstalled libtool libraries, other files are standard or library -object files. - -If the OUTPUT-FILE ends in \`.la', then a libtool library is created, -only library objects (\`.lo' files) may be specified, and \`-rpath' is -required, except when creating a convenience library. - -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created -using \`ar' and \`ranlib', or on Windows using \`lib'. - -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file -is created, otherwise an executable program is created." - ;; - - uninstall) - $ECHO \ -"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... - -Remove libraries from an installation directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed -to RM. - -If FILE is a libtool library, all the files associated with it are deleted. -Otherwise, only FILE itself is deleted using RM." - ;; - - *) - func_fatal_help "invalid operation mode \`$mode'" - ;; - esac - - $ECHO - $ECHO "Try \`$progname --help' for more information about other modes." - - exit $? -} - - # Now that we've collected a possible --mode arg, show help if necessary - $opt_help && func_mode_help - - -# func_mode_execute arg... -func_mode_execute () -{ - $opt_debug - # The first argument is the command name. - cmd="$nonopt" - test -z "$cmd" && \ - func_fatal_help "you must specify a COMMAND" - - # Handle -dlopen flags immediately. - for file in $execute_dlfiles; do - test -f "$file" \ - || func_fatal_help "\`$file' is not a file" - - dir= - case $file in - *.la) - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$file" \ - || func_fatal_help "\`$lib' is not a valid libtool archive" - - # Read the libtool library. - dlname= - library_names= - func_source "$file" - - # Skip this library if it cannot be dlopened. - if test -z "$dlname"; then - # Warn if it was a shared library. - test -n "$library_names" && \ - func_warning "\`$file' was not linked with \`-export-dynamic'" - continue - fi - - func_dirname "$file" "" "." - dir="$func_dirname_result" - - if test -f "$dir/$objdir/$dlname"; then - dir="$dir/$objdir" - else - if test ! -f "$dir/$dlname"; then - func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" - fi - fi - ;; - - *.lo) - # Just add the directory containing the .lo file. - func_dirname "$file" "" "." - dir="$func_dirname_result" - ;; - - *) - func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" - continue - ;; - esac - - # Get the absolute pathname. - absdir=`cd "$dir" && pwd` - test -n "$absdir" && dir="$absdir" - - # Now add the directory to shlibpath_var. - if eval "test -z \"\$$shlibpath_var\""; then - eval "$shlibpath_var=\"\$dir\"" - else - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" - fi - done - - # This variable tells wrapper scripts just to set shlibpath_var - # rather than running their programs. - libtool_execute_magic="$magic" - - # Check if any of the arguments is a wrapper script. - args= - for file - do - case $file in - -*) ;; - *) - # Do a test to see if this is really a libtool program. - if func_ltwrapper_script_p "$file"; then - func_source "$file" - # Transform arg to wrapped name. - file="$progdir/$program" - elif func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - func_source "$func_ltwrapper_scriptname_result" - # Transform arg to wrapped name. - file="$progdir/$program" - fi - ;; - esac - # Quote arguments (to preserve shell metacharacters). - func_quote_for_eval "$file" - args="$args $func_quote_for_eval_result" - done - - if test "X$opt_dry_run" = Xfalse; then - if test -n "$shlibpath_var"; then - # Export the shlibpath_var. - eval "export $shlibpath_var" - fi - - # Restore saved environment variables - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES - do - eval "if test \"\${save_$lt_var+set}\" = set; then - $lt_var=\$save_$lt_var; export $lt_var - else - $lt_unset $lt_var - fi" - done - - # Now prepare to actually exec the command. - exec_cmd="\$cmd$args" - else - # Display what would be done. - if test -n "$shlibpath_var"; then - eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" - $ECHO "export $shlibpath_var" - fi - $ECHO "$cmd$args" - exit $EXIT_SUCCESS - fi -} - -test "$mode" = execute && func_mode_execute ${1+"$@"} - - -# func_mode_finish arg... -func_mode_finish () -{ - $opt_debug - libdirs="$nonopt" - admincmds= - - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - for dir - do - libdirs="$libdirs $dir" - done - - for libdir in $libdirs; do - if test -n "$finish_cmds"; then - # Do each command in the finish commands. - func_execute_cmds "$finish_cmds" 'admincmds="$admincmds -'"$cmd"'"' - fi - if test -n "$finish_eval"; then - # Do the single finish_eval. - eval cmds=\"$finish_eval\" - $opt_dry_run || eval "$cmds" || admincmds="$admincmds - $cmds" - fi - done - fi - - # Exit here if they wanted silent mode. - $opt_silent && exit $EXIT_SUCCESS - - $ECHO "X----------------------------------------------------------------------" | $Xsed - $ECHO "Libraries have been installed in:" - for libdir in $libdirs; do - $ECHO " $libdir" - done - $ECHO - $ECHO "If you ever happen to want to link against installed libraries" - $ECHO "in a given directory, LIBDIR, you must either use libtool, and" - $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" - $ECHO "flag during linking and do at least one of the following:" - if test -n "$shlibpath_var"; then - $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" - $ECHO " during execution" - fi - if test -n "$runpath_var"; then - $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" - $ECHO " during linking" - fi - if test -n "$hardcode_libdir_flag_spec"; then - libdir=LIBDIR - eval flag=\"$hardcode_libdir_flag_spec\" - - $ECHO " - use the \`$flag' linker flag" - fi - if test -n "$admincmds"; then - $ECHO " - have your system administrator run these commands:$admincmds" - fi - if test -f /etc/ld.so.conf; then - $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" - fi - $ECHO - - $ECHO "See any operating system documentation about shared libraries for" - case $host in - solaris2.[6789]|solaris2.1[0-9]) - $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" - $ECHO "pages." - ;; - *) - $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." - ;; - esac - $ECHO "X----------------------------------------------------------------------" | $Xsed - exit $EXIT_SUCCESS -} - -test "$mode" = finish && func_mode_finish ${1+"$@"} - - -# func_mode_install arg... -func_mode_install () -{ - $opt_debug - # There may be an optional sh(1) argument at the beginning of - # install_prog (especially on Windows NT). - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || - # Allow the use of GNU shtool's install command. - $ECHO "X$nonopt" | $GREP shtool >/dev/null; then - # Aesthetically quote it. - func_quote_for_eval "$nonopt" - install_prog="$func_quote_for_eval_result " - arg=$1 - shift - else - install_prog= - arg=$nonopt - fi - - # The real first argument should be the name of the installation program. - # Aesthetically quote it. - func_quote_for_eval "$arg" - install_prog="$install_prog$func_quote_for_eval_result" - - # We need to accept at least all the BSD install flags. - dest= - files= - opts= - prev= - install_type= - isdir=no - stripme= - for arg - do - if test -n "$dest"; then - files="$files $dest" - dest=$arg - continue - fi - - case $arg in - -d) isdir=yes ;; - -f) - case " $install_prog " in - *[\\\ /]cp\ *) ;; - *) prev=$arg ;; - esac - ;; - -g | -m | -o) - prev=$arg - ;; - -s) - stripme=" -s" - continue - ;; - -*) - ;; - *) - # If the previous option needed an argument, then skip it. - if test -n "$prev"; then - prev= - else - dest=$arg - continue - fi - ;; - esac - - # Aesthetically quote the argument. - func_quote_for_eval "$arg" - install_prog="$install_prog $func_quote_for_eval_result" - done - - test -z "$install_prog" && \ - func_fatal_help "you must specify an install program" - - test -n "$prev" && \ - func_fatal_help "the \`$prev' option requires an argument" - - if test -z "$files"; then - if test -z "$dest"; then - func_fatal_help "no file or destination specified" - else - func_fatal_help "you must specify a destination" - fi - fi - - # Strip any trailing slash from the destination. - func_stripname '' '/' "$dest" - dest=$func_stripname_result - - # Check to see that the destination is a directory. - test -d "$dest" && isdir=yes - if test "$isdir" = yes; then - destdir="$dest" - destname= - else - func_dirname_and_basename "$dest" "" "." - destdir="$func_dirname_result" - destname="$func_basename_result" - - # Not a directory, so check to see that there is only one file specified. - set dummy $files; shift - test "$#" -gt 1 && \ - func_fatal_help "\`$dest' is not a directory" - fi - case $destdir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - for file in $files; do - case $file in - *.lo) ;; - *) - func_fatal_help "\`$destdir' must be an absolute directory name" - ;; - esac - done - ;; - esac - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic="$magic" - - staticlibs= - future_libdirs= - current_libdirs= - for file in $files; do - - # Do each installation. - case $file in - *.$libext) - # Do the static libraries later. - staticlibs="$staticlibs $file" - ;; - - *.la) - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$file" \ - || func_fatal_help "\`$file' is not a valid libtool archive" - - library_names= - old_library= - relink_command= - func_source "$file" - - # Add the libdir to current_libdirs if it is the destination. - if test "X$destdir" = "X$libdir"; then - case "$current_libdirs " in - *" $libdir "*) ;; - *) current_libdirs="$current_libdirs $libdir" ;; - esac - else - # Note the libdir as a future libdir. - case "$future_libdirs " in - *" $libdir "*) ;; - *) future_libdirs="$future_libdirs $libdir" ;; - esac - fi - - func_dirname "$file" "/" "" - dir="$func_dirname_result" - dir="$dir$objdir" - - if test -n "$relink_command"; then - # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` - - # Don't allow the user to place us outside of our expected - # location b/c this prevents finding dependent libraries that - # are installed to the same prefix. - # At present, this check doesn't affect windows .dll's that - # are installed into $libdir/../bin (currently, that works fine) - # but it's something to keep an eye on. - test "$inst_prefix_dir" = "$destdir" && \ - func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" - - if test -n "$inst_prefix_dir"; then - # Stick the inst_prefix_dir data into the link command. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` - else - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` - fi - - func_warning "relinking \`$file'" - func_show_eval "$relink_command" \ - 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' - fi - - # See the names of the shared library. - set dummy $library_names; shift - if test -n "$1"; then - realname="$1" - shift - - srcname="$realname" - test -n "$relink_command" && srcname="$realname"T - - # Install the shared library and build the symlinks. - func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ - 'exit $?' - tstripme="$stripme" - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - case $realname in - *.dll.a) - tstripme="" - ;; - esac - ;; - esac - if test -n "$tstripme" && test -n "$striplib"; then - func_show_eval "$striplib $destdir/$realname" 'exit $?' - fi - - if test "$#" -gt 0; then - # Delete the old symlinks, and create new ones. - # Try `ln -sf' first, because the `ln' binary might depend on - # the symlink we replace! Solaris /bin/ln does not understand -f, - # so we also need to try rm && ln -s. - for linkname - do - test "$linkname" != "$realname" \ - && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" - done - fi - - # Do each command in the postinstall commands. - lib="$destdir/$realname" - func_execute_cmds "$postinstall_cmds" 'exit $?' - fi - - # Install the pseudo-library for information purposes. - func_basename "$file" - name="$func_basename_result" - instname="$dir/$name"i - func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' - - # Maybe install the static library, too. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" - ;; - - *.lo) - # Install (i.e. copy) a libtool object. - - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - func_basename "$file" - destfile="$func_basename_result" - destfile="$destdir/$destfile" - fi - - # Deduce the name of the destination old-style object file. - case $destfile in - *.lo) - func_lo2o "$destfile" - staticdest=$func_lo2o_result - ;; - *.$objext) - staticdest="$destfile" - destfile= - ;; - *) - func_fatal_help "cannot copy a libtool object to \`$destfile'" - ;; - esac - - # Install the libtool object if requested. - test -n "$destfile" && \ - func_show_eval "$install_prog $file $destfile" 'exit $?' - - # Install the old object if enabled. - if test "$build_old_libs" = yes; then - # Deduce the name of the old-style object file. - func_lo2o "$file" - staticobj=$func_lo2o_result - func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' - fi - exit $EXIT_SUCCESS - ;; - - *) - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile="$destdir/$destname" - else - func_basename "$file" - destfile="$func_basename_result" - destfile="$destdir/$destfile" - fi - - # If the file is missing, and there is a .exe on the end, strip it - # because it is most likely a libtool script we actually want to - # install - stripped_ext="" - case $file in - *.exe) - if test ! -f "$file"; then - func_stripname '' '.exe' "$file" - file=$func_stripname_result - stripped_ext=".exe" - fi - ;; - esac - - # Do a test to see if this is really a libtool program. - case $host in - *cygwin* | *mingw*) - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - wrapper=$func_ltwrapper_scriptname_result - else - func_stripname '' '.exe' "$file" - wrapper=$func_stripname_result - fi - ;; - *) - wrapper=$file - ;; - esac - if func_ltwrapper_script_p "$wrapper"; then - notinst_deplibs= - relink_command= - - func_source "$wrapper" - - # Check the variables that should have been set. - test -z "$generated_by_libtool_version" && \ - func_fatal_error "invalid libtool wrapper script \`$wrapper'" - - finalize=yes - for lib in $notinst_deplibs; do - # Check to see that each library is installed. - libdir= - if test -f "$lib"; then - func_source "$lib" - fi - libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test - if test -n "$libdir" && test ! -f "$libfile"; then - func_warning "\`$lib' has not been installed in \`$libdir'" - finalize=no - fi - done - - relink_command= - func_source "$wrapper" - - outputname= - if test "$fast_install" = no && test -n "$relink_command"; then - $opt_dry_run || { - if test "$finalize" = yes; then - tmpdir=`func_mktempdir` - func_basename "$file$stripped_ext" - file="$func_basename_result" - outputname="$tmpdir/$file" - # Replace the output file specification. - relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` - - $opt_silent || { - func_quote_for_expand "$relink_command" - eval "func_echo $func_quote_for_expand_result" - } - if eval "$relink_command"; then : - else - func_error "error: relink \`$file' with the above command before installing it" - $opt_dry_run || ${RM}r "$tmpdir" - continue - fi - file="$outputname" - else - func_warning "cannot relink \`$file'" - fi - } - else - # Install the binary that we compiled earlier. - file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` - fi - fi - - # remove .exe since cygwin /usr/bin/install will append another - # one anyway - case $install_prog,$host in - */usr/bin/install*,*cygwin*) - case $file:$destfile in - *.exe:*.exe) - # this is ok - ;; - *.exe:*) - destfile=$destfile.exe - ;; - *:*.exe) - func_stripname '' '.exe' "$destfile" - destfile=$func_stripname_result - ;; - esac - ;; - esac - func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' - $opt_dry_run || if test -n "$outputname"; then - ${RM}r "$tmpdir" - fi - ;; - esac - done - - for file in $staticlibs; do - func_basename "$file" - name="$func_basename_result" - - # Set up the ranlib parameters. - oldlib="$destdir/$name" - - func_show_eval "$install_prog \$file \$oldlib" 'exit $?' - - if test -n "$stripme" && test -n "$old_striplib"; then - func_show_eval "$old_striplib $oldlib" 'exit $?' - fi - - # Do each command in the postinstall commands. - func_execute_cmds "$old_postinstall_cmds" 'exit $?' - done - - test -n "$future_libdirs" && \ - func_warning "remember to run \`$progname --finish$future_libdirs'" - - if test -n "$current_libdirs"; then - # Maybe just do a dry run. - $opt_dry_run && current_libdirs=" -n$current_libdirs" - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' - else - exit $EXIT_SUCCESS - fi -} - -test "$mode" = install && func_mode_install ${1+"$@"} - - -# func_generate_dlsyms outputname originator pic_p -# Extract symbols from dlprefiles and create ${outputname}S.o with -# a dlpreopen symbol table. -func_generate_dlsyms () -{ - $opt_debug - my_outputname="$1" - my_originator="$2" - my_pic_p="${3-no}" - my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` - my_dlsyms= - - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - if test -n "$NM" && test -n "$global_symbol_pipe"; then - my_dlsyms="${my_outputname}S.c" - else - func_error "not configured to extract global symbols from dlpreopened files" - fi - fi - - if test -n "$my_dlsyms"; then - case $my_dlsyms in - "") ;; - *.c) - # Discover the nlist of each of the dlfiles. - nlist="$output_objdir/${my_outputname}.nm" - - func_show_eval "$RM $nlist ${nlist}S ${nlist}T" - - # Parse the name list into a source file. - func_verbose "creating $output_objdir/$my_dlsyms" - - $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ -/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ -/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ - -#ifdef __cplusplus -extern \"C\" { -#endif - -/* External symbol declarations for the compiler. */\ -" - - if test "$dlself" = yes; then - func_verbose "generating symbol list for \`$output'" - - $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" - - # Add our own program objects to the symbol list. - progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - for progfile in $progfiles; do - func_verbose "extracting global C symbols from \`$progfile'" - $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" - done - - if test -n "$exclude_expsyms"; then - $opt_dry_run || { - eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - } - fi - - if test -n "$export_symbols_regex"; then - $opt_dry_run || { - eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - } - fi - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - export_symbols="$output_objdir/$outputname.exp" - $opt_dry_run || { - $RM $export_symbols - eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' - case $host in - *cygwin* | *mingw* | *cegcc* ) - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' - ;; - esac - } - else - $opt_dry_run || { - eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' - eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - case $host in - *cygwin | *mingw* | *cegcc* ) - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' - ;; - esac - } - fi - fi - - for dlprefile in $dlprefiles; do - func_verbose "extracting global C symbols from \`$dlprefile'" - func_basename "$dlprefile" - name="$func_basename_result" - $opt_dry_run || { - eval '$ECHO ": $name " >> "$nlist"' - eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" - } - done - - $opt_dry_run || { - # Make sure we have at least an empty file. - test -f "$nlist" || : > "$nlist" - - if test -n "$exclude_expsyms"; then - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T - $MV "$nlist"T "$nlist" - fi - - # Try sorting and uniquifying the output. - if $GREP -v "^: " < "$nlist" | - if sort -k 3 /dev/null 2>&1; then - sort -k 3 - else - sort +2 - fi | - uniq > "$nlist"S; then - : - else - $GREP -v "^: " < "$nlist" > "$nlist"S - fi - - if test -f "$nlist"S; then - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' - else - $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" - fi - - $ECHO >> "$output_objdir/$my_dlsyms" "\ - -/* The mapping between symbol names and symbols. */ -typedef struct { - const char *name; - void *address; -} lt_dlsymlist; -" - case $host in - *cygwin* | *mingw* | *cegcc* ) - $ECHO >> "$output_objdir/$my_dlsyms" "\ -/* DATA imports from DLLs on WIN32 con't be const, because - runtime relocations are performed -- see ld's documentation - on pseudo-relocs. */" - lt_dlsym_const= ;; - *osf5*) - echo >> "$output_objdir/$my_dlsyms" "\ -/* This system does not cope well with relocations in const data */" - lt_dlsym_const= ;; - *) - lt_dlsym_const=const ;; - esac - - $ECHO >> "$output_objdir/$my_dlsyms" "\ -extern $lt_dlsym_const lt_dlsymlist -lt_${my_prefix}_LTX_preloaded_symbols[]; -$lt_dlsym_const lt_dlsymlist -lt_${my_prefix}_LTX_preloaded_symbols[] = -{\ - { \"$my_originator\", (void *) 0 }," - - case $need_lib_prefix in - no) - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" - ;; - *) - eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" - ;; - esac - $ECHO >> "$output_objdir/$my_dlsyms" "\ - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt_${my_prefix}_LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif\ -" - } # !$opt_dry_run - - pic_flag_for_symtable= - case "$compile_command " in - *" -static "*) ;; - *) - case $host in - # compiling the symbol table file with pic_flag works around - # a FreeBSD bug that causes programs to crash when -lm is - # linked before any other PIC object. But we must not use - # pic_flag when linking with -static. The problem exists in - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) - pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; - *-*-hpux*) - pic_flag_for_symtable=" $pic_flag" ;; - *) - if test "X$my_pic_p" != Xno; then - pic_flag_for_symtable=" $pic_flag" - fi - ;; - esac - ;; - esac - symtab_cflags= - for arg in $LTCFLAGS; do - case $arg in - -pie | -fpie | -fPIE) ;; - *) symtab_cflags="$symtab_cflags $arg" ;; - esac - done - - # Now compile the dynamic symbol file. - func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' - - # Clean up the generated files. - func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' - - # Transform the symbol file into the correct name. - symfileobj="$output_objdir/${my_outputname}S.$objext" - case $host in - *cygwin* | *mingw* | *cegcc* ) - if test -f "$output_objdir/$my_outputname.def"; then - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - else - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - fi - ;; - *) - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` - ;; - esac - ;; - *) - func_fatal_error "unknown suffix for \`$my_dlsyms'" - ;; - esac - else - # We keep going just in case the user didn't refer to - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe - # really was required. - - # Nullify the symbol file. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` - fi -} - -# func_win32_libid arg -# return the library type of file 'arg' -# -# Need a lot of goo to handle *both* DLLs and import libs -# Has to be a shell function in order to 'eat' the argument -# that is supplied when $file_magic_command is called. -func_win32_libid () -{ - $opt_debug - win32_libid_type="unknown" - win32_fileres=`file -L $1 2>/dev/null` - case $win32_fileres in - *ar\ archive\ import\ library*) # definitely import - win32_libid_type="x86 archive import" - ;; - *ar\ archive*) # could be an import, or static - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | - $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then - win32_nmres=`eval $NM -f posix -A $1 | - $SED -n -e ' - 1,100{ - / I /{ - s,.*,import, - p - q - } - }'` - case $win32_nmres in - import*) win32_libid_type="x86 archive import";; - *) win32_libid_type="x86 archive static";; - esac - fi - ;; - *DLL*) - win32_libid_type="x86 DLL" - ;; - *executable*) # but shell scripts are "executable" too... - case $win32_fileres in - *MS\ Windows\ PE\ Intel*) - win32_libid_type="x86 DLL" - ;; - esac - ;; - esac - $ECHO "$win32_libid_type" -} - - - -# func_extract_an_archive dir oldlib -func_extract_an_archive () -{ - $opt_debug - f_ex_an_ar_dir="$1"; shift - f_ex_an_ar_oldlib="$1" - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then - : - else - func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" - fi -} - - -# func_extract_archives gentop oldlib ... -func_extract_archives () -{ - $opt_debug - my_gentop="$1"; shift - my_oldlibs=${1+"$@"} - my_oldobjs="" - my_xlib="" - my_xabs="" - my_xdir="" - - for my_xlib in $my_oldlibs; do - # Extract the objects. - case $my_xlib in - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; - *) my_xabs=`pwd`"/$my_xlib" ;; - esac - func_basename "$my_xlib" - my_xlib="$func_basename_result" - my_xlib_u=$my_xlib - while :; do - case " $extracted_archives " in - *" $my_xlib_u "*) - func_arith $extracted_serial + 1 - extracted_serial=$func_arith_result - my_xlib_u=lt$extracted_serial-$my_xlib ;; - *) break ;; - esac - done - extracted_archives="$extracted_archives $my_xlib_u" - my_xdir="$my_gentop/$my_xlib_u" - - func_mkdir_p "$my_xdir" - - case $host in - *-darwin*) - func_verbose "Extracting $my_xabs" - # Do not bother doing anything if just a dry run - $opt_dry_run || { - darwin_orig_dir=`pwd` - cd $my_xdir || exit $? - darwin_archive=$my_xabs - darwin_curdir=`pwd` - darwin_base_archive=`basename "$darwin_archive"` - darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` - if test -n "$darwin_arches"; then - darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` - darwin_arch= - func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" - for darwin_arch in $darwin_arches ; do - func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" - $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" - func_extract_an_archive "`pwd`" "${darwin_base_archive}" - cd "$darwin_curdir" - $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" - done # $darwin_arches - ## Okay now we've a bunch of thin objects, gotta fatten them up :) - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` - darwin_file= - darwin_files= - for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` - $LIPO -create -output "$darwin_file" $darwin_files - done # $darwin_filelist - $RM -rf unfat-$$ - cd "$darwin_orig_dir" - else - cd $darwin_orig_dir - func_extract_an_archive "$my_xdir" "$my_xabs" - fi # $darwin_arches - } # !$opt_dry_run - ;; - *) - func_extract_an_archive "$my_xdir" "$my_xabs" - ;; - esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` - done - - func_extract_archives_result="$my_oldobjs" -} - - - -# func_emit_wrapper_part1 [arg=no] -# -# Emit the first part of a libtool wrapper script on stdout. -# For more information, see the description associated with -# func_emit_wrapper(), below. -func_emit_wrapper_part1 () -{ - func_emit_wrapper_part1_arg1=no - if test -n "$1" ; then - func_emit_wrapper_part1_arg1=$1 - fi - - $ECHO "\ -#! $SHELL - -# $output - temporary wrapper script for $objdir/$outputname -# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION -# -# The $output program cannot be directly executed until all the libtool -# libraries that it depends on are installed. -# -# This wrapper script should never be moved out of the build directory. -# If it is, it will not operate correctly. - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='${SED} -e 1s/^X//' -sed_quote_subst='$sed_quote_subst' - -# Be Bourne compatible -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac -fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -relink_command=\"$relink_command\" - -# This environment variable determines our operation mode. -if test \"\$libtool_install_magic\" = \"$magic\"; then - # install mode needs the following variables: - generated_by_libtool_version='$macro_version' - notinst_deplibs='$notinst_deplibs' -else - # When we are sourced in execute mode, \$file and \$ECHO are already set. - if test \"\$libtool_execute_magic\" != \"$magic\"; then - ECHO=\"$qecho\" - file=\"\$0\" - # Make sure echo works. - if test \"X\$1\" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift - elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then - # Yippee, \$ECHO works! - : - else - # Restart under the correct shell, and then maybe \$ECHO will work. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} - fi - fi\ -" - $ECHO "\ - - # Find the directory that this script lives in. - thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` - test \"x\$thisdir\" = \"x\$file\" && thisdir=. - - # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` - while test -n \"\$file\"; do - destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` - - # If there was a directory component, then change thisdir. - if test \"x\$destdir\" != \"x\$file\"; then - case \"\$destdir\" in - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; - *) thisdir=\"\$thisdir/\$destdir\" ;; - esac - fi - - file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` - done -" -} -# end: func_emit_wrapper_part1 - -# func_emit_wrapper_part2 [arg=no] -# -# Emit the second part of a libtool wrapper script on stdout. -# For more information, see the description associated with -# func_emit_wrapper(), below. -func_emit_wrapper_part2 () -{ - func_emit_wrapper_part2_arg1=no - if test -n "$1" ; then - func_emit_wrapper_part2_arg1=$1 - fi - - $ECHO "\ - - # Usually 'no', except on cygwin/mingw when embedded into - # the cwrapper. - WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 - if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then - # special case for '.' - if test \"\$thisdir\" = \".\"; then - thisdir=\`pwd\` - fi - # remove .libs from thisdir - case \"\$thisdir\" in - *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; - $objdir ) thisdir=. ;; - esac - fi - - # Try to get the absolute directory name. - absdir=\`cd \"\$thisdir\" && pwd\` - test -n \"\$absdir\" && thisdir=\"\$absdir\" -" - - if test "$fast_install" = yes; then - $ECHO "\ - program=lt-'$outputname'$exeext - progdir=\"\$thisdir/$objdir\" - - if test ! -f \"\$progdir/\$program\" || - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ - test \"X\$file\" != \"X\$progdir/\$program\"; }; then - - file=\"\$\$-\$program\" - - if test ! -d \"\$progdir\"; then - $MKDIR \"\$progdir\" - else - $RM \"\$progdir/\$file\" - fi" - - $ECHO "\ - - # relink executable if necessary - if test -n \"\$relink_command\"; then - if relink_command_output=\`eval \$relink_command 2>&1\`; then : - else - $ECHO \"\$relink_command_output\" >&2 - $RM \"\$progdir/\$file\" - exit 1 - fi - fi - - $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || - { $RM \"\$progdir/\$program\"; - $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } - $RM \"\$progdir/\$file\" - fi" - else - $ECHO "\ - program='$outputname' - progdir=\"\$thisdir/$objdir\" -" - fi - - $ECHO "\ - - if test -f \"\$progdir/\$program\"; then" - - # Export our shlibpath_var if we have one. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then - $ECHO "\ - # Add our own library path to $shlibpath_var - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" - - # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 sed - $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` - - export $shlibpath_var -" - fi - - # fixup the dll searchpath if we need to. - if test -n "$dllsearchpath"; then - $ECHO "\ - # Add the dll search path components to the executable PATH - PATH=$dllsearchpath:\$PATH -" - fi - - $ECHO "\ - if test \"\$libtool_execute_magic\" != \"$magic\"; then - # Run the actual program with our arguments. -" - case $host in - # Backslashes separate directories on plain windows - *-*-mingw | *-*-os2* | *-cegcc*) - $ECHO "\ - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} -" - ;; - - *) - $ECHO "\ - exec \"\$progdir/\$program\" \${1+\"\$@\"} -" - ;; - esac - $ECHO "\ - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 - exit 1 - fi - else - # The program doesn't exist. - \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 - \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 - $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 - exit 1 - fi -fi\ -" -} -# end: func_emit_wrapper_part2 - - -# func_emit_wrapper [arg=no] -# -# Emit a libtool wrapper script on stdout. -# Don't directly open a file because we may want to -# incorporate the script contents within a cygwin/mingw -# wrapper executable. Must ONLY be called from within -# func_mode_link because it depends on a number of variables -# set therein. -# -# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR -# variable will take. If 'yes', then the emitted script -# will assume that the directory in which it is stored is -# the $objdir directory. This is a cygwin/mingw-specific -# behavior. -func_emit_wrapper () -{ - func_emit_wrapper_arg1=no - if test -n "$1" ; then - func_emit_wrapper_arg1=$1 - fi - - # split this up so that func_emit_cwrapperexe_src - # can call each part independently. - func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" - func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" -} - - -# func_to_host_path arg -# -# Convert paths to host format when used with build tools. -# Intended for use with "native" mingw (where libtool itself -# is running under the msys shell), or in the following cross- -# build environments: -# $build $host -# mingw (msys) mingw [e.g. native] -# cygwin mingw -# *nix + wine mingw -# where wine is equipped with the `winepath' executable. -# In the native mingw case, the (msys) shell automatically -# converts paths for any non-msys applications it launches, -# but that facility isn't available from inside the cwrapper. -# Similar accommodations are necessary for $host mingw and -# $build cygwin. Calling this function does no harm for other -# $host/$build combinations not listed above. -# -# ARG is the path (on $build) that should be converted to -# the proper representation for $host. The result is stored -# in $func_to_host_path_result. -func_to_host_path () -{ - func_to_host_path_result="$1" - if test -n "$1" ; then - case $host in - *mingw* ) - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' - case $build in - *mingw* ) # actually, msys - # awkward: cmd appends spaces to result - lt_sed_strip_trailing_spaces="s/[ ]*\$//" - func_to_host_path_tmp1=`( cmd //c echo "$1" |\ - $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - *cygwin* ) - func_to_host_path_tmp1=`cygpath -w "$1"` - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - * ) - # Unfortunately, winepath does not exit with a non-zero - # error code, so we are forced to check the contents of - # stdout. On the other hand, if the command is not - # found, the shell will set an exit code of 127 and print - # *an error message* to stdout. So we must check for both - # error code of zero AND non-empty stdout, which explains - # the odd construction: - func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` - if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then - func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ - $SED -e "$lt_sed_naive_backslashify"` - else - # Allow warning below. - func_to_host_path_result="" - fi - ;; - esac - if test -z "$func_to_host_path_result" ; then - func_error "Could not determine host path corresponding to" - func_error " '$1'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback: - func_to_host_path_result="$1" - fi - ;; - esac - fi -} -# end: func_to_host_path - -# func_to_host_pathlist arg -# -# Convert pathlists to host format when used with build tools. -# See func_to_host_path(), above. This function supports the -# following $build/$host combinations (but does no harm for -# combinations not listed here): -# $build $host -# mingw (msys) mingw [e.g. native] -# cygwin mingw -# *nix + wine mingw -# -# Path separators are also converted from $build format to -# $host format. If ARG begins or ends with a path separator -# character, it is preserved (but converted to $host format) -# on output. -# -# ARG is a pathlist (on $build) that should be converted to -# the proper representation on $host. The result is stored -# in $func_to_host_pathlist_result. -func_to_host_pathlist () -{ - func_to_host_pathlist_result="$1" - if test -n "$1" ; then - case $host in - *mingw* ) - lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' - # Remove leading and trailing path separator characters from - # ARG. msys behavior is inconsistent here, cygpath turns them - # into '.;' and ';.', and winepath ignores them completely. - func_to_host_pathlist_tmp2="$1" - # Once set for this call, this variable should not be - # reassigned. It is used in tha fallback case. - func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ - $SED -e 's|^:*||' -e 's|:*$||'` - case $build in - *mingw* ) # Actually, msys. - # Awkward: cmd appends spaces to result. - lt_sed_strip_trailing_spaces="s/[ ]*\$//" - func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ - $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - *cygwin* ) - func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ - $SED -e "$lt_sed_naive_backslashify"` - ;; - * ) - # unfortunately, winepath doesn't convert pathlists - func_to_host_pathlist_result="" - func_to_host_pathlist_oldIFS=$IFS - IFS=: - for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do - IFS=$func_to_host_pathlist_oldIFS - if test -n "$func_to_host_pathlist_f" ; then - func_to_host_path "$func_to_host_pathlist_f" - if test -n "$func_to_host_path_result" ; then - if test -z "$func_to_host_pathlist_result" ; then - func_to_host_pathlist_result="$func_to_host_path_result" - else - func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" - fi - fi - fi - IFS=: - done - IFS=$func_to_host_pathlist_oldIFS - ;; - esac - if test -z "$func_to_host_pathlist_result" ; then - func_error "Could not determine the host path(s) corresponding to" - func_error " '$1'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback. This may break if $1 contains DOS-style drive - # specifications. The fix is not to complicate the expression - # below, but for the user to provide a working wine installation - # with winepath so that path translation in the cross-to-mingw - # case works properly. - lt_replace_pathsep_nix_to_dos="s|:|;|g" - func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ - $SED -e "$lt_replace_pathsep_nix_to_dos"` - fi - # Now, add the leading and trailing path separators back - case "$1" in - :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" - ;; - esac - case "$1" in - *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" - ;; - esac - ;; - esac - fi -} -# end: func_to_host_pathlist - -# func_emit_cwrapperexe_src -# emit the source code for a wrapper executable on stdout -# Must ONLY be called from within func_mode_link because -# it depends on a number of variable set therein. -func_emit_cwrapperexe_src () -{ - cat < -#include -#ifdef _MSC_VER -# include -# include -# include -# define setmode _setmode -#else -# include -# include -# ifdef __CYGWIN__ -# include -# define HAVE_SETENV -# ifdef __STRICT_ANSI__ -char *realpath (const char *, char *); -int putenv (char *); -int setenv (const char *, const char *, int); -# endif -# endif -#endif -#include -#include -#include -#include -#include -#include -#include -#include - -#if defined(PATH_MAX) -# define LT_PATHMAX PATH_MAX -#elif defined(MAXPATHLEN) -# define LT_PATHMAX MAXPATHLEN -#else -# define LT_PATHMAX 1024 -#endif - -#ifndef S_IXOTH -# define S_IXOTH 0 -#endif -#ifndef S_IXGRP -# define S_IXGRP 0 -#endif - -#ifdef _MSC_VER -# define S_IXUSR _S_IEXEC -# define stat _stat -# ifndef _INTPTR_T_DEFINED -# define intptr_t int -# endif -#endif - -#ifndef DIR_SEPARATOR -# define DIR_SEPARATOR '/' -# define PATH_SEPARATOR ':' -#endif - -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ - defined (__OS2__) -# define HAVE_DOS_BASED_FILE_SYSTEM -# define FOPEN_WB "wb" -# ifndef DIR_SEPARATOR_2 -# define DIR_SEPARATOR_2 '\\' -# endif -# ifndef PATH_SEPARATOR_2 -# define PATH_SEPARATOR_2 ';' -# endif -#endif - -#ifndef DIR_SEPARATOR_2 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) -#else /* DIR_SEPARATOR_2 */ -# define IS_DIR_SEPARATOR(ch) \ - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) -#endif /* DIR_SEPARATOR_2 */ - -#ifndef PATH_SEPARATOR_2 -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) -#else /* PATH_SEPARATOR_2 */ -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) -#endif /* PATH_SEPARATOR_2 */ - -#ifdef __CYGWIN__ -# define FOPEN_WB "wb" -#endif - -#ifndef FOPEN_WB -# define FOPEN_WB "w" -#endif -#ifndef _O_BINARY -# define _O_BINARY 0 -#endif - -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) -#define XFREE(stale) do { \ - if (stale) { free ((void *) stale); stale = 0; } \ -} while (0) - -#undef LTWRAPPER_DEBUGPRINTF -#if defined DEBUGWRAPPER -# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args -static void -ltwrapper_debugprintf (const char *fmt, ...) -{ - va_list args; - va_start (args, fmt); - (void) vfprintf (stderr, fmt, args); - va_end (args); -} -#else -# define LTWRAPPER_DEBUGPRINTF(args) -#endif - -const char *program_name = NULL; - -void *xmalloc (size_t num); -char *xstrdup (const char *string); -const char *base_name (const char *name); -char *find_executable (const char *wrapper); -char *chase_symlinks (const char *pathspec); -int make_executable (const char *path); -int check_executable (const char *path); -char *strendzap (char *str, const char *pat); -void lt_fatal (const char *message, ...); -void lt_setenv (const char *name, const char *value); -char *lt_extend_str (const char *orig_value, const char *add, int to_end); -void lt_opt_process_env_set (const char *arg); -void lt_opt_process_env_prepend (const char *arg); -void lt_opt_process_env_append (const char *arg); -int lt_split_name_value (const char *arg, char** name, char** value); -void lt_update_exe_path (const char *name, const char *value); -void lt_update_lib_path (const char *name, const char *value); - -static const char *script_text_part1 = -EOF - - func_emit_wrapper_part1 yes | - $SED -e 's/\([\\"]\)/\\\1/g' \ - -e 's/^/ "/' -e 's/$/\\n"/' - echo ";" - cat <"))); - for (i = 0; i < newargc; i++) - { - LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : ""))); - } - -EOF - - case $host_os in - mingw*) - cat <<"EOF" - /* execv doesn't actually work on mingw as expected on unix */ - rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); - if (rval == -1) - { - /* failed to start process */ - LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); - return 127; - } - return rval; -EOF - ;; - *) - cat <<"EOF" - execv (lt_argv_zero, newargz); - return rval; /* =127, but avoids unused variable warning */ -EOF - ;; - esac - - cat <<"EOF" -} - -void * -xmalloc (size_t num) -{ - void *p = (void *) malloc (num); - if (!p) - lt_fatal ("Memory exhausted"); - - return p; -} - -char * -xstrdup (const char *string) -{ - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), - string) : NULL; -} - -const char * -base_name (const char *name) -{ - const char *base; - -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - /* Skip over the disk name in MSDOS pathnames. */ - if (isalpha ((unsigned char) name[0]) && name[1] == ':') - name += 2; -#endif - - for (base = name; *name; name++) - if (IS_DIR_SEPARATOR (*name)) - base = name + 1; - return base; -} - -int -check_executable (const char *path) -{ - struct stat st; - - LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", - path ? (*path ? path : "EMPTY!") : "NULL!")); - if ((!path) || (!*path)) - return 0; - - if ((stat (path, &st) >= 0) - && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) - return 1; - else - return 0; -} - -int -make_executable (const char *path) -{ - int rval = 0; - struct stat st; - - LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", - path ? (*path ? path : "EMPTY!") : "NULL!")); - if ((!path) || (!*path)) - return 0; - - if (stat (path, &st) >= 0) - { - rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); - } - return rval; -} - -/* Searches for the full path of the wrapper. Returns - newly allocated full path name if found, NULL otherwise - Does not chase symlinks, even on platforms that support them. -*/ -char * -find_executable (const char *wrapper) -{ - int has_slash = 0; - const char *p; - const char *p_next; - /* static buffer for getcwd */ - char tmp[LT_PATHMAX + 1]; - int tmp_len; - char *concat_name; - - LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", - wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); - - if ((wrapper == NULL) || (*wrapper == '\0')) - return NULL; - - /* Absolute path? */ -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') - { - concat_name = xstrdup (wrapper); - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } - else - { -#endif - if (IS_DIR_SEPARATOR (wrapper[0])) - { - concat_name = xstrdup (wrapper); - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) - } -#endif - - for (p = wrapper; *p; p++) - if (*p == '/') - { - has_slash = 1; - break; - } - if (!has_slash) - { - /* no slashes; search PATH */ - const char *path = getenv ("PATH"); - if (path != NULL) - { - for (p = path; *p; p = p_next) - { - const char *q; - size_t p_len; - for (q = p; *q; q++) - if (IS_PATH_SEPARATOR (*q)) - break; - p_len = q - p; - p_next = (*q == '\0' ? q : q + 1); - if (p_len == 0) - { - /* empty path: current directory */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); - tmp_len = strlen (tmp); - concat_name = - XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - } - else - { - concat_name = - XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, p, p_len); - concat_name[p_len] = '/'; - strcpy (concat_name + p_len + 1, wrapper); - } - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } - } - /* not found in PATH; assume curdir */ - } - /* Relative path | not found in path: prepend cwd */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal ("getcwd failed"); - tmp_len = strlen (tmp); - concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - return NULL; -} - -char * -chase_symlinks (const char *pathspec) -{ -#ifndef S_ISLNK - return xstrdup (pathspec); -#else - char buf[LT_PATHMAX]; - struct stat s; - char *tmp_pathspec = xstrdup (pathspec); - char *p; - int has_symlinks = 0; - while (strlen (tmp_pathspec) && !has_symlinks) - { - LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", - tmp_pathspec)); - if (lstat (tmp_pathspec, &s) == 0) - { - if (S_ISLNK (s.st_mode) != 0) - { - has_symlinks = 1; - break; - } - - /* search backwards for last DIR_SEPARATOR */ - p = tmp_pathspec + strlen (tmp_pathspec) - 1; - while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) - p--; - if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) - { - /* no more DIR_SEPARATORS left */ - break; - } - *p = '\0'; - } - else - { - char *errstr = strerror (errno); - lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); - } - } - XFREE (tmp_pathspec); - - if (!has_symlinks) - { - return xstrdup (pathspec); - } - - tmp_pathspec = realpath (pathspec, buf); - if (tmp_pathspec == 0) - { - lt_fatal ("Could not follow symlinks for %s", pathspec); - } - return xstrdup (tmp_pathspec); -#endif -} - -char * -strendzap (char *str, const char *pat) -{ - size_t len, patlen; - - assert (str != NULL); - assert (pat != NULL); - - len = strlen (str); - patlen = strlen (pat); - - if (patlen <= len) - { - str += len - patlen; - if (strcmp (str, pat) == 0) - *str = '\0'; - } - return str; -} - -static void -lt_error_core (int exit_status, const char *mode, - const char *message, va_list ap) -{ - fprintf (stderr, "%s: %s: ", program_name, mode); - vfprintf (stderr, message, ap); - fprintf (stderr, ".\n"); - - if (exit_status >= 0) - exit (exit_status); -} - -void -lt_fatal (const char *message, ...) -{ - va_list ap; - va_start (ap, message); - lt_error_core (EXIT_FAILURE, "FATAL", message, ap); - va_end (ap); -} - -void -lt_setenv (const char *name, const char *value) -{ - LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", - (name ? name : ""), - (value ? value : ""))); - { -#ifdef HAVE_SETENV - /* always make a copy, for consistency with !HAVE_SETENV */ - char *str = xstrdup (value); - setenv (name, str, 1); -#else - int len = strlen (name) + 1 + strlen (value) + 1; - char *str = XMALLOC (char, len); - sprintf (str, "%s=%s", name, value); - if (putenv (str) != EXIT_SUCCESS) - { - XFREE (str); - } -#endif - } -} - -char * -lt_extend_str (const char *orig_value, const char *add, int to_end) -{ - char *new_value; - if (orig_value && *orig_value) - { - int orig_value_len = strlen (orig_value); - int add_len = strlen (add); - new_value = XMALLOC (char, add_len + orig_value_len + 1); - if (to_end) - { - strcpy (new_value, orig_value); - strcpy (new_value + orig_value_len, add); - } - else - { - strcpy (new_value, add); - strcpy (new_value + add_len, orig_value); - } - } - else - { - new_value = xstrdup (add); - } - return new_value; -} - -int -lt_split_name_value (const char *arg, char** name, char** value) -{ - const char *p; - int len; - if (!arg || !*arg) - return 1; - - p = strchr (arg, (int)'='); - - if (!p) - return 1; - - *value = xstrdup (++p); - - len = strlen (arg) - strlen (*value); - *name = XMALLOC (char, len); - strncpy (*name, arg, len-1); - (*name)[len - 1] = '\0'; - - return 0; -} - -void -lt_opt_process_env_set (const char *arg) -{ - char *name = NULL; - char *value = NULL; - - if (lt_split_name_value (arg, &name, &value) != 0) - { - XFREE (name); - XFREE (value); - lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); - } - - lt_setenv (name, value); - XFREE (name); - XFREE (value); -} - -void -lt_opt_process_env_prepend (const char *arg) -{ - char *name = NULL; - char *value = NULL; - char *new_value = NULL; - - if (lt_split_name_value (arg, &name, &value) != 0) - { - XFREE (name); - XFREE (value); - lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); - } - - new_value = lt_extend_str (getenv (name), value, 0); - lt_setenv (name, new_value); - XFREE (new_value); - XFREE (name); - XFREE (value); -} - -void -lt_opt_process_env_append (const char *arg) -{ - char *name = NULL; - char *value = NULL; - char *new_value = NULL; - - if (lt_split_name_value (arg, &name, &value) != 0) - { - XFREE (name); - XFREE (value); - lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); - } - - new_value = lt_extend_str (getenv (name), value, 1); - lt_setenv (name, new_value); - XFREE (new_value); - XFREE (name); - XFREE (value); -} - -void -lt_update_exe_path (const char *name, const char *value) -{ - LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", - (name ? name : ""), - (value ? value : ""))); - - if (name && *name && value && *value) - { - char *new_value = lt_extend_str (getenv (name), value, 0); - /* some systems can't cope with a ':'-terminated path #' */ - int len = strlen (new_value); - while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) - { - new_value[len-1] = '\0'; - } - lt_setenv (name, new_value); - XFREE (new_value); - } -} - -void -lt_update_lib_path (const char *name, const char *value) -{ - LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", - (name ? name : ""), - (value ? value : ""))); - - if (name && *name && value && *value) - { - char *new_value = lt_extend_str (getenv (name), value, 0); - lt_setenv (name, new_value); - XFREE (new_value); - } -} - - -EOF -} -# end: func_emit_cwrapperexe_src - -# func_mode_link arg... -func_mode_link () -{ - $opt_debug - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - # It is impossible to link a dll without this setting, and - # we shouldn't force the makefile maintainer to figure out - # which system we are compiling for in order to pass an extra - # flag for every libtool invocation. - # allow_undefined=no - - # FIXME: Unfortunately, there are problems with the above when trying - # to make a dll which has undefined symbols, in which case not - # even a static library is built. For now, we need to specify - # -no-undefined on the libtool link line when we can be certain - # that all symbols are satisfied, otherwise we get a static library. - allow_undefined=yes - ;; - *) - allow_undefined=yes - ;; - esac - libtool_args=$nonopt - base_compile="$nonopt $@" - compile_command=$nonopt - finalize_command=$nonopt - - compile_rpath= - finalize_rpath= - compile_shlibpath= - finalize_shlibpath= - convenience= - old_convenience= - deplibs= - old_deplibs= - compiler_flags= - linker_flags= - dllsearchpath= - lib_search_path=`pwd` - inst_prefix_dir= - new_inherited_linker_flags= - - avoid_version=no - dlfiles= - dlprefiles= - dlself=no - export_dynamic=no - export_symbols= - export_symbols_regex= - generated= - libobjs= - ltlibs= - module=no - no_install=no - objs= - non_pic_objects= - precious_files_regex= - prefer_static_libs=no - preload=no - prev= - prevarg= - release= - rpath= - xrpath= - perm_rpath= - temp_rpath= - thread_safe=no - vinfo= - vinfo_number=no - weak_libs= - single_module="${wl}-single_module" - func_infer_tag $base_compile - - # We need to know -static, to get the right output filenames. - for arg - do - case $arg in - -shared) - test "$build_libtool_libs" != yes && \ - func_fatal_configuration "can not build a shared library" - build_old_libs=no - break - ;; - -all-static | -static | -static-libtool-libs) - case $arg in - -all-static) - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then - func_warning "complete static linking is impossible in this configuration" - fi - if test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - -static) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=built - ;; - -static-libtool-libs) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - esac - build_libtool_libs=no - build_old_libs=yes - break - ;; - esac - done - - # See if our shared archives depend on static archives. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes - - # Go through the arguments, transforming them on the way. - while test "$#" -gt 0; do - arg="$1" - shift - func_quote_for_eval "$arg" - qarg=$func_quote_for_eval_unquoted_result - func_append libtool_args " $func_quote_for_eval_result" - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - output) - func_append compile_command " @OUTPUT@" - func_append finalize_command " @OUTPUT@" - ;; - esac - - case $prev in - dlfiles|dlprefiles) - if test "$preload" = no; then - # Add the symbol object into the linking commands. - func_append compile_command " @SYMFILE@" - func_append finalize_command " @SYMFILE@" - preload=yes - fi - case $arg in - *.la | *.lo) ;; # We handle these cases below. - force) - if test "$dlself" = no; then - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - self) - if test "$prev" = dlprefiles; then - dlself=yes - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then - dlself=yes - else - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - *) - if test "$prev" = dlfiles; then - dlfiles="$dlfiles $arg" - else - dlprefiles="$dlprefiles $arg" - fi - prev= - continue - ;; - esac - ;; - expsyms) - export_symbols="$arg" - test -f "$arg" \ - || func_fatal_error "symbol file \`$arg' does not exist" - prev= - continue - ;; - expsyms_regex) - export_symbols_regex="$arg" - prev= - continue - ;; - framework) - case $host in - *-*-darwin*) - case "$deplibs " in - *" $qarg.ltframework "*) ;; - *) deplibs="$deplibs $qarg.ltframework" # this is fixed later - ;; - esac - ;; - esac - prev= - continue - ;; - inst_prefix) - inst_prefix_dir="$arg" - prev= - continue - ;; - objectlist) - if test -f "$arg"; then - save_arg=$arg - moreargs= - for fil in `cat "$save_arg"` - do -# moreargs="$moreargs $fil" - arg=$fil - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if func_lalib_unsafe_p "$arg"; then - pic_object= - non_pic_object= - - # Read the .lo file - func_source "$arg" - - if test -z "$pic_object" || - test -z "$non_pic_object" || - test "$pic_object" = none && - test "$non_pic_object" = none; then - func_fatal_error "cannot find name of object for \`$arg'" - fi - - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" - - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi - - # A PIC object. - func_append libobjs " $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" - - # A standard non-PIC object - func_append non_pic_objects " $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - func_append non_pic_objects " $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if $opt_dry_run; then - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - func_lo2o "$arg" - pic_object=$xdir$objdir/$func_lo2o_result - non_pic_object=$xdir$func_lo2o_result - func_append libobjs " $pic_object" - func_append non_pic_objects " $non_pic_object" - else - func_fatal_error "\`$arg' is not a valid libtool object" - fi - fi - done - else - func_fatal_error "link input file \`$arg' does not exist" - fi - arg=$save_arg - prev= - continue - ;; - precious_regex) - precious_files_regex="$arg" - prev= - continue - ;; - release) - release="-$arg" - prev= - continue - ;; - rpath | xrpath) - # We need an absolute path. - case $arg in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - func_fatal_error "only absolute run-paths are allowed" - ;; - esac - if test "$prev" = rpath; then - case "$rpath " in - *" $arg "*) ;; - *) rpath="$rpath $arg" ;; - esac - else - case "$xrpath " in - *" $arg "*) ;; - *) xrpath="$xrpath $arg" ;; - esac - fi - prev= - continue - ;; - shrext) - shrext_cmds="$arg" - prev= - continue - ;; - weak) - weak_libs="$weak_libs $arg" - prev= - continue - ;; - xcclinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $qarg" - prev= - func_append compile_command " $qarg" - func_append finalize_command " $qarg" - continue - ;; - xcompiler) - compiler_flags="$compiler_flags $qarg" - prev= - func_append compile_command " $qarg" - func_append finalize_command " $qarg" - continue - ;; - xlinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $wl$qarg" - prev= - func_append compile_command " $wl$qarg" - func_append finalize_command " $wl$qarg" - continue - ;; - *) - eval "$prev=\"\$arg\"" - prev= - continue - ;; - esac - fi # test -n "$prev" - - prevarg="$arg" - - case $arg in - -all-static) - if test -n "$link_static_flag"; then - # See comment for -static flag below, for more details. - func_append compile_command " $link_static_flag" - func_append finalize_command " $link_static_flag" - fi - continue - ;; - - -allow-undefined) - # FIXME: remove this flag sometime in the future. - func_fatal_error "\`-allow-undefined' must not be used because it is the default" - ;; - - -avoid-version) - avoid_version=yes - continue - ;; - - -dlopen) - prev=dlfiles - continue - ;; - - -dlpreopen) - prev=dlprefiles - continue - ;; - - -export-dynamic) - export_dynamic=yes - continue - ;; - - -export-symbols | -export-symbols-regex) - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - func_fatal_error "more than one -exported-symbols argument is not allowed" - fi - if test "X$arg" = "X-export-symbols"; then - prev=expsyms - else - prev=expsyms_regex - fi - continue - ;; - - -framework) - prev=framework - continue - ;; - - -inst-prefix-dir) - prev=inst_prefix - continue - ;; - - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* - # so, if we see these flags be careful not to treat them like -L - -L[A-Z][A-Z]*:*) - case $with_gcc/$host in - no/*-*-irix* | /*-*-irix*) - func_append compile_command " $arg" - func_append finalize_command " $arg" - ;; - esac - continue - ;; - - -L*) - func_stripname '-L' '' "$arg" - dir=$func_stripname_result - if test -z "$dir"; then - if test "$#" -gt 0; then - func_fatal_error "require no space between \`-L' and \`$1'" - else - func_fatal_error "need path for \`-L' option" - fi - fi - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - absdir=`cd "$dir" && pwd` - test -z "$absdir" && \ - func_fatal_error "cannot determine absolute directory name of \`$dir'" - dir="$absdir" - ;; - esac - case "$deplibs " in - *" -L$dir "*) ;; - *) - deplibs="$deplibs -L$dir" - lib_search_path="$lib_search_path $dir" - ;; - esac - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; - ::) dllsearchpath=$dir;; - *) dllsearchpath="$dllsearchpath:$dir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - ::) dllsearchpath=$testbindir;; - *) dllsearchpath="$dllsearchpath:$testbindir";; - esac - ;; - esac - continue - ;; - - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) - # These systems don't actually have a C or math library (as such) - continue - ;; - *-*-os2*) - # These systems don't actually have a C library (as such) - test "X$arg" = "X-lc" && continue - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - test "X$arg" = "X-lc" && continue - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C and math libraries are in the System framework - deplibs="$deplibs System.ltframework" - continue - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - test "X$arg" = "X-lc" && continue - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - test "X$arg" = "X-lc" && continue - ;; - esac - elif test "X$arg" = "X-lc_r"; then - case $host in - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc_r directly, use -pthread flag. - continue - ;; - esac - fi - deplibs="$deplibs $arg" - continue - ;; - - -module) - module=yes - continue - ;; - - # Tru64 UNIX uses -model [arg] to determine the layout of C++ - # classes, name mangling, and exception handling. - # Darwin uses the -arch flag to determine output architecture. - -model|-arch|-isysroot) - compiler_flags="$compiler_flags $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - prev=xcompiler - continue - ;; - - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) - compiler_flags="$compiler_flags $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - case "$new_inherited_linker_flags " in - *" $arg "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; - esac - continue - ;; - - -multi_module) - single_module="${wl}-multi_module" - continue - ;; - - -no-fast-install) - fast_install=no - continue - ;; - - -no-install) - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) - # The PATH hackery in wrapper scripts is required on Windows - # and Darwin in order for the loader to find any dlls it needs. - func_warning "\`-no-install' is ignored for $host" - func_warning "assuming \`-no-fast-install' instead" - fast_install=no - ;; - *) no_install=yes ;; - esac - continue - ;; - - -no-undefined) - allow_undefined=no - continue - ;; - - -objectlist) - prev=objectlist - continue - ;; - - -o) prev=output ;; - - -precious-files-regex) - prev=precious_regex - continue - ;; - - -release) - prev=release - continue - ;; - - -rpath) - prev=rpath - continue - ;; - - -R) - prev=xrpath - continue - ;; - - -R*) - func_stripname '-R' '' "$arg" - dir=$func_stripname_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - func_fatal_error "only absolute run-paths are allowed" - ;; - esac - case "$xrpath " in - *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; - esac - continue - ;; - - -shared) - # The effects of -shared are defined in a previous loop. - continue - ;; - - -shrext) - prev=shrext - continue - ;; - - -static | -static-libtool-libs) - # The effects of -static are defined in a previous loop. - # We used to do the same as -all-static on platforms that - # didn't have a PIC flag, but the assumption that the effects - # would be equivalent was wrong. It would break on at least - # Digital Unix and AIX. - continue - ;; - - -thread-safe) - thread_safe=yes - continue - ;; - - -version-info) - prev=vinfo - continue - ;; - - -version-number) - prev=vinfo - vinfo_number=yes - continue - ;; - - -weak) - prev=weak - continue - ;; - - -Wc,*) - func_stripname '-Wc,' '' "$arg" - args=$func_stripname_result - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - func_quote_for_eval "$flag" - arg="$arg $wl$func_quote_for_eval_result" - compiler_flags="$compiler_flags $func_quote_for_eval_result" - done - IFS="$save_ifs" - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Wl,*) - func_stripname '-Wl,' '' "$arg" - args=$func_stripname_result - arg= - save_ifs="$IFS"; IFS=',' - for flag in $args; do - IFS="$save_ifs" - func_quote_for_eval "$flag" - arg="$arg $wl$func_quote_for_eval_result" - compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" - linker_flags="$linker_flags $func_quote_for_eval_result" - done - IFS="$save_ifs" - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Xcompiler) - prev=xcompiler - continue - ;; - - -Xlinker) - prev=xlinker - continue - ;; - - -XCClinker) - prev=xcclinker - continue - ;; - - # -msg_* for osf cc - -msg_*) - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - ;; - - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler - # -r[0-9][0-9]* specifies the processor on the SGI compiler - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler - # +DA*, +DD* enable 64-bit mode on the HP compiler - # -q* pass through compiler args for the IBM compiler - # -m*, -t[45]*, -txscale* pass through architecture-specific - # compiler args for GCC - # -F/path gives path to uninstalled frameworks, gcc on darwin - # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC - # @file GCC response files - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - func_append compile_command " $arg" - func_append finalize_command " $arg" - compiler_flags="$compiler_flags $arg" - continue - ;; - - # Some other compiler flag. - -* | +*) - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - ;; - - *.$objext) - # A standard object. - objs="$objs $arg" - ;; - - *.lo) - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if func_lalib_unsafe_p "$arg"; then - pic_object= - non_pic_object= - - # Read the .lo file - func_source "$arg" - - if test -z "$pic_object" || - test -z "$non_pic_object" || - test "$pic_object" = none && - test "$non_pic_object" = none; then - func_fatal_error "cannot find name of object for \`$arg'" - fi - - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" - - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi - - # A PIC object. - func_append libobjs " $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" - - # A standard non-PIC object - func_append non_pic_objects " $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - func_append non_pic_objects " $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if $opt_dry_run; then - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir="$func_dirname_result" - - func_lo2o "$arg" - pic_object=$xdir$objdir/$func_lo2o_result - non_pic_object=$xdir$func_lo2o_result - func_append libobjs " $pic_object" - func_append non_pic_objects " $non_pic_object" - else - func_fatal_error "\`$arg' is not a valid libtool object" - fi - fi - ;; - - *.$libext) - # An archive. - deplibs="$deplibs $arg" - old_deplibs="$old_deplibs $arg" - continue - ;; - - *.la) - # A libtool-controlled library. - - if test "$prev" = dlfiles; then - # This library was specified with -dlopen. - dlfiles="$dlfiles $arg" - prev= - elif test "$prev" = dlprefiles; then - # The library was specified with -dlpreopen. - dlprefiles="$dlprefiles $arg" - prev= - else - deplibs="$deplibs $arg" - fi - continue - ;; - - # Some other compiler argument. - *) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - func_quote_for_eval "$arg" - arg="$func_quote_for_eval_result" - ;; - esac # arg - - # Now actually substitute the argument into the commands. - if test -n "$arg"; then - func_append compile_command " $arg" - func_append finalize_command " $arg" - fi - done # argument parsing loop - - test -n "$prev" && \ - func_fatal_help "the \`$prevarg' option requires an argument" - - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then - eval arg=\"$export_dynamic_flag_spec\" - func_append compile_command " $arg" - func_append finalize_command " $arg" - fi - - oldlibs= - # calculate the name of the file, without its directory - func_basename "$output" - outputname="$func_basename_result" - libobjs_save="$libobjs" - - if test -n "$shlibpath_var"; then - # get the directories listed in $shlibpath_var - eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` - else - shlib_search_path= - fi - eval sys_lib_search_path=\"$sys_lib_search_path_spec\" - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" - - func_dirname "$output" "/" "" - output_objdir="$func_dirname_result$objdir" - # Create the object directory. - func_mkdir_p "$output_objdir" - - # Determine the type of output - case $output in - "") - func_fatal_help "you must specify an output file" - ;; - *.$libext) linkmode=oldlib ;; - *.lo | *.$objext) linkmode=obj ;; - *.la) linkmode=lib ;; - *) linkmode=prog ;; # Anything else should be a program. - esac - - specialdeplibs= - - libs= - # Find all interdependent deplibs by searching for libraries - # that are linked more than once (e.g. -la -lb -la) - for deplib in $deplibs; do - if $opt_duplicate_deps ; then - case "$libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - libs="$libs $deplib" - done - - if test "$linkmode" = lib; then - libs="$predeps $libs $compiler_lib_search_path $postdeps" - - # Compute libraries that are listed more than once in $predeps - # $postdeps and mark them as special (i.e., whose duplicates are - # not to be eliminated). - pre_post_deps= - if $opt_duplicate_compiler_generated_deps; then - for pre_post_dep in $predeps $postdeps; do - case "$pre_post_deps " in - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; - esac - pre_post_deps="$pre_post_deps $pre_post_dep" - done - fi - pre_post_deps= - fi - - deplibs= - newdependency_libs= - newlib_search_path= - need_relink=no # whether we're linking any uninstalled libtool libraries - notinst_deplibs= # not-installed libtool libraries - notinst_path= # paths that contain not-installed libtool libraries - - case $linkmode in - lib) - passes="conv dlpreopen link" - for file in $dlfiles $dlprefiles; do - case $file in - *.la) ;; - *) - func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" - ;; - esac - done - ;; - prog) - compile_deplibs= - finalize_deplibs= - alldeplibs=no - newdlfiles= - newdlprefiles= - passes="conv scan dlopen dlpreopen link" - ;; - *) passes="conv" - ;; - esac - - for pass in $passes; do - # The preopen pass in lib mode reverses $deplibs; put it back here - # so that -L comes before libs that need it for instance... - if test "$linkmode,$pass" = "lib,link"; then - ## FIXME: Find the place where the list is rebuilt in the wrong - ## order, and fix it there properly - tmp_deplibs= - for deplib in $deplibs; do - tmp_deplibs="$deplib $tmp_deplibs" - done - deplibs="$tmp_deplibs" - fi - - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan"; then - libs="$deplibs" - deplibs= - fi - if test "$linkmode" = prog; then - case $pass in - dlopen) libs="$dlfiles" ;; - dlpreopen) libs="$dlprefiles" ;; - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; - esac - fi - if test "$linkmode,$pass" = "lib,dlpreopen"; then - # Collect and forward deplibs of preopened libtool libs - for lib in $dlprefiles; do - # Ignore non-libtool-libs - dependency_libs= - case $lib in - *.la) func_source "$lib" ;; - esac - - # Collect preopened libtool deplibs, except any this library - # has declared as weak libs - for deplib in $dependency_libs; do - deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` - case " $weak_libs " in - *" $deplib_base "*) ;; - *) deplibs="$deplibs $deplib" ;; - esac - done - done - libs="$dlprefiles" - fi - if test "$pass" = dlopen; then - # Collect dlpreopened libraries - save_deplibs="$deplibs" - deplibs= - fi - - for deplib in $libs; do - lib= - found=no - case $deplib in - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - compiler_flags="$compiler_flags $deplib" - if test "$linkmode" = lib ; then - case "$new_inherited_linker_flags " in - *" $deplib "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; - esac - fi - fi - continue - ;; - -l*) - if test "$linkmode" != lib && test "$linkmode" != prog; then - func_warning "\`-l' is ignored for archives/objects" - continue - fi - func_stripname '-l' '' "$deplib" - name=$func_stripname_result - if test "$linkmode" = lib; then - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" - else - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" - fi - for searchdir in $searchdirs; do - for search_ext in .la $std_shrext .so .a; do - # Search the libtool library - lib="$searchdir/lib${name}${search_ext}" - if test -f "$lib"; then - if test "$search_ext" = ".la"; then - found=yes - else - found=no - fi - break 2 - fi - done - done - if test "$found" != yes; then - # deplib doesn't seem to be a libtool library - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" - fi - continue - else # deplib is a libtool library - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, - # We need to do some special things here, and not later. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $deplib "*) - if func_lalib_p "$lib"; then - library_names= - old_library= - func_source "$lib" - for l in $old_library $library_names; do - ll="$l" - done - if test "X$ll" = "X$old_library" ; then # only static version available - found=no - func_dirname "$lib" "" "." - ladir="$func_dirname_result" - lib=$ladir/$old_library - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" - fi - continue - fi - fi - ;; - *) ;; - esac - fi - fi - ;; # -l - *.ltframework) - if test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - if test "$linkmode" = lib ; then - case "$new_inherited_linker_flags " in - *" $deplib "*) ;; - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; - esac - fi - fi - continue - ;; - -L*) - case $linkmode in - lib) - deplibs="$deplib $deplibs" - test "$pass" = conv && continue - newdependency_libs="$deplib $newdependency_libs" - func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" - ;; - prog) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - if test "$pass" = scan; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" - ;; - *) - func_warning "\`-L' is ignored for archives/objects" - ;; - esac # linkmode - continue - ;; # -L - -R*) - if test "$pass" = link; then - func_stripname '-R' '' "$deplib" - dir=$func_stripname_result - # Make sure the xrpath contains only unique directories. - case "$xrpath " in - *" $dir "*) ;; - *) xrpath="$xrpath $dir" ;; - esac - fi - deplibs="$deplib $deplibs" - continue - ;; - *.la) lib="$deplib" ;; - *.$libext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - continue - fi - case $linkmode in - lib) - # Linking convenience modules into shared libraries is allowed, - # but linking other static libraries is non-portable. - case " $dlpreconveniencelibs " in - *" $deplib "*) ;; - *) - valid_a_lib=no - case $deplibs_check_method in - match_pattern*) - set dummy $deplibs_check_method; shift - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - valid_a_lib=yes - fi - ;; - pass_all) - valid_a_lib=yes - ;; - esac - if test "$valid_a_lib" != yes; then - $ECHO - $ECHO "*** Warning: Trying to link with static lib archive $deplib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because the file extensions .$libext of this argument makes me believe" - $ECHO "*** that it is just a static archive that I should not use here." - else - $ECHO - $ECHO "*** Warning: Linking the shared library $output against the" - $ECHO "*** static library $deplib is not portable!" - deplibs="$deplib $deplibs" - fi - ;; - esac - continue - ;; - prog) - if test "$pass" != link; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - continue - ;; - esac # linkmode - ;; # *.$libext - *.lo | *.$objext) - if test "$pass" = conv; then - deplibs="$deplib $deplibs" - elif test "$linkmode" = prog; then - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then - # If there is no dlopen support or we're linking statically, - # we need to preload. - newdlprefiles="$newdlprefiles $deplib" - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - newdlfiles="$newdlfiles $deplib" - fi - fi - continue - ;; - %DEPLIBS%) - alldeplibs=yes - continue - ;; - esac # case $deplib - - if test "$found" = yes || test -f "$lib"; then : - else - func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" - fi - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$lib" \ - || func_fatal_error "\`$lib' is not a valid libtool archive" - - func_dirname "$lib" "" "." - ladir="$func_dirname_result" - - dlname= - dlopen= - dlpreopen= - libdir= - library_names= - old_library= - inherited_linker_flags= - # If the library was installed with an old release of libtool, - # it will not redefine variables installed, or shouldnotlink - installed=yes - shouldnotlink=no - avoidtemprpath= - - - # Read the .la file - func_source "$lib" - - # Convert "-framework foo" to "foo.ltframework" - if test -n "$inherited_linker_flags"; then - tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` - for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do - case " $new_inherited_linker_flags " in - *" $tmp_inherited_linker_flag "*) ;; - *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; - esac - done - fi - dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - if test "$linkmode,$pass" = "lib,link" || - test "$linkmode,$pass" = "prog,scan" || - { test "$linkmode" != prog && test "$linkmode" != lib; }; then - test -n "$dlopen" && dlfiles="$dlfiles $dlopen" - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" - fi - - if test "$pass" = conv; then - # Only check for convenience libraries - deplibs="$lib $deplibs" - if test -z "$libdir"; then - if test -z "$old_library"; then - func_fatal_error "cannot find name of link library for \`$lib'" - fi - # It is a libtool convenience library, so add in its objects. - convenience="$convenience $ladir/$objdir/$old_library" - old_convenience="$old_convenience $ladir/$objdir/$old_library" - elif test "$linkmode" != prog && test "$linkmode" != lib; then - func_fatal_error "\`$lib' is not a convenience library" - fi - tmp_libs= - for deplib in $dependency_libs; do - deplibs="$deplib $deplibs" - if $opt_duplicate_deps ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done - continue - fi # $pass = conv - - - # Get the name of the library we link against. - linklib= - for l in $old_library $library_names; do - linklib="$l" - done - if test -z "$linklib"; then - func_fatal_error "cannot find name of link library for \`$lib'" - fi - - # This library was specified with -dlopen. - if test "$pass" = dlopen; then - if test -z "$libdir"; then - func_fatal_error "cannot -dlopen a convenience library: \`$lib'" - fi - if test -z "$dlname" || - test "$dlopen_support" != yes || - test "$build_libtool_libs" = no; then - # If there is no dlname, no dlopen support or we're linking - # statically, we need to preload. We also need to preload any - # dependent libraries so libltdl's deplib preloader doesn't - # bomb out in the load deplibs phase. - dlprefiles="$dlprefiles $lib $dependency_libs" - else - newdlfiles="$newdlfiles $lib" - fi - continue - fi # $pass = dlopen - - # We need an absolute path. - case $ladir in - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; - *) - abs_ladir=`cd "$ladir" && pwd` - if test -z "$abs_ladir"; then - func_warning "cannot determine absolute directory name of \`$ladir'" - func_warning "passing it literally to the linker, although it might fail" - abs_ladir="$ladir" - fi - ;; - esac - func_basename "$lib" - laname="$func_basename_result" - - # Find the relevant object directory and library name. - if test "X$installed" = Xyes; then - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then - func_warning "library \`$lib' was moved." - dir="$ladir" - absdir="$abs_ladir" - libdir="$abs_ladir" - else - dir="$libdir" - absdir="$libdir" - fi - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes - else - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then - dir="$ladir" - absdir="$abs_ladir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" - else - dir="$ladir/$objdir" - absdir="$abs_ladir/$objdir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" - fi - fi # $installed = yes - func_stripname 'lib' '.la' "$laname" - name=$func_stripname_result - - # This library was specified with -dlpreopen. - if test "$pass" = dlpreopen; then - if test -z "$libdir" && test "$linkmode" = prog; then - func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" - fi - # Prefer using a static library (so that no silly _DYNAMIC symbols - # are required to link). - if test -n "$old_library"; then - newdlprefiles="$newdlprefiles $dir/$old_library" - # Keep a list of preopened convenience libraries to check - # that they are being used correctly in the link pass. - test -z "$libdir" && \ - dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" - # Otherwise, use the dlname, so that lt_dlopen finds it. - elif test -n "$dlname"; then - newdlprefiles="$newdlprefiles $dir/$dlname" - else - newdlprefiles="$newdlprefiles $dir/$linklib" - fi - fi # $pass = dlpreopen - - if test -z "$libdir"; then - # Link the convenience library - if test "$linkmode" = lib; then - deplibs="$dir/$old_library $deplibs" - elif test "$linkmode,$pass" = "prog,link"; then - compile_deplibs="$dir/$old_library $compile_deplibs" - finalize_deplibs="$dir/$old_library $finalize_deplibs" - else - deplibs="$lib $deplibs" # used for prog,scan pass - fi - continue - fi - - - if test "$linkmode" = prog && test "$pass" != link; then - newlib_search_path="$newlib_search_path $ladir" - deplibs="$lib $deplibs" - - linkalldeplibs=no - if test "$link_all_deplibs" != no || test -z "$library_names" || - test "$build_libtool_libs" = no; then - linkalldeplibs=yes - fi - - tmp_libs= - for deplib in $dependency_libs; do - case $deplib in - -L*) func_stripname '-L' '' "$deplib" - newlib_search_path="$newlib_search_path $func_stripname_result" - ;; - esac - # Need to link against all dependency_libs? - if test "$linkalldeplibs" = yes; then - deplibs="$deplib $deplibs" - else - # Need to hardcode shared library paths - # or/and link against static libraries - newdependency_libs="$deplib $newdependency_libs" - fi - if $opt_duplicate_deps ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done # for deplib - continue - fi # $linkmode = prog... - - if test "$linkmode,$pass" = "prog,link"; then - if test -n "$library_names" && - { { test "$prefer_static_libs" = no || - test "$prefer_static_libs,$installed" = "built,yes"; } || - test -z "$old_library"; }; then - # We need to hardcode the library path - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then - # Make sure the rpath contains only unique directories. - case "$temp_rpath:" in - *"$absdir:"*) ;; - *) temp_rpath="$temp_rpath$absdir:" ;; - esac - fi - - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - fi # $linkmode,$pass = prog,link... - - if test "$alldeplibs" = yes && - { test "$deplibs_check_method" = pass_all || - { test "$build_libtool_libs" = yes && - test -n "$library_names"; }; }; then - # We only need to search for static libraries - continue - fi - fi - - link_static=no # Whether the deplib will be linked statically - use_static_libs=$prefer_static_libs - if test "$use_static_libs" = built && test "$installed" = yes; then - use_static_libs=no - fi - if test -n "$library_names" && - { test "$use_static_libs" = no || test -z "$old_library"; }; then - case $host in - *cygwin* | *mingw* | *cegcc*) - # No point in relinking DLLs because paths are not encoded - notinst_deplibs="$notinst_deplibs $lib" - need_relink=no - ;; - *) - if test "$installed" = no; then - notinst_deplibs="$notinst_deplibs $lib" - need_relink=yes - fi - ;; - esac - # This is a shared library - - # Warn about portability, can't link against -module's on some - # systems (darwin). Don't bleat about dlopened modules though! - dlopenmodule="" - for dlpremoduletest in $dlprefiles; do - if test "X$dlpremoduletest" = "X$lib"; then - dlopenmodule="$dlpremoduletest" - break - fi - done - if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then - $ECHO - if test "$linkmode" = prog; then - $ECHO "*** Warning: Linking the executable $output against the loadable module" - else - $ECHO "*** Warning: Linking the shared library $output against the loadable module" - fi - $ECHO "*** $linklib is not portable!" - fi - if test "$linkmode" = lib && - test "$hardcode_into_libs" = yes; then - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) compile_rpath="$compile_rpath $absdir" - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" - esac - ;; - esac - fi - - if test -n "$old_archive_from_expsyms_cmds"; then - # figure out the soname - set dummy $library_names - shift - realname="$1" - shift - libname=`eval "\\$ECHO \"$libname_spec\""` - # use dlname if we got it. it's perfectly good, no? - if test -n "$dlname"; then - soname="$dlname" - elif test -n "$soname_spec"; then - # bleh windows - case $host in - *cygwin* | mingw* | *cegcc*) - func_arith $current - $age - major=$func_arith_result - versuffix="-$major" - ;; - esac - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - - # Make a new name for the extract_expsyms_cmds to use - soroot="$soname" - func_basename "$soroot" - soname="$func_basename_result" - func_stripname 'lib' '.dll' "$soname" - newlib=libimp-$func_stripname_result.a - - # If the library has no export list, then create one now - if test -f "$output_objdir/$soname-def"; then : - else - func_verbose "extracting exported symbol list from \`$soname'" - func_execute_cmds "$extract_expsyms_cmds" 'exit $?' - fi - - # Create $newlib - if test -f "$output_objdir/$newlib"; then :; else - func_verbose "generating import library for \`$soname'" - func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' - fi - # make sure the library variables are pointing to the new library - dir=$output_objdir - linklib=$newlib - fi # test -n "$old_archive_from_expsyms_cmds" - - if test "$linkmode" = prog || test "$mode" != relink; then - add_shlibpath= - add_dir= - add= - lib_linked=yes - case $hardcode_action in - immediate | unsupported) - if test "$hardcode_direct" = no; then - add="$dir/$linklib" - case $host in - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; - *-*-sysv4*uw2*) add_dir="-L$dir" ;; - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ - *-*-unixware7*) add_dir="-L$dir" ;; - *-*-darwin* ) - # if the lib is a (non-dlopened) module then we can not - # link against it, someone is ignoring the earlier warnings - if /usr/bin/file -L $add 2> /dev/null | - $GREP ": [^:]* bundle" >/dev/null ; then - if test "X$dlopenmodule" != "X$lib"; then - $ECHO "*** Warning: lib $linklib is a module, not a shared library" - if test -z "$old_library" ; then - $ECHO - $ECHO "*** And there doesn't seem to be a static archive available" - $ECHO "*** The link will probably fail, sorry" - else - add="$dir/$old_library" - fi - elif test -n "$old_library"; then - add="$dir/$old_library" - fi - fi - esac - elif test "$hardcode_minus_L" = no; then - case $host in - *-*-sunos*) add_shlibpath="$dir" ;; - esac - add_dir="-L$dir" - add="-l$name" - elif test "$hardcode_shlibpath_var" = no; then - add_shlibpath="$dir" - add="-l$name" - else - lib_linked=no - fi - ;; - relink) - if test "$hardcode_direct" = yes && - test "$hardcode_direct_absolute" = no; then - add="$dir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$dir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - elif test "$hardcode_shlibpath_var" = yes; then - add_shlibpath="$dir" - add="-l$name" - else - lib_linked=no - fi - ;; - *) lib_linked=no ;; - esac - - if test "$lib_linked" != yes; then - func_fatal_configuration "unsupported hardcode properties" - fi - - if test -n "$add_shlibpath"; then - case :$compile_shlibpath: in - *":$add_shlibpath:"*) ;; - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; - esac - fi - if test "$linkmode" = prog; then - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" - test -n "$add" && compile_deplibs="$add $compile_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - if test "$hardcode_direct" != yes && - test "$hardcode_minus_L" != yes && - test "$hardcode_shlibpath_var" = yes; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; - esac - fi - fi - fi - - if test "$linkmode" = prog || test "$mode" = relink; then - add_shlibpath= - add_dir= - add= - # Finalize command for both is simple: just hardcode it. - if test "$hardcode_direct" = yes && - test "$hardcode_direct_absolute" = no; then - add="$libdir/$linklib" - elif test "$hardcode_minus_L" = yes; then - add_dir="-L$libdir" - add="-l$name" - elif test "$hardcode_shlibpath_var" = yes; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; - esac - add="-l$name" - elif test "$hardcode_automatic" = yes; then - if test -n "$inst_prefix_dir" && - test -f "$inst_prefix_dir$libdir/$linklib" ; then - add="$inst_prefix_dir$libdir/$linklib" - else - add="$libdir/$linklib" - fi - else - # We cannot seem to hardcode it, guess we'll fake it. - add_dir="-L$libdir" - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - add_dir="$add_dir -L$inst_prefix_dir$libdir" - ;; - esac - fi - add="-l$name" - fi - - if test "$linkmode" = prog; then - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" - test -n "$add" && finalize_deplibs="$add $finalize_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - fi - fi - elif test "$linkmode" = prog; then - # Here we assume that one of hardcode_direct or hardcode_minus_L - # is not unsupported. This is valid on all known static and - # shared platforms. - if test "$hardcode_direct" != unsupported; then - test -n "$old_library" && linklib="$old_library" - compile_deplibs="$dir/$linklib $compile_deplibs" - finalize_deplibs="$dir/$linklib $finalize_deplibs" - else - compile_deplibs="-l$name -L$dir $compile_deplibs" - finalize_deplibs="-l$name -L$dir $finalize_deplibs" - fi - elif test "$build_libtool_libs" = yes; then - # Not a shared library - if test "$deplibs_check_method" != pass_all; then - # We're trying link a shared library against a static one - # but the system doesn't support it. - - # Just print a warning and add the library to dependency_libs so - # that the program can be linked against the static library. - $ECHO - $ECHO "*** Warning: This system can not link to static lib archive $lib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have." - if test "$module" = yes; then - $ECHO "*** But as you try to build a module library, libtool will still create " - $ECHO "*** a static module, that should work as long as the dlopening application" - $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." - if test -z "$global_symbol_pipe"; then - $ECHO - $ECHO "*** However, this would only work if libtool was able to extract symbol" - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" - $ECHO "*** not find such a program. So, this module is probably useless." - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." - fi - if test "$build_old_libs" = no; then - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - else - deplibs="$dir/$old_library $deplibs" - link_static=yes - fi - fi # link shared/static library? - - if test "$linkmode" = lib; then - if test -n "$dependency_libs" && - { test "$hardcode_into_libs" != yes || - test "$build_old_libs" = yes || - test "$link_static" = yes; }; then - # Extract -R from dependency_libs - temp_deplibs= - for libdir in $dependency_libs; do - case $libdir in - -R*) func_stripname '-R' '' "$libdir" - temp_xrpath=$func_stripname_result - case " $xrpath " in - *" $temp_xrpath "*) ;; - *) xrpath="$xrpath $temp_xrpath";; - esac;; - *) temp_deplibs="$temp_deplibs $libdir";; - esac - done - dependency_libs="$temp_deplibs" - fi - - newlib_search_path="$newlib_search_path $absdir" - # Link against this library - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" - # ... and its dependency_libs - tmp_libs= - for deplib in $dependency_libs; do - newdependency_libs="$deplib $newdependency_libs" - if $opt_duplicate_deps ; then - case "$tmp_libs " in - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; - esac - fi - tmp_libs="$tmp_libs $deplib" - done - - if test "$link_all_deplibs" != no; then - # Add the search paths of all dependency libraries - for deplib in $dependency_libs; do - case $deplib in - -L*) path="$deplib" ;; - *.la) - func_dirname "$deplib" "" "." - dir="$func_dirname_result" - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - func_warning "cannot determine absolute directory name of \`$dir'" - absdir="$dir" - fi - ;; - esac - if $GREP "^installed=no" $deplib > /dev/null; then - case $host in - *-*-darwin*) - depdepl= - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` - if test -n "$deplibrary_names" ; then - for tmp in $deplibrary_names ; do - depdepl=$tmp - done - if test -f "$absdir/$objdir/$depdepl" ; then - depdepl="$absdir/$objdir/$depdepl" - darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` - if test -z "$darwin_install_name"; then - darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` - fi - compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" - linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" - path= - fi - fi - ;; - *) - path="-L$absdir/$objdir" - ;; - esac - else - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - test -z "$libdir" && \ - func_fatal_error "\`$deplib' is not a valid libtool archive" - test "$absdir" != "$libdir" && \ - func_warning "\`$deplib' seems to be moved" - - path="-L$absdir" - fi - ;; - esac - case " $deplibs " in - *" $path "*) ;; - *) deplibs="$path $deplibs" ;; - esac - done - fi # link_all_deplibs != no - fi # linkmode = lib - done # for deplib in $libs - if test "$pass" = link; then - if test "$linkmode" = "prog"; then - compile_deplibs="$new_inherited_linker_flags $compile_deplibs" - finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" - else - compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - fi - fi - dependency_libs="$newdependency_libs" - if test "$pass" = dlpreopen; then - # Link the dlpreopened libraries before other libraries - for deplib in $save_deplibs; do - deplibs="$deplib $deplibs" - done - fi - if test "$pass" != dlopen; then - if test "$pass" != conv; then - # Make sure lib_search_path contains only unique directories. - lib_search_path= - for dir in $newlib_search_path; do - case "$lib_search_path " in - *" $dir "*) ;; - *) lib_search_path="$lib_search_path $dir" ;; - esac - done - newlib_search_path= - fi - - if test "$linkmode,$pass" != "prog,link"; then - vars="deplibs" - else - vars="compile_deplibs finalize_deplibs" - fi - for var in $vars dependency_libs; do - # Add libraries to $var in reverse order - eval tmp_libs=\"\$$var\" - new_libs= - for deplib in $tmp_libs; do - # FIXME: Pedantically, this is the right thing to do, so - # that some nasty dependency loop isn't accidentally - # broken: - #new_libs="$deplib $new_libs" - # Pragmatically, this seems to cause very few problems in - # practice: - case $deplib in - -L*) new_libs="$deplib $new_libs" ;; - -R*) ;; - *) - # And here is the reason: when a library appears more - # than once as an explicit dependence of a library, or - # is implicitly linked in more than once by the - # compiler, it is considered special, and multiple - # occurrences thereof are not removed. Compare this - # with having the same library being listed as a - # dependency of multiple other libraries: in this case, - # we know (pedantically, we assume) the library does not - # need to be listed more than once, so we keep only the - # last copy. This is not always right, but it is rare - # enough that we require users that really mean to play - # such unportable linking tricks to link the library - # using -Wl,-lname, so that libtool does not consider it - # for duplicate removal. - case " $specialdeplibs " in - *" $deplib "*) new_libs="$deplib $new_libs" ;; - *) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$deplib $new_libs" ;; - esac - ;; - esac - ;; - esac - done - tmp_libs= - for deplib in $new_libs; do - case $deplib in - -L*) - case " $tmp_libs " in - *" $deplib "*) ;; - *) tmp_libs="$tmp_libs $deplib" ;; - esac - ;; - *) tmp_libs="$tmp_libs $deplib" ;; - esac - done - eval $var=\"$tmp_libs\" - done # for var - fi - # Last step: remove runtime libs from dependency_libs - # (they stay in deplibs) - tmp_libs= - for i in $dependency_libs ; do - case " $predeps $postdeps $compiler_lib_search_path " in - *" $i "*) - i="" - ;; - esac - if test -n "$i" ; then - tmp_libs="$tmp_libs $i" - fi - done - dependency_libs=$tmp_libs - done # for pass - if test "$linkmode" = prog; then - dlfiles="$newdlfiles" - fi - if test "$linkmode" = prog || test "$linkmode" = lib; then - dlprefiles="$newdlprefiles" - fi - - case $linkmode in - oldlib) - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - func_warning "\`-dlopen' is ignored for archives" - fi - - case " $deplibs" in - *\ -l* | *\ -L*) - func_warning "\`-l' and \`-L' are ignored for archives" ;; - esac - - test -n "$rpath" && \ - func_warning "\`-rpath' is ignored for archives" - - test -n "$xrpath" && \ - func_warning "\`-R' is ignored for archives" - - test -n "$vinfo" && \ - func_warning "\`-version-info/-version-number' is ignored for archives" - - test -n "$release" && \ - func_warning "\`-release' is ignored for archives" - - test -n "$export_symbols$export_symbols_regex" && \ - func_warning "\`-export-symbols' is ignored for archives" - - # Now set the variables for building old libraries. - build_libtool_libs=no - oldlibs="$output" - objs="$objs$old_deplibs" - ;; - - lib) - # Make sure we only generate libraries of the form `libNAME.la'. - case $outputname in - lib*) - func_stripname 'lib' '.la' "$outputname" - name=$func_stripname_result - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - ;; - *) - test "$module" = no && \ - func_fatal_help "libtool library \`$output' must begin with \`lib'" - - if test "$need_lib_prefix" != no; then - # Add the "lib" prefix for modules if required - func_stripname '' '.la' "$outputname" - name=$func_stripname_result - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - else - func_stripname '' '.la' "$outputname" - libname=$func_stripname_result - fi - ;; - esac - - if test -n "$objs"; then - if test "$deplibs_check_method" != pass_all; then - func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" - else - $ECHO - $ECHO "*** Warning: Linking the shared library $output against the non-libtool" - $ECHO "*** objects $objs is not portable!" - libobjs="$libobjs $objs" - fi - fi - - test "$dlself" != no && \ - func_warning "\`-dlopen self' is ignored for libtool libraries" - - set dummy $rpath - shift - test "$#" -gt 1 && \ - func_warning "ignoring multiple \`-rpath's for a libtool library" - - install_libdir="$1" - - oldlibs= - if test -z "$rpath"; then - if test "$build_libtool_libs" = yes; then - # Building a libtool convenience library. - # Some compilers have problems with a `.al' extension so - # convenience libraries should have the same extension an - # archive normally would. - oldlibs="$output_objdir/$libname.$libext $oldlibs" - build_libtool_libs=convenience - build_old_libs=yes - fi - - test -n "$vinfo" && \ - func_warning "\`-version-info/-version-number' is ignored for convenience libraries" - - test -n "$release" && \ - func_warning "\`-release' is ignored for convenience libraries" - else - - # Parse the version information argument. - save_ifs="$IFS"; IFS=':' - set dummy $vinfo 0 0 0 - shift - IFS="$save_ifs" - - test -n "$7" && \ - func_fatal_help "too many parameters to \`-version-info'" - - # convert absolute version numbers to libtool ages - # this retains compatibility with .la files and attempts - # to make the code below a bit more comprehensible - - case $vinfo_number in - yes) - number_major="$1" - number_minor="$2" - number_revision="$3" - # - # There are really only two kinds -- those that - # use the current revision as the major version - # and those that subtract age and use age as - # a minor version. But, then there is irix - # which has an extra 1 added just for fun - # - case $version_type in - darwin|linux|osf|windows|none) - func_arith $number_major + $number_minor - current=$func_arith_result - age="$number_minor" - revision="$number_revision" - ;; - freebsd-aout|freebsd-elf|sunos) - current="$number_major" - revision="$number_minor" - age="0" - ;; - irix|nonstopux) - func_arith $number_major + $number_minor - current=$func_arith_result - age="$number_minor" - revision="$number_minor" - lt_irix_increment=no - ;; - esac - ;; - no) - current="$1" - revision="$2" - age="$3" - ;; - esac - - # Check that each of the things are valid numbers. - case $current in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "CURRENT \`$current' must be a nonnegative integer" - func_fatal_error "\`$vinfo' is not valid version information" - ;; - esac - - case $revision in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "REVISION \`$revision' must be a nonnegative integer" - func_fatal_error "\`$vinfo' is not valid version information" - ;; - esac - - case $age in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "AGE \`$age' must be a nonnegative integer" - func_fatal_error "\`$vinfo' is not valid version information" - ;; - esac - - if test "$age" -gt "$current"; then - func_error "AGE \`$age' is greater than the current interface number \`$current'" - func_fatal_error "\`$vinfo' is not valid version information" - fi - - # Calculate the version variables. - major= - versuffix= - verstring= - case $version_type in - none) ;; - - darwin) - # Like Linux, but with the current version available in - # verstring for coding it into the library header - func_arith $current - $age - major=.$func_arith_result - versuffix="$major.$age.$revision" - # Darwin ld doesn't like 0 for these options... - func_arith $current + 1 - minor_current=$func_arith_result - xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" - ;; - - freebsd-aout) - major=".$current" - versuffix=".$current.$revision"; - ;; - - freebsd-elf) - major=".$current" - versuffix=".$current" - ;; - - irix | nonstopux) - if test "X$lt_irix_increment" = "Xno"; then - func_arith $current - $age - else - func_arith $current - $age + 1 - fi - major=$func_arith_result - - case $version_type in - nonstopux) verstring_prefix=nonstopux ;; - *) verstring_prefix=sgi ;; - esac - verstring="$verstring_prefix$major.$revision" - - # Add in all the interfaces that we are compatible with. - loop=$revision - while test "$loop" -ne 0; do - func_arith $revision - $loop - iface=$func_arith_result - func_arith $loop - 1 - loop=$func_arith_result - verstring="$verstring_prefix$major.$iface:$verstring" - done - - # Before this point, $major must not contain `.'. - major=.$major - versuffix="$major.$revision" - ;; - - linux) - func_arith $current - $age - major=.$func_arith_result - versuffix="$major.$age.$revision" - ;; - - osf) - func_arith $current - $age - major=.$func_arith_result - versuffix=".$current.$age.$revision" - verstring="$current.$age.$revision" - - # Add in all the interfaces that we are compatible with. - loop=$age - while test "$loop" -ne 0; do - func_arith $current - $loop - iface=$func_arith_result - func_arith $loop - 1 - loop=$func_arith_result - verstring="$verstring:${iface}.0" - done - - # Make executables depend on our current version. - verstring="$verstring:${current}.0" - ;; - - qnx) - major=".$current" - versuffix=".$current" - ;; - - sunos) - major=".$current" - versuffix=".$current.$revision" - ;; - - windows) - # Use '-' rather than '.', since we only want one - # extension on DOS 8.3 filesystems. - func_arith $current - $age - major=$func_arith_result - versuffix="-$major" - ;; - - *) - func_fatal_configuration "unknown library version type \`$version_type'" - ;; - esac - - # Clear the version info if we defaulted, and they specified a release. - if test -z "$vinfo" && test -n "$release"; then - major= - case $version_type in - darwin) - # we can't check for "0.0" in archive_cmds due to quoting - # problems, so we reset it completely - verstring= - ;; - *) - verstring="0.0" - ;; - esac - if test "$need_version" = no; then - versuffix= - else - versuffix=".0.0" - fi - fi - - # Remove version info from name if versioning should be avoided - if test "$avoid_version" = yes && test "$need_version" = no; then - major= - versuffix= - verstring="" - fi - - # Check to see if the archive will have undefined symbols. - if test "$allow_undefined" = yes; then - if test "$allow_undefined_flag" = unsupported; then - func_warning "undefined symbols not allowed in $host shared libraries" - build_libtool_libs=no - build_old_libs=yes - fi - else - # Don't allow undefined symbols. - allow_undefined_flag="$no_undefined_flag" - fi - - fi - - func_generate_dlsyms "$libname" "$libname" "yes" - libobjs="$libobjs $symfileobj" - test "X$libobjs" = "X " && libobjs= - - if test "$mode" != relink; then - # Remove our outputs, but don't remove object files since they - # may have been created when compiling PIC objects. - removelist= - tempremovelist=`$ECHO "$output_objdir/*"` - for p in $tempremovelist; do - case $p in - *.$objext | *.gcno) - ;; - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) - if test "X$precious_files_regex" != "X"; then - if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 - then - continue - fi - fi - removelist="$removelist $p" - ;; - *) ;; - esac - done - test -n "$removelist" && \ - func_show_eval "${RM}r \$removelist" - fi - - # Now set the variables for building old libraries. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then - oldlibs="$oldlibs $output_objdir/$libname.$libext" - - # Transform .lo files to .o files. - oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` - fi - - # Eliminate all temporary directories. - #for path in $notinst_path; do - # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` - # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` - # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` - #done - - if test -n "$xrpath"; then - # If the user specified any rpath flags, then add them. - temp_xrpath= - for libdir in $xrpath; do - temp_xrpath="$temp_xrpath -R$libdir" - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; - esac - done - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then - dependency_libs="$temp_xrpath $dependency_libs" - fi - fi - - # Make sure dlfiles contains only unique files that won't be dlpreopened - old_dlfiles="$dlfiles" - dlfiles= - for lib in $old_dlfiles; do - case " $dlprefiles $dlfiles " in - *" $lib "*) ;; - *) dlfiles="$dlfiles $lib" ;; - esac - done - - # Make sure dlprefiles contains only unique files - old_dlprefiles="$dlprefiles" - dlprefiles= - for lib in $old_dlprefiles; do - case "$dlprefiles " in - *" $lib "*) ;; - *) dlprefiles="$dlprefiles $lib" ;; - esac - done - - if test "$build_libtool_libs" = yes; then - if test -n "$rpath"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C library is in the System framework - deplibs="$deplibs System.ltframework" - ;; - *-*-netbsd*) - # Don't link with libc until the a.out ld.so is fixed. - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - ;; - *) - # Add libc to deplibs on all other systems if necessary. - if test "$build_libtool_need_lc" = "yes"; then - deplibs="$deplibs -lc" - fi - ;; - esac - fi - - # Transform deplibs into only deplibs that can be linked in shared. - name_save=$name - libname_save=$libname - release_save=$release - versuffix_save=$versuffix - major_save=$major - # I'm not sure if I'm treating the release correctly. I think - # release should show up in the -l (ie -lgmp5) so we don't want to - # add it in twice. Is that correct? - release="" - versuffix="" - major="" - newdeplibs= - droppeddeps=no - case $deplibs_check_method in - pass_all) - # Don't check for shared/static. Everything works. - # This might be a little naive. We might want to check - # whether the library exists or not. But this is on - # osf3 & osf4 and I'm not really sure... Just - # implementing what was already the behavior. - newdeplibs=$deplibs - ;; - test_compile) - # This code stresses the "libraries are programs" paradigm to its - # limits. Maybe even breaks it. We compile a program, linking it - # against the deplibs as a proxy for the library. Then we can check - # whether they linked in statically or dynamically with ldd. - $opt_dry_run || $RM conftest.c - cat > conftest.c </dev/null` - for potent_lib in $potential_libs; do - # Follow soft links. - if ls -lLd "$potent_lib" 2>/dev/null | - $GREP " -> " >/dev/null; then - continue - fi - # The statement above tries to avoid entering an - # endless loop below, in case of cyclic links. - # We might still enter an endless loop, since a link - # loop can be closed while we follow links, - # but so what? - potlib="$potent_lib" - while test -h "$potlib" 2>/dev/null; do - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` - case $potliblink in - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; - *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; - esac - done - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | - $SED -e 10q | - $EGREP "$file_magic_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - $ECHO - $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $ECHO "*** with $libname but no candidates were found. (...for file magic test)" - else - $ECHO "*** with $libname and none of the candidates passed a file format test" - $ECHO "*** using a file magic. Last file checked: $potlib" - fi - fi - ;; - *) - # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" - ;; - esac - done # Gone through all deplibs. - ;; - match_pattern*) - set dummy $deplibs_check_method; shift - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - for a_deplib in $deplibs; do - case $a_deplib in - -l*) - func_stripname -l '' "$a_deplib" - name=$func_stripname_result - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - case " $predeps $postdeps " in - *" $a_deplib "*) - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - ;; - esac - fi - if test -n "$a_deplib" ; then - libname=`eval "\\$ECHO \"$libname_spec\""` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do - potlib="$potent_lib" # see symlink-check above in file_magic test - if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ - $EGREP "$match_pattern_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi - done - done - fi - if test -n "$a_deplib" ; then - droppeddeps=yes - $ECHO - $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - $ECHO "*** I have the capability to make that library automatically link in when" - $ECHO "*** you link to this library. But I can only do this if you have a" - $ECHO "*** shared version of the library, which you do not appear to have" - $ECHO "*** because I did check the linker path looking for a file starting" - if test -z "$potlib" ; then - $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" - else - $ECHO "*** with $libname and none of the candidates passed a file format test" - $ECHO "*** using a regex pattern. Last file checked: $potlib" - fi - fi - ;; - *) - # Add a -L argument. - newdeplibs="$newdeplibs $a_deplib" - ;; - esac - done # Gone through all deplibs. - ;; - none | unknown | *) - newdeplibs="" - tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ - -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then - for i in $predeps $postdeps ; do - # can't use Xsed below, because $i might contain '/' - tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` - done - fi - if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | - $GREP . >/dev/null; then - $ECHO - if test "X$deplibs_check_method" = "Xnone"; then - $ECHO "*** Warning: inter-library dependencies are not supported in this platform." - else - $ECHO "*** Warning: inter-library dependencies are not known to be supported." - fi - $ECHO "*** All declared inter-library dependencies are being dropped." - droppeddeps=yes - fi - ;; - esac - versuffix=$versuffix_save - major=$major_save - release=$release_save - libname=$libname_save - name=$name_save - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library with the System framework - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` - ;; - esac - - if test "$droppeddeps" = yes; then - if test "$module" = yes; then - $ECHO - $ECHO "*** Warning: libtool could not satisfy all declared inter-library" - $ECHO "*** dependencies of module $libname. Therefore, libtool will create" - $ECHO "*** a static module, that should work as long as the dlopening" - $ECHO "*** application is linked with the -dlopen flag." - if test -z "$global_symbol_pipe"; then - $ECHO - $ECHO "*** However, this would only work if libtool was able to extract symbol" - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" - $ECHO "*** not find such a program. So, this module is probably useless." - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." - fi - if test "$build_old_libs" = no; then - oldlibs="$output_objdir/$libname.$libext" - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - else - $ECHO "*** The inter-library dependencies that have been dropped here will be" - $ECHO "*** automatically added whenever a program is linked with this library" - $ECHO "*** or is declared to -dlopen it." - - if test "$allow_undefined" = no; then - $ECHO - $ECHO "*** Since this library must not contain undefined symbols," - $ECHO "*** because either the platform does not support them or" - $ECHO "*** it was explicitly requested with -no-undefined," - $ECHO "*** libtool will only create a static version of it." - if test "$build_old_libs" = no; then - oldlibs="$output_objdir/$libname.$libext" - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - fi - fi - # Done checking deplibs! - deplibs=$newdeplibs - fi - # Time to change all our "foo.ltframework" stuff back to "-framework foo" - case $host in - *-*-darwin*) - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - ;; - esac - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $deplibs " in - *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; - esac - ;; - *) new_libs="$new_libs $deplib" ;; - esac - done - deplibs="$new_libs" - - # All the library-specific variables (install_libdir is set above). - library_names= - old_library= - dlname= - - # Test again, we may have decided not to build it any more - if test "$build_libtool_libs" = yes; then - if test "$hardcode_into_libs" = yes; then - # Hardcode the library paths - hardcode_libdirs= - dep_rpath= - rpath="$finalize_rpath" - test "$mode" != relink && rpath="$compile_rpath$rpath" - for libdir in $rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - dep_rpath="$dep_rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - if test -n "$hardcode_libdir_flag_spec_ld"; then - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" - else - eval dep_rpath=\"$hardcode_libdir_flag_spec\" - fi - fi - if test -n "$runpath_var" && test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - rpath="$rpath$dir:" - done - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" - fi - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" - fi - - shlibpath="$finalize_shlibpath" - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" - if test -n "$shlibpath"; then - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" - fi - - # Get the real and link names of the library. - eval shared_ext=\"$shrext_cmds\" - eval library_names=\"$library_names_spec\" - set dummy $library_names - shift - realname="$1" - shift - - if test -n "$soname_spec"; then - eval soname=\"$soname_spec\" - else - soname="$realname" - fi - if test -z "$dlname"; then - dlname=$soname - fi - - lib="$output_objdir/$realname" - linknames= - for link - do - linknames="$linknames $link" - done - - # Use standard objects if they are pic - test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - test "X$libobjs" = "X " && libobjs= - - delfiles= - if test -n "$export_symbols" && test -n "$include_expsyms"; then - $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" - export_symbols="$output_objdir/$libname.uexp" - delfiles="$delfiles $export_symbols" - fi - - orig_export_symbols= - case $host_os in - cygwin* | mingw* | cegcc*) - if test -n "$export_symbols" && test -z "$export_symbols_regex"; then - # exporting using user supplied symfile - if test "x`$SED 1q $export_symbols`" != xEXPORTS; then - # and it's NOT already a .def file. Must figure out - # which of the given symbols are data symbols and tag - # them as such. So, trigger use of export_symbols_cmds. - # export_symbols gets reassigned inside the "prepare - # the list of exported symbols" if statement, so the - # include_expsyms logic still works. - orig_export_symbols="$export_symbols" - export_symbols= - always_export_symbols=yes - fi - fi - ;; - esac - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then - func_verbose "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $opt_dry_run || $RM $export_symbols - cmds=$export_symbols_cmds - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - func_len " $cmd" - len=$func_len_result - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - func_show_eval "$cmd" 'exit $?' - skipped_export=false - else - # The command line is too long to execute in one step. - func_verbose "using reloadable object file for export list..." - skipped_export=: - # Break out early, otherwise skipped_export may be - # set to false by a later but shorter cmd. - break - fi - done - IFS="$save_ifs" - if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - func_show_eval '$MV "${export_symbols}T" "$export_symbols"' - fi - fi - fi - - if test -n "$export_symbols" && test -n "$include_expsyms"; then - tmp_export_symbols="$export_symbols" - test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' - fi - - if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then - # The given exports_symbols file has to be filtered, so filter it. - func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" - # FIXME: $output_objdir/$libname.filter potentially contains lots of - # 's' commands which not all seds can handle. GNU sed should be fine - # though. Also, the filter scales superlinearly with the number of - # global variables. join(1) would be nice here, but unfortunately - # isn't a blessed tool. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" - export_symbols=$output_objdir/$libname.def - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols - fi - - tmp_deplibs= - for test_deplib in $deplibs; do - case " $convenience " in - *" $test_deplib "*) ;; - *) - tmp_deplibs="$tmp_deplibs $test_deplib" - ;; - esac - done - deplibs="$tmp_deplibs" - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec" && - test "$compiler_needs_object" = yes && - test -z "$libobjs"; then - # extract the archives, so we have objects to list. - # TODO: could optimize this to just extract one archive. - whole_archive_flag_spec= - fi - if test -n "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - test "X$libobjs" = "X " && libobjs= - else - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $convenience - libobjs="$libobjs $func_extract_archives_result" - test "X$libobjs" = "X " && libobjs= - fi - fi - - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then - eval flag=\"$thread_safe_flag_spec\" - linker_flags="$linker_flags $flag" - fi - - # Make a backup of the uninstalled library when relinking - if test "$mode" = relink; then - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? - fi - - # Do each of the archive commands. - if test "$module" = yes && test -n "$module_cmds" ; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - eval test_cmds=\"$module_expsym_cmds\" - cmds=$module_expsym_cmds - else - eval test_cmds=\"$module_cmds\" - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - eval test_cmds=\"$archive_expsym_cmds\" - cmds=$archive_expsym_cmds - else - eval test_cmds=\"$archive_cmds\" - cmds=$archive_cmds - fi - fi - - if test "X$skipped_export" != "X:" && - func_len " $test_cmds" && - len=$func_len_result && - test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - : - else - # The command line is too long to link in one step, link piecewise - # or, if using GNU ld and skipped_export is not :, use a linker - # script. - - # Save the value of $output and $libobjs because we want to - # use them later. If we have whole_archive_flag_spec, we - # want to use save_libobjs as it was before - # whole_archive_flag_spec was expanded, because we can't - # assume the linker understands whole_archive_flag_spec. - # This may have to be revisited, in case too many - # convenience libraries get linked in and end up exceeding - # the spec. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - fi - save_output=$output - output_la=`$ECHO "X$output" | $Xsed -e "$basename"` - - # Clear the reloadable object creation command queue and - # initialize k to one. - test_cmds= - concat_cmds= - objlist= - last_robj= - k=1 - - if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then - output=${output_objdir}/${output_la}.lnkscript - func_verbose "creating GNU ld script: $output" - $ECHO 'INPUT (' > $output - for obj in $save_libobjs - do - $ECHO "$obj" >> $output - done - $ECHO ')' >> $output - delfiles="$delfiles $output" - elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then - output=${output_objdir}/${output_la}.lnk - func_verbose "creating linker input file list: $output" - : > $output - set x $save_libobjs - shift - firstobj= - if test "$compiler_needs_object" = yes; then - firstobj="$1 " - shift - fi - for obj - do - $ECHO "$obj" >> $output - done - delfiles="$delfiles $output" - output=$firstobj\"$file_list_spec$output\" - else - if test -n "$save_libobjs"; then - func_verbose "creating reloadable object files..." - output=$output_objdir/$output_la-${k}.$objext - eval test_cmds=\"$reload_cmds\" - func_len " $test_cmds" - len0=$func_len_result - len=$len0 - - # Loop over the list of objects to be linked. - for obj in $save_libobjs - do - func_len " $obj" - func_arith $len + $func_len_result - len=$func_arith_result - if test "X$objlist" = X || - test "$len" -lt "$max_cmd_len"; then - func_append objlist " $obj" - else - # The command $test_cmds is almost too long, add a - # command to the queue. - if test "$k" -eq 1 ; then - # The first file doesn't have a previous command to add. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\" - else - # All subsequent reloadable object files will link in - # the last one created. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" - fi - last_robj=$output_objdir/$output_la-${k}.$objext - func_arith $k + 1 - k=$func_arith_result - output=$output_objdir/$output_la-${k}.$objext - objlist=$obj - func_len " $last_robj" - func_arith $len0 + $func_len_result - len=$func_arith_result - fi - done - # Handle the remaining objects by creating one last - # reloadable object file. All subsequent reloadable object - # files will link in the last one created. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" - if test -n "$last_robj"; then - eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" - fi - delfiles="$delfiles $output" - - else - output= - fi - - if ${skipped_export-false}; then - func_verbose "generating symbol list for \`$libname.la'" - export_symbols="$output_objdir/$libname.exp" - $opt_dry_run || $RM $export_symbols - libobjs=$output - # Append the command to create the export file. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" - if test -n "$last_robj"; then - eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" - fi - fi - - test -n "$save_libobjs" && - func_verbose "creating a temporary reloadable object file: $output" - - # Loop through the commands generated above and execute them. - save_ifs="$IFS"; IFS='~' - for cmd in $concat_cmds; do - IFS="$save_ifs" - $opt_silent || { - func_quote_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_result" - } - $opt_dry_run || eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - ( cd "$output_objdir" && \ - $RM "${realname}T" && \ - $MV "${realname}U" "$realname" ) - fi - - exit $lt_exit - } - done - IFS="$save_ifs" - - if test -n "$export_symbols_regex" && ${skipped_export-false}; then - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - func_show_eval '$MV "${export_symbols}T" "$export_symbols"' - fi - fi - - if ${skipped_export-false}; then - if test -n "$export_symbols" && test -n "$include_expsyms"; then - tmp_export_symbols="$export_symbols" - test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' - fi - - if test -n "$orig_export_symbols"; then - # The given exports_symbols file has to be filtered, so filter it. - func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" - # FIXME: $output_objdir/$libname.filter potentially contains lots of - # 's' commands which not all seds can handle. GNU sed should be fine - # though. Also, the filter scales superlinearly with the number of - # global variables. join(1) would be nice here, but unfortunately - # isn't a blessed tool. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" - export_symbols=$output_objdir/$libname.def - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols - fi - fi - - libobjs=$output - # Restore the value of output. - output=$save_output - - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - test "X$libobjs" = "X " && libobjs= - fi - # Expand the library linking commands again to reset the - # value of $libobjs for piecewise linking. - - # Do each of the archive commands. - if test "$module" = yes && test -n "$module_cmds" ; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - cmds=$module_expsym_cmds - else - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - cmds=$archive_expsym_cmds - else - cmds=$archive_cmds - fi - fi - fi - - if test -n "$delfiles"; then - # Append the command to remove temporary files to $cmds. - eval cmds=\"\$cmds~\$RM $delfiles\" - fi - - # Add any objects from preloaded convenience libraries - if test -n "$dlprefiles"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $dlprefiles - libobjs="$libobjs $func_extract_archives_result" - test "X$libobjs" = "X " && libobjs= - fi - - save_ifs="$IFS"; IFS='~' - for cmd in $cmds; do - IFS="$save_ifs" - eval cmd=\"$cmd\" - $opt_silent || { - func_quote_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_result" - } - $opt_dry_run || eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - ( cd "$output_objdir" && \ - $RM "${realname}T" && \ - $MV "${realname}U" "$realname" ) - fi - - exit $lt_exit - } - done - IFS="$save_ifs" - - # Restore the uninstalled library and exit - if test "$mode" = relink; then - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? - - if test -n "$convenience"; then - if test -z "$whole_archive_flag_spec"; then - func_show_eval '${RM}r "$gentop"' - fi - fi - - exit $EXIT_SUCCESS - fi - - # Create links to the real library. - for linkname in $linknames; do - if test "$realname" != "$linkname"; then - func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' - fi - done - - # If -module or -export-dynamic was specified, set the dlname. - if test "$module" = yes || test "$export_dynamic" = yes; then - # On all known operating systems, these are identical. - dlname="$soname" - fi - fi - ;; - - obj) - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then - func_warning "\`-dlopen' is ignored for objects" - fi - - case " $deplibs" in - *\ -l* | *\ -L*) - func_warning "\`-l' and \`-L' are ignored for objects" ;; - esac - - test -n "$rpath" && \ - func_warning "\`-rpath' is ignored for objects" - - test -n "$xrpath" && \ - func_warning "\`-R' is ignored for objects" - - test -n "$vinfo" && \ - func_warning "\`-version-info' is ignored for objects" - - test -n "$release" && \ - func_warning "\`-release' is ignored for objects" - - case $output in - *.lo) - test -n "$objs$old_deplibs" && \ - func_fatal_error "cannot build library object \`$output' from non-libtool objects" - - libobj=$output - func_lo2o "$libobj" - obj=$func_lo2o_result - ;; - *) - libobj= - obj="$output" - ;; - esac - - # Delete the old objects. - $opt_dry_run || $RM $obj $libobj - - # Objects from convenience libraries. This assumes - # single-version convenience libraries. Whenever we create - # different ones for PIC/non-PIC, this we'll have to duplicate - # the extraction. - reload_conv_objs= - gentop= - # reload_cmds runs $LD directly, so let us get rid of - # -Wl from whole_archive_flag_spec and hope we can get by with - # turning comma into space.. - wl= - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" - reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` - else - gentop="$output_objdir/${obj}x" - generated="$generated $gentop" - - func_extract_archives $gentop $convenience - reload_conv_objs="$reload_objs $func_extract_archives_result" - fi - fi - - # Create the old-style object. - reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test - - output="$obj" - func_execute_cmds "$reload_cmds" 'exit $?' - - # Exit if we aren't doing a library object file. - if test -z "$libobj"; then - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - exit $EXIT_SUCCESS - fi - - if test "$build_libtool_libs" != yes; then - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - # Create an invalid libtool object if no PIC, so that we don't - # accidentally link it into a program. - # $show "echo timestamp > $libobj" - # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? - exit $EXIT_SUCCESS - fi - - if test -n "$pic_flag" || test "$pic_mode" != default; then - # Only do commands if we really have different PIC objects. - reload_objs="$libobjs $reload_conv_objs" - output="$libobj" - func_execute_cmds "$reload_cmds" 'exit $?' - fi - - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - exit $EXIT_SUCCESS - ;; - - prog) - case $host in - *cygwin*) func_stripname '' '.exe' "$output" - output=$func_stripname_result.exe;; - esac - test -n "$vinfo" && \ - func_warning "\`-version-info' is ignored for programs" - - test -n "$release" && \ - func_warning "\`-release' is ignored for programs" - - test "$preload" = yes \ - && test "$dlopen_support" = unknown \ - && test "$dlopen_self" = unknown \ - && test "$dlopen_self_static" = unknown && \ - func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` - ;; - esac - - case $host in - *-*-darwin*) - # Don't allow lazy linking, it breaks C++ global constructors - # But is supposedly fixed on 10.4 or later (yay!). - if test "$tagname" = CXX ; then - case ${MACOSX_DEPLOYMENT_TARGET-10.0} in - 10.[0123]) - compile_command="$compile_command ${wl}-bind_at_load" - finalize_command="$finalize_command ${wl}-bind_at_load" - ;; - esac - fi - # Time to change all our "foo.ltframework" stuff back to "-framework foo" - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` - ;; - esac - - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $compile_deplibs " in - *" -L$path/$objdir "*) - new_libs="$new_libs -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $compile_deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$new_libs $deplib" ;; - esac - ;; - *) new_libs="$new_libs $deplib" ;; - esac - done - compile_deplibs="$new_libs" - - - compile_command="$compile_command $compile_deplibs" - finalize_command="$finalize_command $finalize_deplibs" - - if test -n "$rpath$xrpath"; then - # If the user specified any rpath flags, then add them. - for libdir in $rpath $xrpath; do - # This is the magic to use -rpath. - case "$finalize_rpath " in - *" $libdir "*) ;; - *) finalize_rpath="$finalize_rpath $libdir" ;; - esac - done - fi - - # Now hardcode the library paths - rpath= - hardcode_libdirs= - for libdir in $compile_rpath $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) perm_rpath="$perm_rpath $libdir" ;; - esac - fi - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$libdir:"*) ;; - ::) dllsearchpath=$libdir;; - *) dllsearchpath="$dllsearchpath:$libdir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - ::) dllsearchpath=$testbindir;; - *) dllsearchpath="$dllsearchpath:$testbindir";; - esac - ;; - esac - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - compile_rpath="$rpath" - - rpath= - hardcode_libdirs= - for libdir in $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs="$libdir" - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - rpath="$rpath $flag" - fi - elif test -n "$runpath_var"; then - case "$finalize_perm_rpath " in - *" $libdir "*) ;; - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir="$hardcode_libdirs" - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - finalize_rpath="$rpath" - - if test -n "$libobjs" && test "$build_old_libs" = yes; then - # Transform all the library objects into standard objects. - compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` - fi - - func_generate_dlsyms "$outputname" "@PROGRAM@" "no" - - # template prelinking step - if test -n "$prelink_cmds"; then - func_execute_cmds "$prelink_cmds" 'exit $?' - fi - - wrappers_required=yes - case $host in - *cygwin* | *mingw* ) - if test "$build_libtool_libs" != yes; then - wrappers_required=no - fi - ;; - *cegcc) - # Disable wrappers for cegcc, we are cross compiling anyway. - wrappers_required=no - ;; - *) - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then - wrappers_required=no - fi - ;; - esac - if test "$wrappers_required" = no; then - # Replace the output file specification. - compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` - link_command="$compile_command$compile_rpath" - - # We have no uninstalled library dependencies, so finalize right now. - exit_status=0 - func_show_eval "$link_command" 'exit_status=$?' - - # Delete the generated files. - if test -f "$output_objdir/${outputname}S.${objext}"; then - func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' - fi - - exit $exit_status - fi - - if test -n "$compile_shlibpath$finalize_shlibpath"; then - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" - fi - if test -n "$finalize_shlibpath"; then - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" - fi - - compile_var= - finalize_var= - if test -n "$runpath_var"; then - if test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - rpath="$rpath$dir:" - done - compile_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - if test -n "$finalize_perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $finalize_perm_rpath; do - rpath="$rpath$dir:" - done - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - fi - - if test "$no_install" = yes; then - # We don't need to create a wrapper script. - link_command="$compile_var$compile_command$compile_rpath" - # Replace the output file specification. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` - # Delete the old output file. - $opt_dry_run || $RM $output - # Link the executable and exit - func_show_eval "$link_command" 'exit $?' - exit $EXIT_SUCCESS - fi - - if test "$hardcode_action" = relink; then - # Fast installation is not supported - link_command="$compile_var$compile_command$compile_rpath" - relink_command="$finalize_var$finalize_command$finalize_rpath" - - func_warning "this platform does not like uninstalled shared libraries" - func_warning "\`$output' will be relinked during installation" - else - if test "$fast_install" != no; then - link_command="$finalize_var$compile_command$finalize_rpath" - if test "$fast_install" = yes; then - relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` - else - # fast_install is set to needless - relink_command= - fi - else - link_command="$compile_var$compile_command$compile_rpath" - relink_command="$finalize_var$finalize_command$finalize_rpath" - fi - fi - - # Replace the output file specification. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` - - # Delete the old output files. - $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname - - func_show_eval "$link_command" 'exit $?' - - # Now create the wrapper script. - func_verbose "creating $output" - - # Quote the relink command for shipping. - if test -n "$relink_command"; then - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - func_quote_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" - fi - done - relink_command="(cd `pwd`; $relink_command)" - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` - fi - - # Quote $ECHO for shipping. - if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then - case $progpath in - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; - esac - qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` - else - qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` - fi - - # Only actually do things if not in dry run mode. - $opt_dry_run || { - # win32 will think the script is a binary if it has - # a .exe suffix, so we strip it off here. - case $output in - *.exe) func_stripname '' '.exe' "$output" - output=$func_stripname_result ;; - esac - # test for cygwin because mv fails w/o .exe extensions - case $host in - *cygwin*) - exeext=.exe - func_stripname '' '.exe' "$outputname" - outputname=$func_stripname_result ;; - *) exeext= ;; - esac - case $host in - *cygwin* | *mingw* ) - func_dirname_and_basename "$output" "" "." - output_name=$func_basename_result - output_path=$func_dirname_result - cwrappersource="$output_path/$objdir/lt-$output_name.c" - cwrapper="$output_path/$output_name.exe" - $RM $cwrappersource $cwrapper - trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 - - func_emit_cwrapperexe_src > $cwrappersource - - # The wrapper executable is built using the $host compiler, - # because it contains $host paths and files. If cross- - # compiling, it, like the target executable, must be - # executed on the $host or under an emulation environment. - $opt_dry_run || { - $LTCC $LTCFLAGS -o $cwrapper $cwrappersource - $STRIP $cwrapper - } - - # Now, create the wrapper script for func_source use: - func_ltwrapper_scriptname $cwrapper - $RM $func_ltwrapper_scriptname_result - trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 - $opt_dry_run || { - # note: this script will not be executed, so do not chmod. - if test "x$build" = "x$host" ; then - $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result - else - func_emit_wrapper no > $func_ltwrapper_scriptname_result - fi - } - ;; - * ) - $RM $output - trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 - - func_emit_wrapper no > $output - chmod +x $output - ;; - esac - } - exit $EXIT_SUCCESS - ;; - esac - - # See if we need to build an old-fashioned archive. - for oldlib in $oldlibs; do - - if test "$build_libtool_libs" = convenience; then - oldobjs="$libobjs_save $symfileobj" - addlibs="$convenience" - build_libtool_libs=no - else - if test "$build_libtool_libs" = module; then - oldobjs="$libobjs_save" - build_libtool_libs=no - else - oldobjs="$old_deplibs $non_pic_objects" - if test "$preload" = yes && test -f "$symfileobj"; then - oldobjs="$oldobjs $symfileobj" - fi - fi - addlibs="$old_convenience" - fi - - if test -n "$addlibs"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $addlibs - oldobjs="$oldobjs $func_extract_archives_result" - fi - - # Do each command in the archive commands. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then - cmds=$old_archive_from_new_cmds - else - - # Add any objects from preloaded convenience libraries - if test -n "$dlprefiles"; then - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - - func_extract_archives $gentop $dlprefiles - oldobjs="$oldobjs $func_extract_archives_result" - fi - - # POSIX demands no paths to be encoded in archives. We have - # to avoid creating archives with duplicate basenames if we - # might have to extract them afterwards, e.g., when creating a - # static archive out of a convenience library, or when linking - # the entirety of a libtool archive into another (currently - # not supported by libtool). - if (for obj in $oldobjs - do - func_basename "$obj" - $ECHO "$func_basename_result" - done | sort | sort -uc >/dev/null 2>&1); then - : - else - $ECHO "copying selected object files to avoid basename conflicts..." - gentop="$output_objdir/${outputname}x" - generated="$generated $gentop" - func_mkdir_p "$gentop" - save_oldobjs=$oldobjs - oldobjs= - counter=1 - for obj in $save_oldobjs - do - func_basename "$obj" - objbase="$func_basename_result" - case " $oldobjs " in - " ") oldobjs=$obj ;; - *[\ /]"$objbase "*) - while :; do - # Make sure we don't pick an alternate name that also - # overlaps. - newobj=lt$counter-$objbase - func_arith $counter + 1 - counter=$func_arith_result - case " $oldobjs " in - *[\ /]"$newobj "*) ;; - *) if test ! -f "$gentop/$newobj"; then break; fi ;; - esac - done - func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" - oldobjs="$oldobjs $gentop/$newobj" - ;; - *) oldobjs="$oldobjs $obj" ;; - esac - done - fi - eval cmds=\"$old_archive_cmds\" - - func_len " $cmds" - len=$func_len_result - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - cmds=$old_archive_cmds - else - # the command line is too long to link in one step, link in parts - func_verbose "using piecewise archive linking..." - save_RANLIB=$RANLIB - RANLIB=: - objlist= - concat_cmds= - save_oldobjs=$oldobjs - oldobjs= - # Is there a better way of finding the last object in the list? - for obj in $save_oldobjs - do - last_oldobj=$obj - done - eval test_cmds=\"$old_archive_cmds\" - func_len " $test_cmds" - len0=$func_len_result - len=$len0 - for obj in $save_oldobjs - do - func_len " $obj" - func_arith $len + $func_len_result - len=$func_arith_result - func_append objlist " $obj" - if test "$len" -lt "$max_cmd_len"; then - : - else - # the above command should be used before it gets too long - oldobjs=$objlist - if test "$obj" = "$last_oldobj" ; then - RANLIB=$save_RANLIB - fi - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" - objlist= - len=$len0 - fi - done - RANLIB=$save_RANLIB - oldobjs=$objlist - if test "X$oldobjs" = "X" ; then - eval cmds=\"\$concat_cmds\" - else - eval cmds=\"\$concat_cmds~\$old_archive_cmds\" - fi - fi - fi - func_execute_cmds "$cmds" 'exit $?' - done - - test -n "$generated" && \ - func_show_eval "${RM}r$generated" - - # Now create the libtool archive. - case $output in - *.la) - old_library= - test "$build_old_libs" = yes && old_library="$libname.$libext" - func_verbose "creating $output" - - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - func_quote_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" - fi - done - # Quote the link command for shipping. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` - if test "$hardcode_automatic" = yes ; then - relink_command= - fi - - # Only create the output if not a dry run. - $opt_dry_run || { - for installed in no yes; do - if test "$installed" = yes; then - if test -z "$install_libdir"; then - break - fi - output="$output_objdir/$outputname"i - # Replace all uninstalled libtool libraries with the installed ones - newdependency_libs= - for deplib in $dependency_libs; do - case $deplib in - *.la) - func_basename "$deplib" - name="$func_basename_result" - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - test -z "$libdir" && \ - func_fatal_error "\`$deplib' is not a valid libtool archive" - newdependency_libs="$newdependency_libs $libdir/$name" - ;; - *) newdependency_libs="$newdependency_libs $deplib" ;; - esac - done - dependency_libs="$newdependency_libs" - newdlfiles= - - for lib in $dlfiles; do - case $lib in - *.la) - func_basename "$lib" - name="$func_basename_result" - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - test -z "$libdir" && \ - func_fatal_error "\`$lib' is not a valid libtool archive" - newdlfiles="$newdlfiles $libdir/$name" - ;; - *) newdlfiles="$newdlfiles $lib" ;; - esac - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - *.la) - # Only pass preopened files to the pseudo-archive (for - # eventual linking with the app. that links it) if we - # didn't already link the preopened objects directly into - # the library: - func_basename "$lib" - name="$func_basename_result" - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - test -z "$libdir" && \ - func_fatal_error "\`$lib' is not a valid libtool archive" - newdlprefiles="$newdlprefiles $libdir/$name" - ;; - esac - done - dlprefiles="$newdlprefiles" - else - newdlfiles= - for lib in $dlfiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - newdlfiles="$newdlfiles $abs" - done - dlfiles="$newdlfiles" - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; - *) abs=`pwd`"/$lib" ;; - esac - newdlprefiles="$newdlprefiles $abs" - done - dlprefiles="$newdlprefiles" - fi - $RM $output - # place dlname in correct position for cygwin - tdlname=$dlname - case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; - esac - $ECHO > $output "\ -# $outputname - a libtool library file -# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='$tdlname' - -# Names of this library. -library_names='$library_names' - -# The name of the static archive. -old_library='$old_library' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='$new_inherited_linker_flags' - -# Libraries that this one depends upon. -dependency_libs='$dependency_libs' - -# Names of additional weak libraries provided by this library -weak_library_names='$weak_libs' - -# Version information for $libname. -current=$current -age=$age -revision=$revision - -# Is this an already installed library? -installed=$installed - -# Should we warn about portability when linking against -modules? -shouldnotlink=$module - -# Files to dlopen/dlpreopen -dlopen='$dlfiles' -dlpreopen='$dlprefiles' - -# Directory that this library needs to be installed in: -libdir='$install_libdir'" - if test "$installed" = no && test "$need_relink" = yes; then - $ECHO >> $output "\ -relink_command=\"$relink_command\"" - fi - done - } - - # Do a symbolic link so that the libtool archive can be found in - # LD_LIBRARY_PATH before the program is installed. - func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' - ;; - esac - exit $EXIT_SUCCESS -} - -{ test "$mode" = link || test "$mode" = relink; } && - func_mode_link ${1+"$@"} - - -# func_mode_uninstall arg... -func_mode_uninstall () -{ - $opt_debug - RM="$nonopt" - files= - rmforce= - exit_status=0 - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic="$magic" - - for arg - do - case $arg in - -f) RM="$RM $arg"; rmforce=yes ;; - -*) RM="$RM $arg" ;; - *) files="$files $arg" ;; - esac - done - - test -z "$RM" && \ - func_fatal_help "you must specify an RM program" - - rmdirs= - - origobjdir="$objdir" - for file in $files; do - func_dirname "$file" "" "." - dir="$func_dirname_result" - if test "X$dir" = X.; then - objdir="$origobjdir" - else - objdir="$dir/$origobjdir" - fi - func_basename "$file" - name="$func_basename_result" - test "$mode" = uninstall && objdir="$dir" - - # Remember objdir for removal later, being careful to avoid duplicates - if test "$mode" = clean; then - case " $rmdirs " in - *" $objdir "*) ;; - *) rmdirs="$rmdirs $objdir" ;; - esac - fi - - # Don't error if the file doesn't exist and rm -f was used. - if { test -L "$file"; } >/dev/null 2>&1 || - { test -h "$file"; } >/dev/null 2>&1 || - test -f "$file"; then - : - elif test -d "$file"; then - exit_status=1 - continue - elif test "$rmforce" = yes; then - continue - fi - - rmfiles="$file" - - case $name in - *.la) - # Possibly a libtool archive, so verify it. - if func_lalib_p "$file"; then - func_source $dir/$name - - # Delete the libtool libraries and symlinks. - for n in $library_names; do - rmfiles="$rmfiles $objdir/$n" - done - test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" - - case "$mode" in - clean) - case " $library_names " in - # " " in the beginning catches empty $dlname - *" $dlname "*) ;; - *) rmfiles="$rmfiles $objdir/$dlname" ;; - esac - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" - ;; - uninstall) - if test -n "$library_names"; then - # Do each command in the postuninstall commands. - func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' - fi - - if test -n "$old_library"; then - # Do each command in the old_postuninstall commands. - func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' - fi - # FIXME: should reinstall the best remaining shared library. - ;; - esac - fi - ;; - - *.lo) - # Possibly a libtool object, so verify it. - if func_lalib_p "$file"; then - - # Read the .lo file - func_source $dir/$name - - # Add PIC object to the list of files to remove. - if test -n "$pic_object" && - test "$pic_object" != none; then - rmfiles="$rmfiles $dir/$pic_object" - fi - - # Add non-PIC object to the list of files to remove. - if test -n "$non_pic_object" && - test "$non_pic_object" != none; then - rmfiles="$rmfiles $dir/$non_pic_object" - fi - fi - ;; - - *) - if test "$mode" = clean ; then - noexename=$name - case $file in - *.exe) - func_stripname '' '.exe' "$file" - file=$func_stripname_result - func_stripname '' '.exe' "$name" - noexename=$func_stripname_result - # $file with .exe has already been added to rmfiles, - # add $file without .exe - rmfiles="$rmfiles $file" - ;; - esac - # Do a test to see if this is a libtool program. - if func_ltwrapper_p "$file"; then - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - relink_command= - func_source $func_ltwrapper_scriptname_result - rmfiles="$rmfiles $func_ltwrapper_scriptname_result" - else - relink_command= - func_source $dir/$noexename - fi - - # note $name still contains .exe if it was in $file originally - # as does the version of $file that was added into $rmfiles - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" - if test "$fast_install" = yes && test -n "$relink_command"; then - rmfiles="$rmfiles $objdir/lt-$name" - fi - if test "X$noexename" != "X$name" ; then - rmfiles="$rmfiles $objdir/lt-${noexename}.c" - fi - fi - fi - ;; - esac - func_show_eval "$RM $rmfiles" 'exit_status=1' - done - objdir="$origobjdir" - - # Try to remove the ${objdir}s in the directories where we deleted files - for dir in $rmdirs; do - if test -d "$dir"; then - func_show_eval "rmdir $dir >/dev/null 2>&1" - fi - done - - exit $exit_status -} - -{ test "$mode" = uninstall || test "$mode" = clean; } && - func_mode_uninstall ${1+"$@"} - -test -z "$mode" && { - help="$generic_help" - func_fatal_help "you must specify a MODE" -} - -test -z "$exec_cmd" && \ - func_fatal_help "invalid operation mode \`$mode'" - -if test -n "$exec_cmd"; then - eval exec "$exec_cmd" - exit $EXIT_FAILURE -fi - -exit $exit_status - - -# The TAGs below are defined such that we never get into a situation -# in which we disable both kinds of libraries. Given conflicting -# choices, we go for a static library, that is the most portable, -# since we can't tell whether shared libraries were disabled because -# the user asked for that or because the platform doesn't support -# them. This is particularly important on AIX, because we don't -# support having both static and shared libraries enabled at the same -# time on that platform, so we default to a shared-only configuration. -# If a disable-shared tag is given, we'll fallback to a static-only -# configuration. But we'll never go from static-only to shared-only. - -# ### BEGIN LIBTOOL TAG CONFIG: disable-shared -build_libtool_libs=no -build_old_libs=yes -# ### END LIBTOOL TAG CONFIG: disable-shared - -# ### BEGIN LIBTOOL TAG CONFIG: disable-static -build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` -# ### END LIBTOOL TAG CONFIG: disable-static - -# Local Variables: -# mode:shell-script -# sh-indentation:2 -# End: -# vi:sw=2 - diff --git a/alliance/src/lvx/src/Makefile.am b/alliance/src/lvx/src/Makefile.am index e51e847a..07c8cbf7 100644 --- a/alliance/src/lvx/src/Makefile.am +++ b/alliance/src/lvx/src/Makefile.am @@ -4,23 +4,7 @@ bin_PROGRAMS = lvx AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src lvx_LDADD = @ALLIANCE_LIBS@ \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdlg/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ - -lMlu \ - -lMcl \ - -lMal \ - -lMsl \ - -lMel -lMgl \ - -lMhl \ - -lMvg \ - -lMlo \ - -lMut \ - -lRcn + -L$(top_srcdir)/mbk/src \ + -lMlu -lMlo -lMut -lRcn lvx_SOURCES = lvx.c diff --git a/alliance/src/lynx/src/Makefile.am b/alliance/src/lynx/src/Makefile.am index 64803a85..616b2302 100644 --- a/alliance/src/lynx/src/Makefile.am +++ b/alliance/src/lynx/src/Makefile.am @@ -1,56 +1,28 @@ ## Process this file with automake to produce Makefile.in -bin_PROGRAMS = cougar flatrds +bin_PROGRAMS = cougar flatrds -AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src \ --I$(top_srcdir)/rds/src +AM_CFLAGS = @ALLIANCE_CFLAGS@ \ + -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/rds/src -cougar_LDADD = @ALLIANCE_LIBS@ \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdl/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ --L$(top_srcdir)/rds/src \ --L$(top_srcdir)/rdscif/src \ --L$(top_srcdir)/rdsgds/src \ - -lRtl -lRgs -lRcf -lRfm -lRpr -lRwi -lRut -lRds \ - -lMlu -lMpu -lMap -lMmg -lMcp -lMcl -lMel \ - -lMhl -lMvl -lMlo -lMph -lMut -lMal -lRcn \ - -lMsl -lMgl +cougar_LDADD = @ALLIANCE_LIBS@ \ + -L$(top_srcdir)/mbk/src \ + -L$(top_srcdir)/rds/src \ + -lRds -lMlu -lMpu -lMlo -lMph -lMut -flatrds_LDADD = @ALLIANCE_LIBS@ \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdl/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ --L$(top_srcdir)/rds/src \ --L$(top_srcdir)/rdscif/src \ --L$(top_srcdir)/rdsgds/src \ - -lRtl -lRgs -lRcf -lRfm -lRpr -lRwi -lRut -lRds \ - -lMlu -lMpu -lMap -lMmg -lMcp -lMcl -lMel \ - -lMhl -lMvl -lMlo -lMph -lMut -lMal -lRcn \ - -lMsl -lMgl +flatrds_LDADD = @ALLIANCE_LIBS@ \ + -L$(top_srcdir)/mbk/src \ + -L$(top_srcdir)/rds/src \ + -lRds -lMlu -lMpu -lMlo -lMph -lMut flatrds_SOURCES = flatrds.c -cougar_SOURCES = \ -addlynxrcn.c addlynxrcn.h box.c box.h buildrcn.c \ -buildrcn.h bulk.c bulk.h chklynxrcn.c chklynxrcn.h \ -cutelbow.c cutelbow.h diffusion.c diffusion.h error.c \ -error.h extract.c extract.h hole.c \ -hole.h inter.c inter.h interval.c interval.h \ -lynx.c lynx.h lynxrcn.h mbkrds.c mbkrds.h netlist.c \ -netlist.h parse.c parse.h pattern.c pattern.h via.h \ -Windows95.c Windows95.h znc.c znc.h +cougar_SOURCES = addlynxrcn.c addlynxrcn.h box.c box.h buildrcn.c \ + buildrcn.h bulk.c bulk.h chklynxrcn.c chklynxrcn.h \ + cutelbow.c cutelbow.h diffusion.c diffusion.h error.c \ + error.h extract.c extract.h hole.c \ + hole.h inter.c inter.h interval.c interval.h \ + lynx.c lynx.h lynxrcn.h mbkrds.c mbkrds.h netlist.c \ + netlist.h parse.c parse.h pattern.c pattern.h via.h \ + Windows95.c Windows95.h znc.c znc.h diff --git a/alliance/src/m2e/src/Makefile.am b/alliance/src/m2e/src/Makefile.am index dd2f110e..969bc1a7 100644 --- a/alliance/src/m2e/src/Makefile.am +++ b/alliance/src/m2e/src/Makefile.am @@ -2,32 +2,10 @@ AM_CFLAGS = -g -I$(top_srcdir)/mbk/src - bin_PROGRAMS = m2e -m2e_LDADD = \ --L$(top_builddir)/mbk/src \ --L$(top_builddir)/mbkal/src \ --L$(top_builddir)/mbkap/src \ --L$(top_builddir)/mbkedif/src \ --L$(top_builddir)/mbkhilo/src \ --L$(top_builddir)/mbkmg/src \ --L$(top_builddir)/mbkspice/src \ --L$(top_builddir)/mbkvhdlg/src \ --L$(top_builddir)/mbkvrlog/src \ --L$(top_builddir)/mbkvti/src \ --lMpu -lMlu \ - -lMcl -lMcp \ - -lMal -lMap \ - -lMsl \ - -lMel -lMgl \ - -lMhl \ - -lMvg \ - -lMmg \ - -lMlo \ - -lMph -lMut \ - -lRcn -lm - +m2e_LDADD = -L$(top_builddir)/mbk/src \ + -lMpu -lMlu -lMlo -lMph -lMut -lRcn -lm m2e_SOURCES = m2e.c m2e.h diff --git a/alliance/src/mbk/configure.in b/alliance/src/mbk/configure.in index 4a120ad9..f69a2a02 100644 --- a/alliance/src/mbk/configure.in +++ b/alliance/src/mbk/configure.in @@ -52,6 +52,8 @@ AC_CHECK_HEADERS(fcntl.h malloc.h strings.h sys/time.h unistd.h) AC_C_CONST AC_TYPE_SIGNAL AC_FUNC_VFORK +AC_PROG_YACC +AC_PROG_LEX dnl AM_PROG_LIBTOOL AM_PROG_LIBTOOL diff --git a/alliance/src/mbk/src/Makefile.am b/alliance/src/mbk/src/Makefile.am index 1f0ae61b..38303415 100644 --- a/alliance/src/mbk/src/Makefile.am +++ b/alliance/src/mbk/src/Makefile.am @@ -1,12 +1,32 @@ -AM_CFLAGS = +AM_CFLAGS = -DTECHNO=\"symbolic_cmos\" +YFLAGS = -d -lib_LTLIBRARIES = libMph.la libMpu.la libMlo.la libMlu.la libMut.la libRcn.la -include_HEADERS = mlu.h mlo.h mpu.h mph.h mut.h rcn.h +lib_LTLIBRARIES = libMut.la libMph.la libMpu.la libRcn.la libMlo.la libMlu.la +include_HEADERS = mlu.h mlo.h mpu.h mph.h mut.h rcn.h msl.h libMph_la_SOURCES = mbk_ph.c mbk_ph.h -libMpu_la_SOURCES = mbk_ph_util.c mbk_ph_util.h +libMpu_la_SOURCES = mbk_ph_util.c mbk_ph_util.h \ + alc_driv_p.c alc_pars_p.c map.h \ + drive_vti_p.c drive_vti_p.h parse_vti_p.c mcp.h \ + mbk2mg.c mg2mbk_y.y mg2mbk_l.l mmg.h libMlo_la_SOURCES = mbk_lo.c mbk_lo.h -libMlu_la_SOURCES = mbk_lo_util.c mbk_lo_util.h +libMlu_la_SOURCES = mbk_lo_util.c mbk_lo_util.h \ + alc_driv_l.c alc_pars_l.c alc_pars_l6.c mal.h \ + drive_vti_l.c drive_vti_l.h parse_vti_l.c \ + spi_drive.c spi_drive.h spi_global.c spi_global.h \ + spi_hash.c spi_hash.h spi_int.c spi_int.h spi_msg.c \ + spi_msg.h spi_parse.c spi_parse.h msl.h \ + time.c driver.c parser_y.y parser_l.l \ + drive_hilo.c \ + mvl_drive.c mvl_parse.c mvl_util.c mvl_sspec.c \ + mvl_scomp_y.y mvl_scomp_l.l \ + mvl_drive.h mvl_parse.h mvl_scomp_y.h mvl_slex.h \ + mvl_sspec.h mvl_stdef.h mvl_stype.h mvl_syacc.h \ + mvl_utdef.h mvl_util.h mvl_utype.h \ + vel_chain.c vel_sort.c vel_vect.c vel_drive.c vel_o.c vel_util.c vel_velo.h \ + gen_generic.c gen_generic.h gen_print.c \ + drive_vlog.c + libMut_la_SOURCES = mbk_sys.c mbk_sys.h mbk_util.c mbk_util.h libRcn_la_SOURCES = rcn_lo.c rcn_lo.h rcn_lo_util.c @@ -16,3 +36,35 @@ libMlo_la_LDFLAGS = -version-info @MBK_DLL_VERSION@ libMlu_la_LDFLAGS = -version-info @MBK_DLL_VERSION@ libMut_la_LDFLAGS = -version-info @MBK_DLL_VERSION@ libRcn_la_LDFLAGS = -version-info @MBK_DLL_VERSION@ + +libMph_la_LIBADD = libMut.la +libMpu_la_LIBADD = libMut.la libMph.la +libMlo_la_LIBADD = libMut.la libRcn.la +libMlu_la_LIBADD = libMut.la libMlo.la +libMut_la_LIBADD = +libRcn_la_LIBADD = libMut.la + +CLEANFILES = mg2mbk_y.c mg2mbk_y.h mg2mbk_l.c \ + parser_y.c parser_y.h parser_l.c \ + mvl_scomp_y.c mvl_scomp_y.h mvl_scomp_l.c + +mg2mbk_y.c mg2mbk_y.h : $(srcdir)/mg2mbk_y.y + $(YACC) $(YFLAGS) $(srcdir)/mg2mbk_y.y && \ + sed -e "s/yy/mgn/g" -e "s/YY/MGN/g" y.tab.c > mg2mbk_y.c && \ + sed -e "s/yy/mgn/g" -e "s/YY/MGN/g" y.tab.h > mg2mbk_y.h +mg2mbk_l.c : $(srcdir)/mg2mbk_l.l mg2mbk_y.h + $(LEX) -t $(srcdir)/mg2mbk_l.l | sed -e "s/yy/mgn/g" -e "s/YY/MGN/g" > mg2mbk_l.c + +parser_y.c parser_y.h : $(srcdir)/parser_y.y + $(YACC) $(YFLAGS) $(srcdir)/parser_y.y && \ + sed -e "s/yy/edif/g" -e "s/YY/EDIF/g" y.tab.c > parser_y.c && \ + sed -e "s/yy/edif/g" -e "s/YY/EDIF/g" y.tab.h > parser_y.h +parser_l.c : $(srcdir)/parser_l.l parser_y.h + $(LEX) -t $(srcdir)/parser_l.l | sed -e "s/yy/edif/g" -e "s/YY/EDIF/g" > parser_l.c + +mvl_scomp_y.c mvl_scomp_y.h : $(srcdir)/mvl_scomp_y.y + $(YACC) $(YFLAGS) $(srcdir)/mvl_scomp_y.y && \ + sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" y.tab.c > mvl_scomp_y.c && \ + sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" y.tab.h > mvl_scomp_y.h +mvl_scomp_l.c : $(srcdir)/mvl_scomp_l.l mvl_scomp_y.h + $(LEX) -t $(srcdir)/mvl_scomp_l.l | sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" > mvl_scomp_l.c diff --git a/alliance/src/mbkal/src/alc_driv_l.c b/alliance/src/mbk/src/alc_driv_l.c similarity index 100% rename from alliance/src/mbkal/src/alc_driv_l.c rename to alliance/src/mbk/src/alc_driv_l.c diff --git a/alliance/src/mbkap/src/alc_driv_p.c b/alliance/src/mbk/src/alc_driv_p.c similarity index 100% rename from alliance/src/mbkap/src/alc_driv_p.c rename to alliance/src/mbk/src/alc_driv_p.c diff --git a/alliance/src/mbkal/src/alc_pars_l.c b/alliance/src/mbk/src/alc_pars_l.c similarity index 100% rename from alliance/src/mbkal/src/alc_pars_l.c rename to alliance/src/mbk/src/alc_pars_l.c diff --git a/alliance/src/mbkal/src/alc_pars_l6.c b/alliance/src/mbk/src/alc_pars_l6.c similarity index 100% rename from alliance/src/mbkal/src/alc_pars_l6.c rename to alliance/src/mbk/src/alc_pars_l6.c diff --git a/alliance/src/mbkap/src/alc_pars_p.c b/alliance/src/mbk/src/alc_pars_p.c similarity index 100% rename from alliance/src/mbkap/src/alc_pars_p.c rename to alliance/src/mbk/src/alc_pars_p.c diff --git a/alliance/src/mbkhilo/src/drive_hilo.c b/alliance/src/mbk/src/drive_hilo.c similarity index 100% rename from alliance/src/mbkhilo/src/drive_hilo.c rename to alliance/src/mbk/src/drive_hilo.c diff --git a/alliance/src/mbkvrlog/src/drive_vlog.c b/alliance/src/mbk/src/drive_vlog.c similarity index 100% rename from alliance/src/mbkvrlog/src/drive_vlog.c rename to alliance/src/mbk/src/drive_vlog.c diff --git a/alliance/src/mbkvti/src/drive_vti_l.c b/alliance/src/mbk/src/drive_vti_l.c similarity index 100% rename from alliance/src/mbkvti/src/drive_vti_l.c rename to alliance/src/mbk/src/drive_vti_l.c diff --git a/alliance/src/mbkvti/src/drive_vti_l.h b/alliance/src/mbk/src/drive_vti_l.h similarity index 100% rename from alliance/src/mbkvti/src/drive_vti_l.h rename to alliance/src/mbk/src/drive_vti_l.h diff --git a/alliance/src/mbkvti/src/drive_vti_p.c b/alliance/src/mbk/src/drive_vti_p.c similarity index 100% rename from alliance/src/mbkvti/src/drive_vti_p.c rename to alliance/src/mbk/src/drive_vti_p.c diff --git a/alliance/src/mbkvti/src/drive_vti_p.h b/alliance/src/mbk/src/drive_vti_p.h similarity index 100% rename from alliance/src/mbkvti/src/drive_vti_p.h rename to alliance/src/mbk/src/drive_vti_p.h diff --git a/alliance/src/mbkedif/src/driver.c b/alliance/src/mbk/src/driver.c similarity index 100% rename from alliance/src/mbkedif/src/driver.c rename to alliance/src/mbk/src/driver.c diff --git a/alliance/src/mbkvhdlg/src/gen_generic.c b/alliance/src/mbk/src/gen_generic.c similarity index 100% rename from alliance/src/mbkvhdlg/src/gen_generic.c rename to alliance/src/mbk/src/gen_generic.c diff --git a/alliance/src/mbkvhdlg/src/gen_generic.h b/alliance/src/mbk/src/gen_generic.h similarity index 100% rename from alliance/src/mbkvhdlg/src/gen_generic.h rename to alliance/src/mbk/src/gen_generic.h diff --git a/alliance/src/mbkvhdlg/src/gen_print.c b/alliance/src/mbk/src/gen_print.c similarity index 100% rename from alliance/src/mbkvhdlg/src/gen_print.c rename to alliance/src/mbk/src/gen_print.c diff --git a/alliance/src/mbkal/src/mal.h b/alliance/src/mbk/src/mal.h similarity index 100% rename from alliance/src/mbkal/src/mal.h rename to alliance/src/mbk/src/mal.h diff --git a/alliance/src/mbkap/src/map.h b/alliance/src/mbk/src/map.h similarity index 100% rename from alliance/src/mbkap/src/map.h rename to alliance/src/mbk/src/map.h diff --git a/alliance/src/mbkmg/src/mbk2mg.c b/alliance/src/mbk/src/mbk2mg.c similarity index 100% rename from alliance/src/mbkmg/src/mbk2mg.c rename to alliance/src/mbk/src/mbk2mg.c diff --git a/alliance/src/mbkvti/src/mcl.h b/alliance/src/mbk/src/mcl.h similarity index 100% rename from alliance/src/mbkvti/src/mcl.h rename to alliance/src/mbk/src/mcl.h diff --git a/alliance/src/mbkvti/src/mcp.h b/alliance/src/mbk/src/mcp.h similarity index 100% rename from alliance/src/mbkvti/src/mcp.h rename to alliance/src/mbk/src/mcp.h diff --git a/alliance/src/mbkmg/src/mg2mbk_l.l b/alliance/src/mbk/src/mg2mbk_l.l similarity index 100% rename from alliance/src/mbkmg/src/mg2mbk_l.l rename to alliance/src/mbk/src/mg2mbk_l.l diff --git a/alliance/src/mbkmg/src/mg2mbk_y.y b/alliance/src/mbk/src/mg2mbk_y.y similarity index 100% rename from alliance/src/mbkmg/src/mg2mbk_y.y rename to alliance/src/mbk/src/mg2mbk_y.y diff --git a/alliance/src/mbkmg/src/mmg.h b/alliance/src/mbk/src/mmg.h similarity index 100% rename from alliance/src/mbkmg/src/mmg.h rename to alliance/src/mbk/src/mmg.h diff --git a/alliance/src/mbkspice/src/msl.h b/alliance/src/mbk/src/msl.h similarity index 100% rename from alliance/src/mbkspice/src/msl.h rename to alliance/src/mbk/src/msl.h diff --git a/alliance/src/mbkvhdlg/src/mvl_drive.c b/alliance/src/mbk/src/mvl_drive.c similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_drive.c rename to alliance/src/mbk/src/mvl_drive.c diff --git a/alliance/src/mbkvhdlg/src/mvl_drive.h b/alliance/src/mbk/src/mvl_drive.h similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_drive.h rename to alliance/src/mbk/src/mvl_drive.h diff --git a/alliance/src/mbkvhdlg/src/mvl_parse.c b/alliance/src/mbk/src/mvl_parse.c similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_parse.c rename to alliance/src/mbk/src/mvl_parse.c diff --git a/alliance/src/mbkvhdlg/src/mvl_parse.h b/alliance/src/mbk/src/mvl_parse.h similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_parse.h rename to alliance/src/mbk/src/mvl_parse.h diff --git a/alliance/src/mbkvhdlg/src/mvl_scomp_l.l b/alliance/src/mbk/src/mvl_scomp_l.l similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_scomp_l.l rename to alliance/src/mbk/src/mvl_scomp_l.l diff --git a/alliance/src/mbkvhdlg/src/mvl_scomp_y.y b/alliance/src/mbk/src/mvl_scomp_y.y similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_scomp_y.y rename to alliance/src/mbk/src/mvl_scomp_y.y diff --git a/alliance/src/mbkvhdlg/src/mvl_slex.h b/alliance/src/mbk/src/mvl_slex.h similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_slex.h rename to alliance/src/mbk/src/mvl_slex.h diff --git a/alliance/src/mbkvhdlg/src/mvl_sspec.c b/alliance/src/mbk/src/mvl_sspec.c similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_sspec.c rename to alliance/src/mbk/src/mvl_sspec.c diff --git a/alliance/src/mbkvhdlg/src/mvl_sspec.h b/alliance/src/mbk/src/mvl_sspec.h similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_sspec.h rename to alliance/src/mbk/src/mvl_sspec.h diff --git a/alliance/src/mbkvhdlg/src/mvl_stdef.h b/alliance/src/mbk/src/mvl_stdef.h similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_stdef.h rename to alliance/src/mbk/src/mvl_stdef.h diff --git a/alliance/src/mbkvhdlg/src/mvl_stype.h b/alliance/src/mbk/src/mvl_stype.h similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_stype.h rename to alliance/src/mbk/src/mvl_stype.h diff --git a/alliance/src/mbkvhdlg/src/mvl_syacc.h b/alliance/src/mbk/src/mvl_syacc.h similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_syacc.h rename to alliance/src/mbk/src/mvl_syacc.h diff --git a/alliance/src/mbkvhdlg/src/mvl_utdef.h b/alliance/src/mbk/src/mvl_utdef.h similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_utdef.h rename to alliance/src/mbk/src/mvl_utdef.h diff --git a/alliance/src/mbkvhdlg/src/mvl_util.c b/alliance/src/mbk/src/mvl_util.c similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_util.c rename to alliance/src/mbk/src/mvl_util.c diff --git a/alliance/src/mbkvhdlg/src/mvl_util.h b/alliance/src/mbk/src/mvl_util.h similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_util.h rename to alliance/src/mbk/src/mvl_util.h diff --git a/alliance/src/mbkvhdlg/src/mvl_utype.h b/alliance/src/mbk/src/mvl_utype.h similarity index 100% rename from alliance/src/mbkvhdlg/src/mvl_utype.h rename to alliance/src/mbk/src/mvl_utype.h diff --git a/alliance/src/mbkvti/src/parse_vti_l.c b/alliance/src/mbk/src/parse_vti_l.c similarity index 100% rename from alliance/src/mbkvti/src/parse_vti_l.c rename to alliance/src/mbk/src/parse_vti_l.c diff --git a/alliance/src/mbkvti/src/parse_vti_p.c b/alliance/src/mbk/src/parse_vti_p.c similarity index 100% rename from alliance/src/mbkvti/src/parse_vti_p.c rename to alliance/src/mbk/src/parse_vti_p.c diff --git a/alliance/src/mbkedif/src/parser_l.l b/alliance/src/mbk/src/parser_l.l similarity index 100% rename from alliance/src/mbkedif/src/parser_l.l rename to alliance/src/mbk/src/parser_l.l diff --git a/alliance/src/mbkedif/src/parser_y.y b/alliance/src/mbk/src/parser_y.y similarity index 100% rename from alliance/src/mbkedif/src/parser_y.y rename to alliance/src/mbk/src/parser_y.y diff --git a/alliance/src/mbkspice/src/spi_drive.c b/alliance/src/mbk/src/spi_drive.c similarity index 100% rename from alliance/src/mbkspice/src/spi_drive.c rename to alliance/src/mbk/src/spi_drive.c diff --git a/alliance/src/mbkspice/src/spi_drive.h b/alliance/src/mbk/src/spi_drive.h similarity index 100% rename from alliance/src/mbkspice/src/spi_drive.h rename to alliance/src/mbk/src/spi_drive.h diff --git a/alliance/src/mbkspice/src/spi_global.c b/alliance/src/mbk/src/spi_global.c similarity index 100% rename from alliance/src/mbkspice/src/spi_global.c rename to alliance/src/mbk/src/spi_global.c diff --git a/alliance/src/mbkspice/src/spi_global.h b/alliance/src/mbk/src/spi_global.h similarity index 100% rename from alliance/src/mbkspice/src/spi_global.h rename to alliance/src/mbk/src/spi_global.h diff --git a/alliance/src/mbkspice/src/spi_hash.c b/alliance/src/mbk/src/spi_hash.c similarity index 100% rename from alliance/src/mbkspice/src/spi_hash.c rename to alliance/src/mbk/src/spi_hash.c diff --git a/alliance/src/mbkspice/src/spi_hash.h b/alliance/src/mbk/src/spi_hash.h similarity index 100% rename from alliance/src/mbkspice/src/spi_hash.h rename to alliance/src/mbk/src/spi_hash.h diff --git a/alliance/src/mbkspice/src/spi_int.c b/alliance/src/mbk/src/spi_int.c similarity index 100% rename from alliance/src/mbkspice/src/spi_int.c rename to alliance/src/mbk/src/spi_int.c diff --git a/alliance/src/mbkspice/src/spi_int.h b/alliance/src/mbk/src/spi_int.h similarity index 100% rename from alliance/src/mbkspice/src/spi_int.h rename to alliance/src/mbk/src/spi_int.h diff --git a/alliance/src/mbkspice/src/spi_msg.c b/alliance/src/mbk/src/spi_msg.c similarity index 100% rename from alliance/src/mbkspice/src/spi_msg.c rename to alliance/src/mbk/src/spi_msg.c diff --git a/alliance/src/mbkspice/src/spi_msg.h b/alliance/src/mbk/src/spi_msg.h similarity index 100% rename from alliance/src/mbkspice/src/spi_msg.h rename to alliance/src/mbk/src/spi_msg.h diff --git a/alliance/src/mbkspice/src/spi_parse.c b/alliance/src/mbk/src/spi_parse.c similarity index 100% rename from alliance/src/mbkspice/src/spi_parse.c rename to alliance/src/mbk/src/spi_parse.c diff --git a/alliance/src/mbkspice/src/spi_parse.h b/alliance/src/mbk/src/spi_parse.h similarity index 100% rename from alliance/src/mbkspice/src/spi_parse.h rename to alliance/src/mbk/src/spi_parse.h diff --git a/alliance/src/mbkedif/src/time.c b/alliance/src/mbk/src/time.c similarity index 100% rename from alliance/src/mbkedif/src/time.c rename to alliance/src/mbk/src/time.c diff --git a/alliance/src/mbkvhdlg/src/vel_chain.c b/alliance/src/mbk/src/vel_chain.c similarity index 100% rename from alliance/src/mbkvhdlg/src/vel_chain.c rename to alliance/src/mbk/src/vel_chain.c diff --git a/alliance/src/mbkvhdlg/src/vel_drive.c b/alliance/src/mbk/src/vel_drive.c similarity index 100% rename from alliance/src/mbkvhdlg/src/vel_drive.c rename to alliance/src/mbk/src/vel_drive.c diff --git a/alliance/src/mbkvhdlg/src/vel_o.c b/alliance/src/mbk/src/vel_o.c similarity index 100% rename from alliance/src/mbkvhdlg/src/vel_o.c rename to alliance/src/mbk/src/vel_o.c diff --git a/alliance/src/mbkvhdlg/src/vel_sort.c b/alliance/src/mbk/src/vel_sort.c similarity index 100% rename from alliance/src/mbkvhdlg/src/vel_sort.c rename to alliance/src/mbk/src/vel_sort.c diff --git a/alliance/src/mbkvhdlg/src/vel_util.c b/alliance/src/mbk/src/vel_util.c similarity index 100% rename from alliance/src/mbkvhdlg/src/vel_util.c rename to alliance/src/mbk/src/vel_util.c diff --git a/alliance/src/mbkvhdlg/src/vel_vect.c b/alliance/src/mbk/src/vel_vect.c similarity index 100% rename from alliance/src/mbkvhdlg/src/vel_vect.c rename to alliance/src/mbk/src/vel_vect.c diff --git a/alliance/src/mbkvhdlg/src/vel_velo.h b/alliance/src/mbk/src/vel_velo.h similarity index 100% rename from alliance/src/mbkvhdlg/src/vel_velo.h rename to alliance/src/mbk/src/vel_velo.h diff --git a/alliance/src/mbkvhdlg/src/x2vy_main.c b/alliance/src/mbk/src/x2vy_main.c similarity index 100% rename from alliance/src/mbkvhdlg/src/x2vy_main.c rename to alliance/src/mbk/src/x2vy_main.c diff --git a/alliance/src/mbkal/Makefile.am b/alliance/src/mbkal/Makefile.am deleted file mode 100644 index 39207806..00000000 --- a/alliance/src/mbkal/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src doc diff --git a/alliance/src/mbkal/configure.in b/alliance/src/mbkal/configure.in deleted file mode 100644 index 526847ed..00000000 --- a/alliance/src/mbkal/configure.in +++ /dev/null @@ -1,48 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.5 2002/10/16 18:04:25 jpc Exp $ -dnl -dnl -AC_INIT(src/alc_pars_l.c) -MAL_DLL_VERSION=6:0:0 -AC_SUBST(MAL_DLL_VERSION) -AM_INIT_AUTOMAKE(mbkal, 6.0) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_CHECK_HEADERS(strings.h unistd.h) -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -doc/Makefile -]) diff --git a/alliance/src/mbkal/doc/Makefile.am b/alliance/src/mbkal/doc/Makefile.am deleted file mode 100644 index 3fb6bc12..00000000 --- a/alliance/src/mbkal/doc/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -# $Id: Makefile.am,v 1.1 2002/06/18 13:09:01 czo Exp $ - -man_MANS = al.5 -EXTRA_DIST = $(man_MANS) diff --git a/alliance/src/mbkal/doc/al.5 b/alliance/src/mbkal/doc/al.5 deleted file mode 100644 index d897b73e..00000000 --- a/alliance/src/mbkal/doc/al.5 +++ /dev/null @@ -1,347 +0,0 @@ -.\" @(#)al.5 6.0 29 Mar 1999 UPMC; Author: Gregoire AVOT -.TH AL 5 "October 1, 1997 Release 5.0" "ASIM/LIP6" "File Formats" -.SH NAME -al \- Alliance logical format -.so man1/alc_origin.1 -.SH DESCRIPTION -The .al format is the ALLIANCE format for the logical view -of a cell. We give below the BNF description of the format : -.nf - -file ::= - version - header - connectors - instances - transistors - signals - crosstalk_capacitances - end_of_file - -version ::= 'V ALLIANCE : ' version_number - -header ::= 'H ' name ',' file_type ',' date - /// name : name of the figure - /// date : saving file date - -connectors ::= { connector } - -connector ::= 'C ' name ',' connector_direction ',' - connector_type ',' net_num [list_of_physical_node] - -list_of_physical_node ::= { ',' node_num } - -instances ::= { instance connectors } - /// An instance is followed by his connectors - -instance ::= 'I ' model_name ',' instance_name - -transistors ::= { transistor } - -transistor ::= 'T' type ',' lenght ',' width ',' drain ',' - grid ',' source ',' bulk ',' xs ',' xd ',' ps ',' pd - ',' x ',' y [ ',' node_drain ',' node_grid ',' - node_source ',' node_bulk ] ',' trname - - /// drain : number of the net connected to the drain - /// grid : number of the net connected to the grid - /// source : number of the net connected to the source - /// bulk : number of the net connected to the bulk - /// xs, xd : To compute respectivly the source and - /// drain area - /// ps, pd : perimeter of the source and drain - /// x, y : coordinate of the transistor in a layout - /// node_drain : number of the node connected to the drain - /// node_grid : number of the node connected to the grid - /// node_source : number of the node connected to the source - /// node_bulk : number of the node connected to the bulk - -signals ::= { signal } - -signal := sig_index [ { resistance } ] [ { capacitance } ] - -sig_index ::= 'S ' net_num ',' signal_type [ list_of_signal_name ] - -list_of_signal_name ::= { ',' signal_name } - -resistance := 'R ' layer ',' node1 ',' node2 ',' resi ',' capa ',' - x ',' y ',' dx ',' dy - -capacitance := 'Q ' capa - - /// Each resistance is describe as a resistor beetwen two nodes - /// connected to the ground with capacitor with a value of capa/2. - /// Capacitance is the entire capacitance of the net to ground. - -crosstalk_capacitances ::= { crosstalk_capacitance } - -crosstalk_capacitance ::= K capa ',' sig1 ',' node1 ',' sig2 ',' node2 - -end_of_file ::= 'EOF' - -version_number ::= number - -file_type ::= 'L' - -date ::= day '/' month '/' year - -connector_direction ::= 'IN' | 'OUT' | 'INOUT' | 'UNKNOWN' | - 'TRISTATE' | 'TRANSCV' - /// in : input - /// out : output - /// inout : input and output - /// unknown : no information is available - /// tristate : tristate output - /// transcv : tristate output and input - -connector_type ::= 'EXTERNAL' | 'INTERNAL' - -net_num ::= number - -node_num ::= number - -model_name ::= name - -instance_name ::= name - -type ::= 'N' | 'P' - -lenght ::= float - -width ::= float - -drain ::= net_num - -grid ::= net_num - -source ::= net_num - -bulk ::= net_num - -node1 ::= node_num - -node2 ::= node_num - -sig1 ::= net_num - -sig2 ::= net_num - -xs ::= float - -xd ::= float - -ps ::= float - -pd ::= float - -x ::= float - -y ::= float - -dx ::= float - -dy ::= float - -trname :: name - -layer ::= 'X' | 'PY' | 'A1' | 'A2' | 'CY' | 'CN' | 'CP' | 'CV' - | 'CW' | 'CA' | 'RE' - -signal_type ::= 'EXTERNAL' | 'INTERNAL' - -capa ::= float - -resi ::= float - -signal_name ::= name - -number ::= { '0' | '1'| '2' | '3' | '4' | '5' | - '6' | '7'| '8' | '9' } - -float ::= number [ '.' number ] - -name ::= word - -.fi -.SH EXAMPLES -.LP -.SS Example 1 -This example is the representation of a nand whith two input, extracted -with Lynx at transistor level. -.LP -.nf -V ALLIANCE : 6 -H na2_y,L,29/ 3/99 -C vss,UNKNOWN,EXTERNAL,2,1,9 -C vdd,UNKNOWN,EXTERNAL,1,9,13 -C i1,UNKNOWN,EXTERNAL,6,1,8 -C i0,UNKNOWN,EXTERNAL,5,2,8 -C f,UNKNOWN,EXTERNAL,3,1,11 -T P,1,12,1,5,3,1,2,2,28,28,17,32.5,4,3,7,3,tr_00004 -T P,1,12,3,6,1,1,2,2,28,28,11,32.5,7,7,1,2,tr_00003 -T N,1,12,3,5,4,2,2,2,28,28,17,12.5,3,1,1,8,tr_00002 -T N,1,12,4,6,2,2,2,2,28,28,11,12.5,1,2,2,5,tr_00001 -S 6,EXTERNAL,i1 -Q 0.020455 -W 4,3,CV,0,0,7.2,17.6,0,0 -W 6,5,CV,0,0,6.4,22.4,0,0 -W 5,8,A2,0.4,0.00408,6.4,22.4,1.6,13.6 -W 1,5,A2,0.6,0.006,6.4,2.4,1.6,20 -W 3,6,A1,0.3,0.00168,6.4,17.6,1.6,4.8 -W 4,7,PY,500,0.00315,8.8,17.6,0.8,8.4 -W 2,4,PY,450,0.00285,8.8,10,0.8,7.6 -S 5,EXTERNAL,i0 -Q 0.020455 -W 5,4,CV,0,0,15.2,17.6,0,0 -W 7,6,CV,0,0,16,22.4,0,0 -W 6,8,A2,0.4,0.00408,16,22.4,1.6,13.6 -W 2,6,A2,0.6,0.006,16,2.4,1.6,20 -W 4,7,A1,0.3,0.00168,16,17.6,1.6,4.8 -W 5,3,PY,500,0.00315,13.6,17.6,0.8,8.4 -W 1,5,PY,450,0.00285,13.6,10,0.8,7.6 -S 4,INTERNAL -Q 0 -S 3,EXTERNAL,f -Q 0.021985 -W 3,4,CV,0,0,16,10.4,0,0 -W 6,5,CV,0,0,11.2,17.6,0,0 -W 8,7,CV,0,0,11.2,23.2,0,0 -W 9,7,CV,0,0,11.2,28,0,0 -W 5,11,A2,0.55,0.00552,11.2,17.6,1.6,18.4 -W 1,5,A2,0.45,0.00456,11.2,2.4,1.6,15.2 -W 10,9,A1,0.2,0.00126,11.2,24.4,1.6,3.6 -W 8,10,A1,0,0.00042,11.2,23.2,1.6,1.2 -W 6,8,A1,0.7,0.00161,11.2,17.6,0.8,5.6 -W 2,6,A1,0.9,0.00207,11.2,10.4,0.8,7.2 -W 2,4,A1,0.6,0.00138,11.2,10.4,4.8,0.8 -S 2,EXTERNAL,vss -Q 0.0245 -W 4,3,CV,0,0,6.4,1.6,0,0 -W 7,6,CV,0,0,11.2,1.6,0,0 -W 11,10,CV,0,0,16,1.6,0,0 -W 3,2,CV,0,0,6.4,6.4,0,0 -W 12,2,CV,0,0,6.4,10.4,0,0 -W 3,12,A1,0.4,0.00224,6.4,4,1.6,6.4 -W 10,9,A1,0,0.00174,16,4,2.4,6.4 -W 6,10,A1,0,0.00348,11.2,4,4.8,6.4 -W 3,6,A1,0,0.00348,6.4,4,4.8,6.4 -W 1,3,A1,0,0.00174,4,4,2.4,6.4 -S 1,EXTERNAL,vdd -Q 0.02846 -W 5,1,CV,0,0,6.4,26.4,0,0 -W 6,4,CV,0,0,16,26.4,0,0 -W 7,1,CV,0,0,6.4,29.6,0,0 -W 8,4,CV,0,0,16,29.6,0,0 -W 14,10,CV,0,0,6.4,36,0,0 -W 15,11,CV,0,0,11.2,36,0,0 -W 16,12,CV,0,0,16,36,0,0 -W 7,10,A1,0.3,0.00168,6.4,29.6,1.6,4.8 -W 5,7,A1,0.2,0.00112,6.4,26.4,1.6,3.2 -W 8,12,A1,0.3,0.00168,16,29.6,1.6,4.8 -W 6,8,A1,0.2,0.00112,16,26.4,1.6,3.2 -W 12,13,A1,0,0.00174,16,34.4,2.4,6.4 -W 9,10,A1,0,0.00174,4,34.4,2.4,6.4 -W 11,12,A1,0,0.00348,11.2,36,4.8,6.4 -W 10,11,A1,0,0.00348,6.4,36,4.8,6.4 -K 0.00213,1,1,2,1 -K 0.00454,5,6,2,1 -K 0.00199,6,8,2,1 -EOF -.fi -.SS Example 2 -This example is a xor designed with three cells. -.LP -.nf -V ALLIANCE : 6 -H gxor,L,29/ 3/99 -C vss,UNKNOWN,EXTERNAL,4,1,2,9,10 -C vdd,UNKNOWN,EXTERNAL,6,1,2,10,3 -C s,UNKNOWN,EXTERNAL,8,2 -C b,UNKNOWN,EXTERNAL,5,5 -C a,UNKNOWN,EXTERNAL,3,1 -I ndrvp_y,auxsc3 -C vss,UNKNOWN,INTERNAL,4,8,9 -C vdd,UNKNOWN,INTERNAL,6,9,10 -C i,UNKNOWN,INTERNAL,5,4,9 -C f,UNKNOWN,INTERNAL,7,8,12 -I mx2_y,s -C vss,UNKNOWN,INTERNAL,4,4,8 -C vdd,UNKNOWN,INTERNAL,6,5,9 -C t,UNKNOWN,INTERNAL,8,1,3 -C l1,UNKNOWN,INTERNAL,7,1,11 -C l0,UNKNOWN,INTERNAL,2,4,8 -C i1,UNKNOWN,INTERNAL,3,11,13 -C i0,UNKNOWN,INTERNAL,5,1,8 -I ndrvp_y,auxsc1 -C vss,UNKNOWN,INTERNAL,4,2,3 -C vdd,UNKNOWN,INTERNAL,6,2,4 -C i,UNKNOWN,INTERNAL,3,10,12 -C f,UNKNOWN,INTERNAL,2,1,7 -S 8,EXTERNAL,s -Q 0.0072 -W 2,1,A2,0.55,0.00528,79.2,0,1.6,17.6 -S 7,INTERNAL,auxsc3 -Q 0.02142 -W 3,2,CV,0,0,64.8,8.8,0,0 -W 5,4,CV,0,0,74.4,8.8,0,0 -W 7,6,CV,0,0,74.4,12.8,0,0 -W 10,9,CV,0,0,88.8,12.8,0,0 -W 9,8,A2,0.15,0.00144,88.8,12.8,1.6,4.8 -W 6,10,A1,1.8,0.00414,74.4,12.8,14.4,0.8 -W 4,7,A2,0.1,0.0012,74.4,8.8,1.6,4 -W 2,1,A2,0.25,0.00264,64.8,8.8,1.6,8.8 -W 3,5,A1,1.2,0.00276,64.8,8.8,9.6,0.8 -S 6,EXTERNAL,vdd -Q 0.05453 -W 7,6,CV,0,0,37.6,48,0,0 -W 8,6,CV,0,0,37.6,51.2,0,0 -W 6,5,A1,0.1,0.00754,37.6,49.6,10.4,6.4 -W 4,6,A1,0,0.0029,33.6,49.6,4,6.4 -W 8,3,A2,0.05,0.00203,37.6,51.2,3.2,5.6 -W 7,8,A2,0.05,0.00116,37.6,48,3.2,3.2 -W 1,7,A2,0.75,0.0174,37.6,0,3.2,48 -S 5,EXTERNAL,b -Q 0.02922 -W 3,2,CV,0,0,50.4,4.8,0,0 -W 7,6,CV,0,0,98.4,4.8,0,0 -W 6,4,A2,0.4,0.00384,98.4,4.8,1.6,12.8 -W 5,6,A2,0.15,0.00144,98.4,0,1.6,4.8 -W 2,1,A2,0.4,0.00384,50.4,4.8,1.6,12.8 -W 3,7,A1,6,0.0138,50.4,4.8,48,0.8 -S 4,EXTERNAL,vss -Q 0.05453 -W 6,5,CV,0,0,44,17.6,0,0 -W 6,7,CV,0,0,44,20.8,0,0 -W 7,10,A2,0.55,0.01305,44,20.8,3.2,36 -W 1,5,A2,0.25,0.00638,44,0,3.2,17.6 -W 5,7,A2,0.05,0.00116,44,17.6,3.2,3.2 -W 6,4,A1,0,0.0029,44,19.2,4,6.4 -W 3,6,A1,0.1,0.00754,33.6,19.2,10.4,6.4 -S 3,EXTERNAL,a -Q 0.03282 -W 3,2,CV,0,0,16.8,8.8,0,0 -W 5,4,CV,0,0,60,8.8,0,0 -W 7,6,CV,0,0,60,12.8,0,0 -W 9,8,CV,0,0,69.6,12.8,0,0 -W 8,11,A2,0.15,0.00144,69.6,12.8,1.6,4.8 -W 6,9,A1,1.2,0.00276,60,12.8,9.6,0.8 -W 4,7,A2,0.1,0.0012,60,8.8,1.6,4 -W 2,10,A2,0.25,0.00264,16.8,8.8,1.6,8.8 -W 1,2,A2,0.25,0.00264,16.8,0,1.6,8.8 -W 3,5,A1,5.4,0.01242,16.8,8.8,43.2,0.8 -S 2,INTERNAL,auxsc1 -Q 0.0225 -W 3,2,CV,0,0,7.2,12.8,0,0 -W 6,5,CV,0,0,55.2,12.8,0,0 -W 5,4,A2,0.15,0.00144,55.2,12.8,1.6,4.8 -W 2,1,A2,0.15,0.00144,7.2,12.8,1.6,4.8 -W 3,6,A1,6,0.0138,7.2,12.8,48,0.8 -S 1,INTERNAL,implicit -Q 0 -EOF -.fi -.SH SEE ALSO -.BR mbk (3) - -.so man1/alc_bug_report.1 - diff --git a/alliance/src/mbkal/src/Makefile.am b/alliance/src/mbkal/src/Makefile.am deleted file mode 100644 index 5af37481..00000000 --- a/alliance/src/mbkal/src/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -lib_LTLIBRARIES = libMal.la -libMal_la_SOURCES = alc_driv_l.c alc_pars_l.c alc_pars_l6.c mal.h - -libMal_la_LDFLAGS = -version-info @MAL_DLL_VERSION@ diff --git a/alliance/src/mbkal/src/main.c b/alliance/src/mbkal/src/main.c deleted file mode 100644 index ba0b8c21..00000000 --- a/alliance/src/mbkal/src/main.c +++ /dev/null @@ -1,67 +0,0 @@ -#include - -#include -#include -#include - -void Syntax( Name ) - - char *Name; -{ - fprintf( stdout, "%s [options] in out\n", Name ); - - exit( 1 ); -} - -int main( argc, argv ) - - int argc; - char *argv[]; -{ - lofig_list *FigureMbk; - - char *InputName; - char *OutputName; - int Number; - - if ( argc < 2 ) - { - Syntax( argv[ 0 ] ); - } - - mbkenv(); - - if ( argc < 2 ) - { - Syntax( argv[ 0 ] ); - } - - InputName = (char *)NULL; - OutputName = (char *)NULL; - - for ( Number = 1; - Number < argc; - Number++ ) - { - if ( InputName == NULL ) InputName = argv[ Number ]; - else - if ( OutputName == NULL ) OutputName = argv[ Number ]; - } - - if ( InputName == NULL ) - { - Syntax( argv[ 0 ] ); - } - - if ( OutputName == NULL ) - { - OutputName = InputName; - } - - FigureMbk = getlofig( InputName, 'A' ); - FigureMbk->NAME = namealloc( OutputName ); - - savelofig( FigureMbk ); - - return( 0 ); - } diff --git a/alliance/src/mbkap/Makefile.am b/alliance/src/mbkap/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/mbkap/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/mbkap/configure.in b/alliance/src/mbkap/configure.in deleted file mode 100644 index df0c31d3..00000000 --- a/alliance/src/mbkap/configure.in +++ /dev/null @@ -1,47 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.4 2002/10/16 18:04:26 jpc Exp $ -dnl -dnl -AC_INIT(src/alc_driv_p.c) -MAP_DLL_VERSION=6:0:0 -AC_SUBST(MAP_DLL_VERSION) -AM_INIT_AUTOMAKE(mbkal, 6.0) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_CHECK_HEADERS(strings.h unistd.h) -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/mbkap/src/Makefile.am b/alliance/src/mbkap/src/Makefile.am deleted file mode 100644 index 4352cb1a..00000000 --- a/alliance/src/mbkap/src/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -lib_LTLIBRARIES = libMap.la -libMap_la_SOURCES = alc_driv_p.c alc_pars_p.c map.h - -libMap_la_LDFLAGS = -version-info @MAP_DLL_VERSION@ diff --git a/alliance/src/mbkedif/Makefile.am b/alliance/src/mbkedif/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/mbkedif/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/mbkedif/configure.in b/alliance/src/mbkedif/configure.in deleted file mode 100644 index b55e1c49..00000000 --- a/alliance/src/mbkedif/configure.in +++ /dev/null @@ -1,49 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.4 2002/10/16 18:04:26 jpc Exp $ -dnl -dnl -AC_INIT(src/time.c) -MEL_DLL_VERSION=4:9:0 -AC_SUBST(MEL_DLL_VERSION) -AM_INIT_AUTOMAKE(mbkedif, 4.9) -AC_PROG_INSTALL -AC_PROG_CC -AC_PROG_YACC -AM_PROG_LEX -AC_HEADER_STDC -AC_CHECK_HEADERS(strings.h unistd.h) -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/mbkedif/src/Makefile.am b/alliance/src/mbkedif/src/Makefile.am deleted file mode 100644 index 87ea92fe..00000000 --- a/alliance/src/mbkedif/src/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src @ALLIANCE_CFLAGS@ -lib_LTLIBRARIES = libMel.la -libMel_la_SOURCES = time.c driver.c parser_y.y parser_l.l -libMel_la_LDFLAGS = -version-info @MEL_DLL_VERSION@ -CLEANFILES = parser_y.c parser_y.h parser_l.c - -parser_y.c parser_y.h : $(srcdir)/parser_y.y - $(YACC) -d $(YFLAGS) $(srcdir)/parser_y.y && sed -e "s/yy/edif/g" -e "s/YY/EDIF/g" y.tab.c > parser_y.c && sed -e "s/yy/edif/g" -e "s/YY/EDIF/g" y.tab.h > parser_y.h -parser_l.c : $(srcdir)/parser_l.l parser_y.h - $(LEX) -t $(srcdir)/parser_l.l | sed -e "s/yy/edif/g" -e "s/YY/EDIF/g" > parser_l.c diff --git a/alliance/src/mbkhilo/Makefile.am b/alliance/src/mbkhilo/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/mbkhilo/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/mbkhilo/configure.in b/alliance/src/mbkhilo/configure.in deleted file mode 100644 index 75e15ec7..00000000 --- a/alliance/src/mbkhilo/configure.in +++ /dev/null @@ -1,47 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.4 2002/10/16 18:04:26 jpc Exp $ -dnl -dnl -AC_INIT(src/drive_hilo.c) -MHL_DLL_VERSION=2:1:0 -AC_SUBST(MHL_DLL_VERSION) -AM_INIT_AUTOMAKE(mbkhilo, 2.0) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_CHECK_HEADERS(strings.h unistd.h) -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/mbkhilo/src/Makefile.am b/alliance/src/mbkhilo/src/Makefile.am deleted file mode 100644 index 6bec8624..00000000 --- a/alliance/src/mbkhilo/src/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -lib_LTLIBRARIES = libMhl.la -libMhl_la_SOURCES = drive_hilo.c -libMhl_la_LDFLAGS = -version-info @MHL_DLL_VERSION@ diff --git a/alliance/src/mbkmg/Makefile.am b/alliance/src/mbkmg/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/mbkmg/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/mbkmg/configure.in b/alliance/src/mbkmg/configure.in deleted file mode 100644 index 49b24b57..00000000 --- a/alliance/src/mbkmg/configure.in +++ /dev/null @@ -1,49 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.4 2002/10/16 18:04:26 jpc Exp $ -dnl -dnl -AC_INIT(src/mbk2mg.c) -MMG_DLL_VERSION=1:0:0 -AC_SUBST(MMG_DLL_VERSION) -AM_INIT_AUTOMAKE(mbkmg, 1.0) -AC_PROG_INSTALL -AC_PROG_CC -AC_PROG_YACC -AM_PROG_LEX -AC_HEADER_STDC -AC_CHECK_HEADERS(strings.h unistd.h) -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/mbkmg/src/Makefile.am b/alliance/src/mbkmg/src/Makefile.am deleted file mode 100644 index 25dce3d7..00000000 --- a/alliance/src/mbkmg/src/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -lib_LTLIBRARIES = libMmg.la -libMmg_la_SOURCES = mbk2mg.c mg2mbk_y.y mg2mbk_l.l mmg.h -libMmg_la_LDFLAGS = -version-info @MMG_DLL_VERSION@ -CLEANFILES = mg2mbk_y.c mg2mbk_y.h mg2mbk_l.c - -mg2mbk_y.c mg2mbk_y.h : $(srcdir)/mg2mbk_y.y - $(YACC) -d $(YFLAGS) $(srcdir)/mg2mbk_y.y && sed -e "s/yy/mgn/g" -e "s/YY/MGN/g" y.tab.c > mg2mbk_y.c && sed -e "s/yy/mgn/g" -e "s/YY/MGN/g" y.tab.h > mg2mbk_y.h -mg2mbk_l.c : $(srcdir)/mg2mbk_l.l mg2mbk_y.h - $(LEX) -t $(srcdir)/mg2mbk_l.l | sed -e "s/yy/mgn/g" -e "s/YY/MGN/g" > mg2mbk_l.c diff --git a/alliance/src/mbkspice/Makefile.am b/alliance/src/mbkspice/Makefile.am deleted file mode 100644 index 69501dcd..00000000 --- a/alliance/src/mbkspice/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src etc doc diff --git a/alliance/src/mbkspice/configure.in b/alliance/src/mbkspice/configure.in deleted file mode 100644 index d6461dbe..00000000 --- a/alliance/src/mbkspice/configure.in +++ /dev/null @@ -1,49 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.6 2002/10/16 18:04:26 jpc Exp $ -dnl -dnl -AC_INIT(src/spi_parse.c) -MSL_DLL_VERSION=7:0:0 -AC_SUBST(MSL_DLL_VERSION) -AM_INIT_AUTOMAKE(mbkspice, 7.0) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_CHECK_HEADERS(strings.h unistd.h) -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -etc/Makefile -doc/Makefile -]) diff --git a/alliance/src/mbkspice/doc/Makefile.am b/alliance/src/mbkspice/doc/Makefile.am deleted file mode 100644 index 1e81eefe..00000000 --- a/alliance/src/mbkspice/doc/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -# $Id: Makefile.am,v 1.1 2002/06/18 13:11:14 czo Exp $ - -man_MANS = spi.5 -EXTRA_DIST = $(man_MANS) diff --git a/alliance/src/mbkspice/doc/spi.5 b/alliance/src/mbkspice/doc/spi.5 deleted file mode 100644 index e015b39a..00000000 --- a/alliance/src/mbkspice/doc/spi.5 +++ /dev/null @@ -1,198 +0,0 @@ -.TH SPI 5 "30 March 1999" "ASIM/LIP6" "File Formats" - -.SH NAME - -spi \- Alliance parser and driver for Spice netlist. - -.so man1/alc_origin.1 - -.SH FILES - -The description of a netlist foo must be contained in a \fB.SUBCKT\fP of a file named \fIfoo.spi\fP. This description can include others \fB.SUBCKT\fP that must be in the same file or files included with the command \fB.INCLUDE\fP in the source file. - -Recognized elements are : - -.RS -Resistances - -Capacitances - -Instances - -MOS transistors. - -.RE -Others elements are not considered. - -Nodes can be either numbered or nameed. It's possible to assign a name to a node which is designated by a number with the directive - -.B * NET number = name - -in the \fB.SUBCKT\fP. The word NET can be replaced by positioning the environment variable \fIMBK_SPI_NETNAME\fP. Names are used to named the signals and the connectors in the \fILOFIG\fP. - -On the \fB.SUBCKT\fP interface, nodes of the same name followed by a period and a number are considered to be on the net, even if no connected in the circuit. For example : - -.RS - .SUBCKT nand2 in out out.1 out.2 vss vdd out.3 -.RE - -The nodes out, out.1, out.2 and out.3 are considered to be the same signal of the Alliance \fILOFIG\fP. This feature can be turned off if the environment variable \fIMBK_SPI_MERGE\fP is set, and the period can be replaced by another character with the environment variable \fIMBK_SPI_SEPAR\fP. - -No particular information is needed to build a \fILOFIG\fP from a \fB.SUBCKT\fP, the parser rebuild all signals, even they contains many resistances and capacitances. If names are not provided, the parser will create then in order to provide a valid lofig. - -.SH DRIVER - -The driver creates a Spice netlist of the \fILOFIG\fP passed as a parameter. The file contain a single \fB.SUBCKT\fP representing the figure and commands \fB.INCLUDE\fP with name of instances contained in the \fILOFIG\fP. Nodes are number named with the directive \fB* NET\fP, or strings, depending on \fIMBK_SPI_NAMEDNODES\fP. A comment at the beginning of the file represents the interface of the \fILOFIG\fP. This comment is not used by the parser. - -Environment variable considered are - -.RS -.B MBK_SPI_MODEL - -.B MBK_SPI_NETNAME - -.B MBK_SPI_NAMEDNODES -.RE - -.SH PARSER - -The parser load all \fB.SUBCKT\fP in memory, even those in files included with the command \fB.INCLUDE\fP until the required \fILOFIG\fP is loaded. For each \fB.SUBCKT\fP loaded, the parser build the equipotentials with both nodes of resistances on the same net and both nodes of capacitances on differents net unless more information is given. The RCN library is used to handle resistances and capacitances. - -As the \fILOWIRE\fP can contain a resistance and a capacitance, the parser groups a resistance and two capacitances in a single \fILOWIRE\fP if the following conditions are met : - -.RS -The resistance is named 'name' and the two capacitances are named 'name1' and 'name2' - -The two capacitances must have the same value - -The two capacitances must be between the net of the resistance and VSS. - -.RE -The driver supports this feature. - -Environment variable considered are - -.RS -.B MBK_SPI_MODEL - -.B MBK_SPI_NETNAME - -.B MBK_SPI_SEPAR - -.B MBK_SPI_MERGE - -.B MBK_SPI_FILE - -.B MBK_SPI_VERBOSE - -.B MBK_SPI_ONE_NODE_NORC - -.B MBK_SPI_NO_AFF_UNK -.RE - -.SH ENVIRONMENT VARIABLES - -.B MBK_SPI_MODEL - -File name where transistors models are described. Syntax for file is : -.RS -MODELNAME N|P [FAST] [HVIO] -.RE -Blank lines are allowed, and line comment begin with a '#'. - -.B MBK_SPI_NETNAME - -Comment used to name the nodes. Default is -.I NET. - -.B MBK_SPI_SEPAR - -Character used to separate a name from a node number on the interface of the \fB.SUBCKT\fP. The parser considers nodes of the same name to be on the same equipotential. Default is '\fB.\fP'. - -.B MBK_SPI_NOMERGE - -If this variable is set, the parser does not merge interface nodes of the same name, but different number, on the same equipotential. - -.B MBK_SPI_FILE - -If this variable is set, the name of the files opened are displayed on the error output. - -.B MBK_SPI_VERBOSE - -If this variable is set, display debug various information on the error output. - -.B MBK_SPI_ONE_NODE_NORC - -If this variable is set, an RCN view is not created for a net containing only one node. - -.B MBK_SPI_NO_AFF_UNK - -Default behaviour of Spice parser is to display an error message when an unknown element is read in the input file. Setting this variable prevent this display. Usefull when file contain command for Spice simulator. - -.B MBK_SPI_NAMEDNODES - -When this environment variable is set, spice netlist's nodes are named using one of the following convention, if signal name is set or no, or if signal has an RCN view : - -.RS -"SIGNAL NAME" $MBK_SEPAR "RCN NODE" - -"SIGNAL NAME" - -SIG "SIGNAL INDEX" $MBK_SEPAR "RCN NODE" - -SIG "SIGNAL INDEX" -.RE - -$MBK_SEPAR is a single character defined by a environment variable with the same name. - -.SH EXAMPLE - -This is an example of a file generated by the Spice driver. - -.nf - - * Spice description of gxor - * Spice driver version 700 - * Date ( dd/mm/yyyy hh:mm:ss ): 29/03/1999 at 17:43:53 - - * INTERF a b s vdd vdd vdd vdd vss vss vss vss - - .INCLUDE mx2_y.spi - .INCLUDE ndrvp_y.spi - - .subckt gxor 24 42 49 52 53 61 54 63 64 71 72 - * NET 1 = implicit - * NET 4 = auxsc1 - * NET 13 = auxsc3 - * NET 26 = a - * NET 40 = b - * NET 49 = s - * NET 52 = vdd - * NET 65 = vss - xauxsc1 64 65 53 55 33 35 2 8 ndrvp_y - xs 66 70 56 60 48 50 11 21 5 9 34 36 38 45 mx2_y - xauxsc3 70 71 60 61 41 46 18 22 ndrvp_y - R2_1 4 7 6 - C2_11 4 63 6.9e-15 - C2_12 7 63 6.9e-15 - R2_2 3 2 0.15 - C2_21 3 63 7.2e-16 - -.B [----- CUT -----] - - C4_51 69 63 6.525e-15 - C4_52 72 63 6.525e-15 - R4_6 68 69 0.001 - R4_7 68 67 0.001 - .ends gxor - -.SH SEE ALSO - -.B Alliance(1) MBK(1) Al(1) RCN(1) MBK_SEPAR(1) - -.SH AUTHOR - -Gregoire AVOT. -.I Gregoire.AVOT@lip6.fr - -.so man1/alc_bug_report.1 diff --git a/alliance/src/mbkspice/etc/Makefile.am b/alliance/src/mbkspice/etc/Makefile.am deleted file mode 100644 index 2e75ab10..00000000 --- a/alliance/src/mbkspice/etc/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -# $Id: Makefile.am,v 1.4 2002/05/08 21:07:25 jpc Exp $ - -etcdir=$(prefix)/etc - -etc_DATA=spimodel.cfg - -EXTRA_DIST=$(etc_DATA) - diff --git a/alliance/src/mbkspice/etc/spimodel.cfg b/alliance/src/mbkspice/etc/spimodel.cfg deleted file mode 100644 index 8b53f6f7..00000000 --- a/alliance/src/mbkspice/etc/spimodel.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# MBK_SPI_MODEL -# configure the transistor models of spi parser/driver -# - -TN N -TP P - diff --git a/alliance/src/mbkspice/src/Makefile.am b/alliance/src/mbkspice/src/Makefile.am deleted file mode 100644 index 1e266634..00000000 --- a/alliance/src/mbkspice/src/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -lib_LTLIBRARIES = libMsl.la -include_HEADERS = msl.h -libMsl_la_SOURCES = spi_drive.c spi_drive.h spi_global.c spi_global.h \ - spi_hash.c spi_hash.h spi_int.c spi_int.h spi_msg.c \ - spi_msg.h spi_parse.c spi_parse.h \ - msl.h -libMsl_la_LDFLAGS = -version-info @MSL_DLL_VERSION@ diff --git a/alliance/src/mbkvhdl/Makefile.am b/alliance/src/mbkvhdl/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/mbkvhdl/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/mbkvhdl/configure.in b/alliance/src/mbkvhdl/configure.in deleted file mode 100644 index 2b0b23bd..00000000 --- a/alliance/src/mbkvhdl/configure.in +++ /dev/null @@ -1,49 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.3 2002/10/16 18:04:26 jpc Exp $ -dnl -dnl -AC_INIT(src/mvl_drive.c) -MVL_DLL_VERSION=4:1:0 -AC_SUBST(MVL_DLL_VERSION) -AM_INIT_AUTOMAKE(mbkvhdl, 4.1) -AC_PROG_INSTALL -AC_PROG_CC -AC_PROG_YACC -AM_PROG_LEX -AC_HEADER_STDC -AC_CHECK_HEADERS(strings.h unistd.h) -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/mbkvhdl/src/Makefile.am b/alliance/src/mbkvhdl/src/Makefile.am deleted file mode 100644 index 800ed242..00000000 --- a/alliance/src/mbkvhdl/src/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -YFLAGS = -d -AM_CFLAGS = -I$(top_srcdir)/mbk/src -lib_LTLIBRARIES = libMvl.la - -libMvl_la_SOURCES = mvl_drive.c mvl_parse.h mvl_sspec.c mvl_syacc.h mvl_utype.h \ -mvl_drive.h mvl_scomp_l.l mvl_sspec.h mvl_utdef.h \ -mvl.h mvl_scomp_y.y mvl_stdef.h mvl_util.c \ -mvl_parse.c mvl_slex.h mvl_stype.h mvl_util.h - -libMvl_la_LDFLAGS = -version-info @MVL_DLL_VERSION@ - -CLEANFILES = mvl_scomp_y.c mvl_scomp_y.h mvl_scomp_l.c - -mvl_scomp_y.c mvl_scomp_y.h : $(srcdir)/mvl_scomp_y.y - $(YACC) $(YFLAGS) $(srcdir)/mvl_scomp_y.y && sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" y.tab.c > mvl_scomp_y.c && sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" y.tab.h > mvl_scomp_y.h -mvl_scomp_l.c : $(srcdir)/mvl_scomp_l.l mvl_scomp_y.h - $(LEX) -t $(srcdir)/mvl_scomp_l.l | sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" > mvl_scomp_l.c diff --git a/alliance/src/mbkvhdl/src/mvl.h b/alliance/src/mbkvhdl/src/mvl.h deleted file mode 100644 index 9c45279e..00000000 --- a/alliance/src/mbkvhdl/src/mvl.h +++ /dev/null @@ -1 +0,0 @@ -/* This file is needed */ diff --git a/alliance/src/mbkvhdl/src/mvl_drive.c b/alliance/src/mbkvhdl/src/mvl_drive.c deleted file mode 100644 index f432d4e1..00000000 --- a/alliance/src/mbkvhdl/src/mvl_drive.c +++ /dev/null @@ -1,414 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_drive.c */ -/* date : Sep 24 1993 */ -/* author : VUONG Huu Nghia */ -/* description : This file contains a MBK-->VHDL driver : */ -/* functions : vhdlsavelofig() */ -/* */ -/* ###--------------------------------------------------------------### */ - -#include -#include -#include -#include -#include -#include -#include -#include "mvl_utype.h" -#include "mvl_utdef.h" -#include "mvl_drive.h" - -/* ###--------------------------------------------------------------### */ -/* function : vhdlsavelofig */ -/* description : print out a texte file containing a structural VHDL */ -/* description */ -/* called func. : mvl_vhdlname , getsigname, mvl_message, mvl_error ,*/ -/* mvl_toolbug, getptype, reverse, mvl_abl2str */ -/* */ -/* ###--------------------------------------------------------------### */ -void vhdlsavelofig (ptfig) - -struct lofig *ptfig; - { - extern char *getsigname (); - struct loins *ptins = NULL; - struct locon *ptcon = NULL; - struct locon *ptscan = NULL; - struct losig *ptsig = NULL; - struct chain *ptmodel = NULL; - struct chain *ptchain = NULL; - struct chain *sig_list = NULL; - FILE *ptfile ; - time_t clock ; - char *mode = NULL; - char *name ; - char *sig_name ; - int left ; - int right ; - int i ; - char new_name[200]; - char first = 1 ; - char* bit_type, *vect_type, *bus_type; - - - if (ptfig == NULL) - mvl_toolbug (10, "mvl_decomp", NULL, 0); - - /* ###------------------------------------------------------### */ - /* Opening result file */ - /* ###------------------------------------------------------### */ - - if ((ptfile = mbkfopen (ptfig->NAME, "vst", "w")) == NULL) - { - mvl_error (107, NULL); - exit (1); - } - - time (&clock); - fprintf (ptfile,"-- VHDL structural description generated from `%s`\n", - ptfig->NAME); - fprintf (ptfile,"--\t\tdate : %s\n\n",ctime(&clock)); - - /* ###------------------------------------------------------### */ - /* Entity declaration */ - /* ###------------------------------------------------------### */ - - fprintf (ptfile,"-- Entity Declaration\n\n"); - fprintf (ptfile,"ENTITY %s IS\n", mvl_vhdlname (ptfig->NAME)); - - /* ###------------------------------------------------------### */ - /* Port declaration */ - /* ###------------------------------------------------------### */ - - if (ptfig->LOCON != NULL) - { - fprintf (ptfile," PORT (\n"); - ptfig->LOCON = (struct locon *) reverse ((chain_list *)ptfig->LOCON); - ptcon = ptfig->LOCON; - while (ptcon != NULL) - {/*modified by Francois Donnet 29/08/2000 */ - switch (ptcon->DIRECTION) - { - case IN: - mode = namealloc ("in"); - vect_type = "BIT_VECTOR"; - bit_type = "BIT"; - bus_type = ""; - break; - case OUT: - mode = namealloc ("out"); - vect_type = "BIT_VECTOR"; - bit_type = "BIT"; - bus_type = ""; - break; - case INOUT: - mode = namealloc ("inout"); - vect_type = "BIT_VECTOR"; - bit_type = "BIT"; - bus_type = ""; - break; - case TRANSCV: - mode = namealloc ("inout"); - vect_type = "MUX_VECTOR"; - bit_type = "MUX_BIT"; - bus_type = "bus"; - break; - case TRISTATE: - mode = namealloc ("out"); - vect_type = "MUX_VECTOR"; - bit_type = "MUX_BIT"; - bus_type = "bus"; - break; - case 'X': default: - mode = namealloc ("linkage"); - vect_type = "BIT_VECTOR"; - bit_type = "BIT"; - bus_type = ""; - break; - } - ptcon = (struct locon *) mvl_vectnam (ptcon,&left,&right,&name,1); - if (left != -1) - { - fprintf (ptfile," %s : %s %s(%d %s %d) %s", - mvl_vhdlname (name), mode, vect_type, left, - (left >= right)? "DOWNTO":"TO",right,bus_type); - } - else - { - fprintf (ptfile," %s : %s %s %s",mvl_vhdlname(name),mode,bit_type,bus_type); - } - - if (ptcon->NEXT != NULL) - fprintf (ptfile,";\t-- %s\n",name); - else - fprintf (ptfile,"\t-- %s\n",name); - - ptcon = ptcon->NEXT; - mbkfree (name); - } - fprintf (ptfile, " );\n"); - } - fprintf (ptfile,"END %s;\n\n",mvl_vhdlname(ptfig->NAME)); - ptfig->LOCON = (struct locon *) reverse ((chain_list *)ptfig->LOCON); - - /* ###------------------------------------------------------### */ - /* Architecture declaration */ - /* ###------------------------------------------------------### */ - - fprintf (ptfile,"-- Architecture Declaration\n\n"); - fprintf (ptfile,"ARCHITECTURE VST OF %s IS\n", - mvl_vhdlname(ptfig->NAME)); - - /* ###------------------------------------------------------### */ - /* Component declaration : first make a list of models, then */ - /* for each model print out a "component declaration" */ - /* ###------------------------------------------------------### */ - - ptmodel = NULL; - for (ptins = ptfig->LOINS; ptins; ptins = ptins->NEXT) - { - for (ptchain = ptmodel ; ptchain ; ptchain = ptchain->NEXT) - { - if (((struct loins *)ptchain->DATA)->FIGNAME == ptins->FIGNAME) - break; - } - if (ptchain == NULL) - ptmodel = addchain(ptmodel,ptins); - } - - for (ptchain = ptmodel ; ptchain ; ptchain = ptchain->NEXT) - { - ptins = (struct loins *)ptchain->DATA; - fprintf (ptfile," COMPONENT %s\n port (\n", - mvl_vhdlname(ptins->FIGNAME)); - - ptins->LOCON = (struct locon *) reverse ((chain_list *)ptins->LOCON); - ptcon = ptins->LOCON; - while (ptcon != NULL) - { - switch (ptcon->DIRECTION) - { - case IN: - mode = namealloc ("in"); - vect_type = "BIT_VECTOR"; - bit_type = "BIT"; - bus_type = ""; - break; - case OUT: - mode = namealloc ("out"); - vect_type = "BIT_VECTOR"; - bit_type = "BIT"; - bus_type = ""; - break; - case INOUT: - mode = namealloc ("inout"); - vect_type = "BIT_VECTOR"; - bit_type = "BIT"; - bus_type = ""; - break; - case TRANSCV: - mode = namealloc ("inout"); - vect_type = "MUX_VECTOR"; - bit_type = "MUX_BIT"; - bus_type = "bus"; - break; - case TRISTATE: - mode = namealloc ("out"); - vect_type = "MUX_VECTOR"; - bit_type = "MUX_BIT"; - bus_type = "bus"; - break; - case 'X': default: - mode = namealloc ("linkage"); - vect_type = "BIT_VECTOR"; - bit_type = "BIT"; - bus_type = ""; - break; - } - ptcon = (struct locon *) mvl_vectnam (ptcon,&left,&right,&name,1); - if (left != -1) - { - fprintf (ptfile," %s : %s %s(%d %s %d) %s", - mvl_vhdlname (name), mode, vect_type, left, - (left >= right)? "DOWNTO":"TO",right,bus_type); - } - else - { - fprintf (ptfile," %s : %s %s %s",mvl_vhdlname(name),mode,bit_type,bus_type); - } - - if (ptcon->NEXT != NULL) - fprintf(ptfile, ";\t-- %s\n",name); - else - fprintf(ptfile, "\t-- %s\n",name); - - ptcon = ptcon->NEXT; - free(name); - } - ptins->LOCON = (struct locon *) reverse ((chain_list *)ptins->LOCON); - fprintf (ptfile, " );\n END COMPONENT;\n\n"); - } - - freechain (ptmodel); - - /* ###------------------------------------------------------### */ - /* Signal declaration */ - /* ###------------------------------------------------------### */ - - ptsig = ptfig->LOSIG; - while (ptsig != NULL) - { - if (ptsig->TYPE == 'I') - { - fprintf (ptfile," SIGNAL %s : BIT;\t-- %s\n", - mvl_vhdlname(getsigname(ptsig)),getsigname(ptsig)); - } - ptsig = ptsig->NEXT; - } - - /* ###------------------------------------------------------### */ - /* Description block */ - /* ###------------------------------------------------------### */ - - fprintf (ptfile,"\nBEGIN\n\n"); - ptfig->LOINS = (struct loins *) reverse ((chain_list *)ptfig->LOINS); - - for (ptins = ptfig->LOINS; ptins; ptins = ptins->NEXT) - { - /* ###------------------------------------------------------### */ - /* Instantiation of a model */ - /* ###------------------------------------------------------### */ - - fprintf (ptfile," %s : %s\n PORT MAP (\n", - mvl_vhdlname(ptins->INSNAME),mvl_vhdlname(ptins->FIGNAME)); - ptcon = ptins->LOCON; - while (ptcon != NULL) - { - mvl_vectnam (ptcon,&left,&right,&name,1); - fprintf (ptfile," %s => ",mvl_vhdlname (name)); - - if (left != -1) - { - /* ###------------------------------------------------------### */ - /* The connected signals are bused */ - /* ###------------------------------------------------------### */ - - for (i=abs(left-right) ; i>=0 ; i--) - { - ptsig = ptcon->SIG; - if (ptsig->TYPE == 'I') - { - /* ###-------------------------------------------------### */ - /* The signal is internal */ - /* ###-------------------------------------------------### */ - - sig_name = namealloc (mvl_vhdlname(getsigname(ptsig))); - sig_list = addchain (sig_list, sig_name); - } - else - { - /* ###-------------------------------------------------### */ - /* The signal is external */ - /* ###-------------------------------------------------### */ - - for (ptscan = ptfig->LOCON ; ptscan ; ptscan = ptscan->NEXT) - { - if (ptscan->SIG == ptsig) - break; - } - if (ptscan == NULL) - { - printf ("\n*** mbk error *** no external connector \n"); - printf (" driving vhdl file %s\n", ptfig->NAME); - } - else - { - mvl_name (ptscan->NAME,new_name); - sig_name = namealloc (new_name); - sig_list = addchain (sig_list, sig_name); - } - } - if (i > 0) - ptcon = ptcon->NEXT; - } - - first = 1; - while (sig_list != NULL) - { - if (first != 1) - { - fprintf (ptfile,"& %s",(char *)(sig_list->DATA)); - } - else - { - fprintf (ptfile,"%s",(char *)(sig_list->DATA)); - first = 0; - } - sig_list = sig_list->NEXT; - } - } - else - { - /* ###------------------------------------------------------### */ - /* The connected signals is simple */ - /* ###------------------------------------------------------### */ - - ptsig = ptcon->SIG; - if (ptsig->TYPE == 'I') - { - fprintf (ptfile, "%s", mvl_vhdlname (getsigname(ptsig))); - } - else - { - for (ptscan = ptfig->LOCON ; ptscan ; ptscan = ptscan->NEXT) - { - if (ptscan->SIG == ptsig) - break; - } - if (ptscan == NULL) - { - printf ("\n*** mbk error *** no external connector \n"); - printf (" driving vhdl file %s\n", ptfig->NAME); - } - else - { - mvl_name (ptscan->NAME,new_name); - fprintf(ptfile, "%s", new_name); - } - } - } - if (ptcon->NEXT != NULL) - fprintf (ptfile, ",\n"); - ptcon = ptcon->NEXT; - free(name); - } - fprintf(ptfile, ");\n"); - } - ptfig->LOINS = (struct loins *) reverse ((chain_list *)ptfig->LOINS); - fprintf (ptfile, "\nend VST;\n"); - fclose (ptfile); - } diff --git a/alliance/src/mbkvhdl/src/mvl_drive.h b/alliance/src/mbkvhdl/src/mvl_drive.h deleted file mode 100644 index 5a39a611..00000000 --- a/alliance/src/mbkvhdl/src/mvl_drive.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_drive.h */ -/* date : Nov 12 91 */ -/* author : L.A. TABUSSE & P. BAZARGAN-SABET & VUONG H.N. */ -/* */ -/* content : declaration of functions and global variables used by */ -/* the structural MBK-> VHDL driver */ -/* */ -/* ###--------------------------------------------------------------### */ - - -extern void mvl_addtab(); -extern int mvl_chktab(); -extern void mvl_toolbug(); -extern void mvl_message(); -extern void mvl_error(); -extern char *mvl_vhdlname(); -extern void *mvl_name(); -extern char *mvl_abl2str(); -extern void *mvl_vectnam(); -extern char mvl_chkconsistency(); diff --git a/alliance/src/mbkvhdl/src/mvl_parse.c b/alliance/src/mbkvhdl/src/mvl_parse.c deleted file mode 100644 index 2b6eb892..00000000 --- a/alliance/src/mbkvhdl/src/mvl_parse.c +++ /dev/null @@ -1,211 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_parse.c */ -/* date : Feb 15 1995 */ -/* author : L.A TABUSSE & H.N. VUONG & P. BAZARGAN-SABET */ -/* description : Parser VHDL --> MBK */ -/* */ -/* ###--------------------------------------------------------------### */ - -#include -#include -#include -#include -#include -#include "mvl_parse.h" -#include "mvl_utdef.h" - -void vhdlloadlofig (pt_lofig, figname, mode) - -struct lofig *pt_lofig; -char *figname ; -char mode ; - -{ - struct lofig *pt_lofig_tmp; - struct loins *pt_loins ; - struct loins *pt_loinsaux; - struct locon *pt_locon ; - struct locon *pt_loconaux; - struct losig *pt_losig ; - struct losig *pt_losigaux; - char filename[120]; - char local_mbk_fast_mode; - static int call_nbr = 0; - - /* Initialization of some variables */ - MVL_LINNUM = 1; - MVL_MBKMOD = mode; - strcpy (MVL_CURFIL, figname); - - /* FAST_MODE asked for MBK */ - local_mbk_fast_mode = FAST_MODE; - FAST_MODE = 'Y'; - - if ((mode != 'A') && (mode != 'P') && (mode != 'C')) - { - printf("vhdlloadfig : Bad mode '%c' asked\n", mode); - FAST_MODE = local_mbk_fast_mode; - EXIT(1); - } - - /* Opening file */ - mvl_y_in = (FILE *) mbkfopen(figname, IN_LO, READ_TEXT); - if((mvl_y_in == NULL) && (mode == 'P')) - { - strcpy(IN_LO, "vbe"); - mvl_y_in = (FILE *) mbkfopen(figname, IN_LO, READ_TEXT); - } - - if(mvl_y_in == NULL) - { - (void)fprintf(stderr,"\n*** mbk error *** can't open file : %s.%s\n", - figname, IN_LO); - FAST_MODE = local_mbk_fast_mode; - EXIT(1); - } - - /* TRACE_MODE asked for MBK */ - if(TRACE_MODE == 'Y') - { - (void)printf("\n--- mbk --- parsing file : %s.%s in mode : %c\n", - figname, IN_LO, mode); - } - - MVL_LOFPNT = pt_lofig; /* passing main parameter */ - - if (call_nbr != 0) - mvl_y_restart (mvl_y_in); - - call_nbr ++; - - /* -------------------------------------------------------------------*/ - /* Parsing : If mode is P or A, then normal parsing, if mode is C */ - /* then parsing of a new figure, then from the new one, we fill the */ - /* old one. */ - /* -------------------------------------------------------------------*/ - - if((mode == 'P') || (mode == 'A')) - { - if(mvl_y_parse() != 0) - { - (void)fprintf(stderr,"\n*** mbk error *** abnormal parsing for : %s\n",filename); - FAST_MODE = local_mbk_fast_mode; - EXIT(1); - } - } - - if(mode == 'C') - { - /* ---------------------------------------------------------------- */ - /* Saving the lofig pointer, creating a new one to allow the */ - /* parsing of the figure in 'A' mode. */ - /* ---------------------------------------------------------------- */ - pt_lofig_tmp = pt_lofig; - MVL_LOFPNT = (lofig_list *)mbkalloc(sizeof(lofig_list)); - MVL_LOFPNT->MODE = 'A'; - MVL_LOFPNT->NAME = namealloc(figname); - MVL_LOFPNT->MODELCHAIN = NULL; - MVL_LOFPNT->LOINS = NULL; - MVL_LOFPNT->LOTRS = NULL; - MVL_LOFPNT->LOCON = NULL; - MVL_LOFPNT->LOSIG = NULL; - MVL_LOFPNT->BKSIG = NULL; - MVL_LOFPNT->USER = NULL; - MVL_LOFPNT->NEXT = NULL; - - MVL_MBKMOD = 'A'; - - if(mvl_y_parse() != 0) - { - (void)fprintf(stderr,"\n*** mbk error *** abnormal parsing for : %s\n",filename); - FAST_MODE = local_mbk_fast_mode; - EXIT(1); - } - /* ---------------------------------------------------------------- */ - /* Now, with the new figure, we duplicate the new informations */ - /* to fill the old one. */ - /* ---------------------------------------------------------------- */ - pt_lofig = mvl_fill(pt_lofig_tmp, MVL_LOFPNT); - } - - MVL_MBKMOD = mode; - /* Closing file */ - if(fclose(mvl_y_in) != 0) - { - (void)fprintf(stderr,"\n*** mbk error *** can't close file : %s\n",filename); - FAST_MODE = local_mbk_fast_mode; - EXIT(1); - } - - if(strcmp(IN_LO,"vbe") == 0) - { - /* Correction Ludo, Fred, Alain le 25/08/2000 */ - FAST_MODE = local_mbk_fast_mode; - /* Fin correction */ - strcpy(IN_LO,"vst"); - return; - } - - if (mode == 'P' ) - { - pt_locon = MVL_LOFPNT->LOCON; - while (pt_locon != NULL) - { - if (pt_locon->TYPE == 'I') - { - pt_loconaux = pt_locon; - pt_locon = pt_locon->NEXT; - dellocon(MVL_LOFPNT, pt_loconaux->NAME); - } - else - { - /* pt_locon->SIG = NULL; */ - pt_locon = pt_locon->NEXT; - } - } - pt_losig = MVL_LOFPNT->LOSIG; - while (pt_losig != NULL) - { - if (pt_losig->TYPE == 'E') - { - pt_losig = pt_losig->NEXT; - continue; - } - pt_losigaux = pt_losig; - pt_losig = pt_losig->NEXT; - dellosig(MVL_LOFPNT, pt_losigaux->INDEX); - } - pt_loins = MVL_LOFPNT->LOINS; - while (pt_loins != NULL) - { - pt_loinsaux = pt_loins; - pt_loins = pt_loins->NEXT; - delloins(MVL_LOFPNT, pt_loinsaux->INSNAME); - } - } - FAST_MODE = local_mbk_fast_mode; -} diff --git a/alliance/src/mbkvhdl/src/mvl_parse.h b/alliance/src/mbkvhdl/src/mvl_parse.h deleted file mode 100644 index 29b70666..00000000 --- a/alliance/src/mbkvhdl/src/mvl_parse.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_parse.h */ -/* date : Nov 12 1991 */ -/* author : L.A. TABUSSE & H.G. VUONG & P. BAZARGAN-SABET */ -/* description : variable for Parser VHDL --> MBK */ -/* */ -/* ###--------------------------------------------------------------### */ - -/* ###--------------------------------------------------------------### */ - -char MVL_MBKMOD; /* The mode of getlofig */ -char MVL_ERRFLG = 0; /* if = 1 no structure is made */ -int MVL_LINNUM = 1; /* file's line number */ -char MVL_CURFIL[200]; /* current file's name */ - -struct dct_entry **MVL_HSHTAB; /* dictionnary's entry points */ - -extern void mvl_error(); -extern struct lofig *mvl_fill(); - -extern struct dct_entry **mvl_initab(); -extern void mvl_fretab(); - - -/* ###--------------------------------------------------------------### */ - -struct lofig *MVL_LOFPNT = NULL; /* current LOFIG pointer */ - -extern FILE *mvl_y_in; -extern int mvl_y_parse(); -extern void mvl_y_restart(); -extern void mvl_decomp(); - -/* ###--------------------------------------------------------------### */ diff --git a/alliance/src/mbkvhdl/src/mvl_scomp_l.l b/alliance/src/mbkvhdl/src/mvl_scomp_l.l deleted file mode 100644 index bc186108..00000000 --- a/alliance/src/mbkvhdl/src/mvl_scomp_l.l +++ /dev/null @@ -1,306 +0,0 @@ - -%option noinput -%option nounput - -%{ -/*###----------------------------------------------------------------###*/ -/* */ -/* Filename : mvl_scomp.lex */ -/* Authors : L.A. TABUSSE */ -/* VUONG H.N. */ -/* Date : Jan 29 1992 */ -/* Contents : Lexical VHDL Analyser */ -/* For any details refer to the IEEE Standard */ -/* VHDL LRM Chapter 13 : Lexical Elements */ -/* Called func. : namealloc , mbkalloc , find_mc*/ -/* */ -/*###----------------------------------------------------------------###*/ - -#include -#include -#include -#include -#include "mvl_stype.h" -#include "mvl_scomp_y.h" -#include "mvl_slex.h" -#include "mvl_stdef.h" - -/* ###--------------------------------------------------------------### */ -/* function : search */ -/* description : check that an identifier is a reserved word or not */ -/* called func. : addht, addhtitem, gethtitem, namealloc */ -/* ###--------------------------------------------------------------### */ - -static long search (key) - -char *key; - - { - static ht *pt_hash = NULL; - - if (pt_hash == NULL) - { - pt_hash = addht (107); - - addhtitem (pt_hash, namealloc("abs") , ABS ); - addhtitem (pt_hash, namealloc("access") , ACCESS ); - addhtitem (pt_hash, namealloc("after") , AFTER ); - addhtitem (pt_hash, namealloc("alias") , ALIAS ); - addhtitem (pt_hash, namealloc("all") , ALL ); - addhtitem (pt_hash, namealloc("and") , tok_AND ); - addhtitem (pt_hash, namealloc("architecture") , ARCHITECTURE ); - addhtitem (pt_hash, namealloc("array") , ARRAY ); - addhtitem (pt_hash, namealloc("assert") , ASSERT ); - addhtitem (pt_hash, namealloc("attribute") , ATTRIBUTE ); - - addhtitem (pt_hash, namealloc("begin") , _BEGIN ); - addhtitem (pt_hash, namealloc("bit") , BIT ); - addhtitem (pt_hash, namealloc("bit_vector") , BIT_VECTOR ); - addhtitem (pt_hash, namealloc("block") , BLOCK ); - addhtitem (pt_hash, namealloc("body") , BODY ); - addhtitem (pt_hash, namealloc("buffer") , BUFFER ); - addhtitem (pt_hash, namealloc("bus") , BUS ); - - addhtitem (pt_hash, namealloc("case") , CASE ); - addhtitem (pt_hash, namealloc("component") , COMPONENT ); - addhtitem (pt_hash, namealloc("configuration"), CONFIGURATION); - addhtitem (pt_hash, namealloc("constant") , CONSTANT ); - - addhtitem (pt_hash, namealloc("disconnect") , DISCONNECT ); - addhtitem (pt_hash, namealloc("downto") , DOWNTO ); - - addhtitem (pt_hash, namealloc("else") , ELSE ); - addhtitem (pt_hash, namealloc("elsif") , ELSIF ); - addhtitem (pt_hash, namealloc("end") , _END ); - addhtitem (pt_hash, namealloc("entity") , ENTITY ); - addhtitem (pt_hash, namealloc("error") , ERROR ); - addhtitem (pt_hash, namealloc("exit") , _EXIT ); - - addhtitem (pt_hash, namealloc("file") , _FILE ); - addhtitem (pt_hash, namealloc("for") , FOR ); - addhtitem (pt_hash, namealloc("function") , FUNCTION ); - - addhtitem (pt_hash, namealloc("generate") , GENERATE ); - addhtitem (pt_hash, namealloc("generic") , GENERIC ); - addhtitem (pt_hash, namealloc("guarded") , GUARDED ); - - addhtitem (pt_hash, namealloc("if") , IF ); - addhtitem (pt_hash, namealloc("in") , _IN ); - addhtitem (pt_hash, namealloc("inout") , _INOUT ); - addhtitem (pt_hash, namealloc("is") , IS ); - - addhtitem (pt_hash, namealloc("label") , _LABEL ); - addhtitem (pt_hash, namealloc("library") , LIBRARY ); - addhtitem (pt_hash, namealloc("linkage") , _LINKAGE ); - addhtitem (pt_hash, namealloc("loop") , LOOP ); - - addhtitem (pt_hash, namealloc("map") , MAP ); - addhtitem (pt_hash, namealloc("mod") , MOD ); - addhtitem (pt_hash, namealloc("mux_bit") , MUX_BIT ); - addhtitem (pt_hash, namealloc("mux_vector") , MUX_VECTOR ); - - addhtitem (pt_hash, namealloc("nand") , _NAND ); - addhtitem (pt_hash, namealloc("natural") , NATURAL ); - addhtitem (pt_hash, namealloc("new") , NEW ); - addhtitem (pt_hash, namealloc("next") , _NEXT ); - addhtitem (pt_hash, namealloc("nor") , _NOR ); - addhtitem (pt_hash, namealloc("not") , _NOT ); - addhtitem (pt_hash, namealloc("null") , tok_NULL ); - - addhtitem (pt_hash, namealloc("of") , OF ); - addhtitem (pt_hash, namealloc("on") , ON ); - addhtitem (pt_hash, namealloc("open") , OPEN ); - addhtitem (pt_hash, namealloc("or") , _OR ); - addhtitem (pt_hash, namealloc("others") , OTHERS ); - addhtitem (pt_hash, namealloc("out") , _OUT ); - - addhtitem (pt_hash, namealloc("package") , _PACKAGE ); - addhtitem (pt_hash, namealloc("port") , PORT ); - addhtitem (pt_hash, namealloc("procedure") , PROCEDURE ); - addhtitem (pt_hash, namealloc("process") , PROCESS ); - - addhtitem (pt_hash, namealloc("range") , RANGE ); - addhtitem (pt_hash, namealloc("record") , RECORD ); - addhtitem (pt_hash, namealloc("reg_bit") , REG_BIT ); - addhtitem (pt_hash, namealloc("reg_vector") , REG_VECTOR ); - addhtitem (pt_hash, namealloc("register") , REGISTER ); - addhtitem (pt_hash, namealloc("rem") , REM ); - addhtitem (pt_hash, namealloc("report") , REPORT ); - addhtitem (pt_hash, namealloc("return") , RETURN ); - - addhtitem (pt_hash, namealloc("select") , SELECT ); - addhtitem (pt_hash, namealloc("severity") , SEVERITY ); - addhtitem (pt_hash, namealloc("signal") , SIGNAL ); - addhtitem (pt_hash, namealloc("stable") , _STABLE ); - addhtitem (pt_hash, namealloc("subtype") , SUBTYPE ); - - addhtitem (pt_hash, namealloc("then") , THEN ); - addhtitem (pt_hash, namealloc("to") , TO ); - addhtitem (pt_hash, namealloc("transport") , TRANSPORT ); - addhtitem (pt_hash, namealloc("type") , _TYPE ); - - addhtitem (pt_hash, namealloc("units") , UNITS ); - addhtitem (pt_hash, namealloc("until") , UNTIL ); - addhtitem (pt_hash, namealloc("use") , USE ); - - addhtitem (pt_hash, namealloc("variable") , VARIABLE ); - - addhtitem (pt_hash, namealloc("wait") , WAIT ); - addhtitem (pt_hash, namealloc("warning") , WARNING ); - addhtitem (pt_hash, namealloc("when") , WHEN ); - addhtitem (pt_hash, namealloc("while") , WHILE ); - addhtitem (pt_hash, namealloc("with") , WITH ); - addhtitem (pt_hash, namealloc("wor_bit") , WOR_BIT ); - addhtitem (pt_hash, namealloc("wor_vector") , WOR_VECTOR ); - - addhtitem (pt_hash, namealloc("xor") , _XOR ); - } - - return (gethtitem (pt_hash, namealloc(key))); - } - -%} - -upper_case_letter [A-Z] -digit [0-9] -special_character [\#\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\_\|] -space_character [ \t] -format_effector [\t\v\r\l\f] -end_of_line \n -lower_case_letter [a-z] -other_special_character [\!\$\@\?\[\\\]\^\`\{\}\~] - -graphic_character ({basic_graphic_character}|{lower_case_letter}|{other_special_character}) -basic_graphic_character ({upper_case_letter}|{digit}|{special_character}|{space_character}) -letter ({upper_case_letter}|{lower_case_letter}) -letter_or_digit ({letter}|{digit}) -decimal_literal {integer}(\.{integer})?({exponent})? -integer {digit}(_?{digit})* -exponent ([eE][-+]?{integer}) -base {integer} -based_integer {extended_digit}(_?{extended_digit})* -extended_digit ({digit}|[a-fA-F]) -base_specifier (B|b|O|o|X|x) -%% -{space_character} { - /* nothing */ - /* separators */ - } -\& { - return(Ampersand); - } -\' { - return(Apostrophe); - } -\( { - return(LeftParen); - } -\) { - return(RightParen); - } -"**" { - return(DoubleStar); - } -\* { - return(Star); - } -\+ { - return(Plus); - } -\, { - return(Comma); - } -\- { - return(Minus); - } -":=" { - return(VarAsgn); - } -\: { - return(Colon); - } -\; { - return(Semicolon); - } -"<=" { - return(_LESym); - } -">=" { - return(_GESym); - } -\< { - return(_LTSym); - } -\> { - return(_GTSym); - } -= { - return(_EQSym); - } -\/= { - return(_NESym); - } -"=>" { - return(Arrow); - } -"<>" { - return(Box); - } -\| { - return(Bar); - } -! { - return(Bar); - } -\. { - return(Dot); - } -\/ { - return(Slash); - } -{letter}(_?{letter_or_digit})* { - long itoken; - - itoken = search (yytext); - if (itoken == EMPTYHT) - { - yylval.text = namealloc(yytext); - return ( Identifier ); - } - else - { - return ( itoken ); - } - } -({decimal_literal})|({base}#{based_integer}(\.{based_integer})?#({exponent})?)|({base}:{based_integer}(\.{based_integer})?:({exponent})?) { - yylval.text = mbkalloc((size_t)strlen(yytext)+1); - strcpy(yylval.text,yytext); - return ( AbstractLit ); - } -'({graphic_character}|\"|\%)' { - yylval.text = mbkalloc((unsigned long)strlen(yytext)+1); - strcpy(yylval.text,yytext); - return ( CharacterLit ); - } -(\"({graphic_character}|(\"\")|\%)*\")|(\%({graphic_character}|(\%\%)|\")*\%) { - yylval.text = mbkalloc((size_t)strlen(yytext)+1); - strcpy(yylval.text,yytext); - return ( StringLit ); - } -{base_specifier}(\"{extended_digit}(_?{extended_digit})*\"|\%{extended_digit}(_?{extended_digit})*\%) { - yylval.text = mbkalloc((size_t)strlen(yytext)+1); - strcpy(yylval.text,yytext); - return ( BitStringLit ); - } -\n { - /* end of line */ - MVL_LINNUM++; - } -\-\-.*$ { - /* comment */ - /* nothing */ - } -. { - return (*yytext); - } -%% diff --git a/alliance/src/mbkvhdl/src/mvl_scomp_y.y b/alliance/src/mbkvhdl/src/mvl_scomp_y.y deleted file mode 100644 index 8582dc3d..00000000 --- a/alliance/src/mbkvhdl/src/mvl_scomp_y.y +++ /dev/null @@ -1,1466 +0,0 @@ - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_scomp.yac */ -/* date : Sep 24 1993 */ -/* version : v4.06 */ -/* author : P. BAZARGAN, L.A. TABUSSE, VUONG H.N. */ -/* content : yacc rules for structural VHDL */ -/* */ -/* ###--------------------------------------------------------------### */ - -%{ -#include -#include -#include -#include -#include "mvl_stype.h" -#include "mvl_syacc.h" -#include "mvl_stdef.h" - -extern void yyerror (); -extern int yylex (); - -static int MVL_GENFLG = 0 ; /* Indicates if generic */ -static int MVL_CONRNK = 0 ; /* rank of an implicit connexion*/ -static int MVL_SIGIDX = 1 ; /* structural's signal index */ -static int MVL_SIMFLG = 0 ; /* simple flag */ -static int MVL_CONCNT = 0 ; /* connector's count */ -static char *MVL_MODNAM ; /* current model name */ -static char *MVL_CHDNAM ; /* child's model name */ -static char *MVL_LOCNAM ; /* instance's name */ -static struct chain *MVL_NM1LST = NULL; /* 1-st name liste */ -static struct chain *MVL_NM2LST = NULL; /* 2-nd name liste */ -static struct lofig *MVL_CHDPNT = NULL; /* current child pointer */ -static struct lofig *MVL_CHDHED = NULL; /* childs list */ - -%} -%union - { - long valu; - char *text; - char flag; - mvl_name name; - mvl_expr expr; - }; - -%token Ampersand -%token Apostrophe -%token LeftParen -%token RightParen -%token DoubleStar -%token Star -%token Plus -%token Comma -%token Minus -%token VarAsgn -%token Colon -%token Semicolon -%token _LESym -%token Box -%token _LTSym -%token Arrow -%token _EQSym -%token _GESym -%token _GTSym -%token Bar -%token _NESym -%token Dot -%token Slash -%token Identifier -%token DecimalInt -%token DecimalReal -%token AbstractLit -%token BasedInt -%token BasedReal -%token CharacterLit -%token StringLit -%token BitStringLit -%token ABS -%token ACCESS -%token AFTER -%token ALIAS -%token ALL -%token tok_AND -%token ARCHITECTURE -%token ARRAY -%token ASSERT -%token ATTRIBUTE -%token _BEGIN -%token BIT -%token BIT_VECTOR -%token BLOCK -%token BODY -%token BUFFER -%token BUS -%token CASE -%token COMPONENT -%token CONFIGURATION -%token CONSTANT -%token CONVERT -%token DISCONNECT -%token DOWNTO -%token ELSE -%token ELSIF -%token _END -%token ENTITY -%token ERROR -%token _EXIT -%token _FILE -%token FOR -%token FUNCTION -%token GENERATE -%token GENERIC -%token GUARDED -%token IF -%token _INOUT -%token _IN -%token IS -%token _LABEL -%token LIBRARY -%token _LINKAGE -%token LOOP -%token MAP -%token MOD -%token MUX_BIT -%token MUX_VECTOR -%token _NAND -%token NATURAL -%token NATURAL_VECTOR -%token NEW -%token _NEXT -%token _NOR -%token _NOT -%token tok_NULL -%token OF -%token ON -%token OPEN -%token _OR -%token OTHERS -%token _OUT -%token _PACKAGE -%token PORT -%token PROCEDURE -%token PROCESS -%token RANGE -%token RECORD -%token REG_BIT -%token REG_VECTOR -%token REGISTER -%token REM -%token REPORT -%token RETURN -%token SELECT -%token SEVERITY -%token SIGNAL -%token _STABLE -%token SUBTYPE -%token THEN -%token TO -%token TRANSPORT -%token _TYPE -%token UNITS -%token UNTIL -%token USE -%token VARIABLE -%token WAIT -%token WARNING -%token WHEN -%token WHILE -%token WITH -%token WOR_BIT -%token WOR_VECTOR -%token _XOR - -%type .mode. -%type .local_port_mode. -%type type_mark -%type .BUS. -%type .simple_name. -%type simple_name -%type a_label -%type formal_port_name -%type actual_port_name -%type expression -%type relation -%type simple_expression -%type .sign.term..add_op__term.. -%type term -%type factor -%type primary -%type aggregate -%type type_convertion -%type .constraint. -%type constraint -%type range -%type direction -%type abstractlit -%type name -%type slice_name -%type indexed_name -%type generic_expression -%type generic_element_association - -%start design_file - -%% -design_file - : entity_declaration - architecture_body - { - freelomodel (MVL_CHDHED); - mvl_fretab (MVL_HSHTAB); - } - ; - -entity_declaration - : ENTITY - .simple_name. - IS - { - MVL_HSHTAB = mvl_initab (); - MVL_SIMFLG = 0 ; /* simple flag */ - MVL_NM1LST = NULL; /* 1-st name liste */ - MVL_NM2LST = NULL; /* 2-nd name liste */ - MVL_CHDPNT = NULL; /* current child pointer */ - MVL_CHDHED = NULL; /* childs list */ - - MVL_MODNAM = $2; - mvl_addtab (MVL_HSHTAB,MVL_MODNAM,MVL_MODNAM,MVL_MODDFN, - MVL_ROTDFN); - } - .generic_clause. - .port_clause. - END_ERR - .simple_name. - Semicolon_ERR - { - if (($8 != NULL) && ($8 != $2)) - mvl_error (1, $8); - mvl_addtab (MVL_HSHTAB,MVL_MODNAM,MVL_MODNAM,MVL_CCNDFN, - MVL_CONCNT); - MVL_CONCNT = 0; - } - | ENTITY - error - { mvl_error (2, NULL); } - ; - -.generic_clause. - : /*empty*/ - | generic_clause - ; - -generic_clause - : GENERIC - LeftParen - formal_generic_list - RightParen_ERR - Semicolon_ERR - | GENERIC - error - Semicolon_ERR - ; - -formal_generic_list - : formal_generic_element - ...formal_generic_element.. - ; - -...formal_generic_element.. - : /*empty*/ - | ...formal_generic_element.. - Semicolon_ERR - formal_generic_element - ; - -formal_generic_element - : CONSTANT - { MVL_GENFLG = 1; } - identifier_list - { MVL_GENFLG = 0; } - Colon - type_mark - .constraint. - generic_VarAsgn__expression - | error - ; - -generic_VarAsgn__expression - : VarAsgn - generic_expression - ; - -generic_expression - : abstractlit - { $$ = 0; } - | generic_aggregate - { $$ = 0; } - ; - -generic_aggregate - : LeftParen - generic_element_association - ...generic_element_association.. - RightParen_ERR - ; - -...generic_element_association.. - : /* empty */ - | ...generic_element_association.. - Comma - generic_element_association - ; - -generic_element_association - : abstractlit - { $$ = 0; } - ; - -.constraint. - : /*empty*/ - { - $$.LEFT = -1; - $$.RIGHT = -1; - $$.ERR_FLG = 0; - } - | constraint - { $$ = $1; } - ; - -constraint - : LeftParen - range - RightParen_ERR - { $$ = $2; } - ; - -range - : abstractlit - direction - abstractlit - { - $$.LEFT = $1; - $$.RIGHT = $3; - - if ((($1 > $3) && ($2 == MVL_UPTDFN)) || - (($1 < $3) && ($2 == MVL_DWTDFN))) - { - mvl_error (32, NULL); - $$.ERR_FLG = 1; - } - else - $$.ERR_FLG = 0; - } - ; - -direction - : TO - { $$ = MVL_UPTDFN; } - | DOWNTO - { $$ = MVL_DWTDFN; } - ; - -.port_clause. - : /*empty*/ - | port_clause - ; - -port_clause - : PORT - LeftParen - formal_port_list - RightParen_ERR - Semicolon_ERR - | PORT - error - Semicolon_ERR - { mvl_error (3, NULL); } - ; - -formal_port_list - : formal_port_element - ...formal_port_element.. - ; - -...formal_port_element.. - : /*empty*/ - | ...formal_port_element.. - Semicolon_ERR - formal_port_element - ; - -formal_port_element - : .SIGNAL. - identifier_list - Colon - .mode. - type_mark - .constraint. - .BUS. - { - struct losig *losig_pnt; - long sig_width; - long sig_conf; - char *sig_name; - struct chain *sig_list; - long local_err; - - local_err = $6.ERR_FLG; - if ( ($6.LEFT == -1) && (($5 == MVL_BTVDFN) || - ($5 == MVL_MXVDFN) || - ($5 == MVL_WRVDFN))) - { - mvl_error (33, NULL); - } - - if ($6.LEFT <= $6.RIGHT) - sig_width = $6.RIGHT - $6.LEFT + 1; - else - sig_width = $6.LEFT - $6.RIGHT + 1; - - sig_conf = $4 + $5 + $7; - MVL_NM1LST = reverse (MVL_NM1LST); - sig_list = MVL_NM1LST; - while ((sig_list != NULL) && (local_err == 0)) - { - sig_name = (char *)sig_list->DATA; - - if (mvl_chktab (MVL_HSHTAB,sig_name,MVL_MODNAM, - MVL_SIGDFN) != 0) - mvl_error (4, sig_name); - else - { - switch (sig_conf) - { - case (MVL_ICNDFN + MVL_BITDFN + MVL_NORDFN) : - case (MVL_ICNDFN + MVL_BTVDFN + MVL_NORDFN) : - losig_pnt = mvl_addlosig (MVL_LOFPNT,MVL_SIGIDX,'E','0', - sig_name,$6.LEFT,$6.RIGHT); - mvl_addlocon (MVL_LOFPNT,losig_pnt,'I', - sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_OCNDFN + MVL_BITDFN + MVL_NORDFN) : - case (MVL_OCNDFN + MVL_BTVDFN + MVL_NORDFN) : - losig_pnt = mvl_addlosig (MVL_LOFPNT,MVL_SIGIDX,'E','0', - sig_name,$6.LEFT,$6.RIGHT); - mvl_addlocon (MVL_LOFPNT,losig_pnt,'O', - sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_OCNDFN + MVL_MUXDFN + MVL_BUSDFN) : - case (MVL_OCNDFN + MVL_MXVDFN + MVL_BUSDFN) : - mvl_addlosig (MVL_LOFPNT,MVL_SIGIDX,'E','M', - sig_name,$6.LEFT,$6.RIGHT); - mvl_addlocon (MVL_LOFPNT,losig_pnt,'Z', - sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_OCNDFN + MVL_WORDFN + MVL_BUSDFN) : - case (MVL_OCNDFN + MVL_WRVDFN + MVL_BUSDFN) : - losig_pnt = mvl_addlosig (MVL_LOFPNT,MVL_SIGIDX,'E','W', - sig_name,$6.LEFT,$6.RIGHT); - mvl_addlocon (MVL_LOFPNT,losig_pnt,'Z', - sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_BCNDFN + MVL_BITDFN + MVL_NORDFN) : - case (MVL_BCNDFN + MVL_BTVDFN + MVL_NORDFN) : - losig_pnt = mvl_addlosig (MVL_LOFPNT,MVL_SIGIDX,'E','0', - sig_name,$6.LEFT,$6.RIGHT); - mvl_addlocon (MVL_LOFPNT,losig_pnt,'B', - sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_BCNDFN + MVL_MUXDFN + MVL_BUSDFN) : - case (MVL_BCNDFN + MVL_MXVDFN + MVL_BUSDFN) : - losig_pnt = mvl_addlosig (MVL_LOFPNT,MVL_SIGIDX,'E','M', - sig_name,$6.LEFT,$6.RIGHT); - mvl_addlocon (MVL_LOFPNT,losig_pnt,'T', - sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_BCNDFN + MVL_WORDFN + MVL_BUSDFN) : - case (MVL_BCNDFN + MVL_WRVDFN + MVL_BUSDFN) : - losig_pnt = mvl_addlosig (MVL_LOFPNT,MVL_SIGIDX,'E','W', - sig_name,$6.LEFT,$6.RIGHT); - mvl_addlocon (MVL_LOFPNT,losig_pnt,'T', - sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_XCNDFN + MVL_BITDFN + MVL_NORDFN) : - case (MVL_XCNDFN + MVL_BTVDFN + MVL_NORDFN) : - losig_pnt = mvl_addlosig (MVL_LOFPNT,MVL_SIGIDX,'E','0', - sig_name,$6.LEFT,$6.RIGHT); - mvl_addlocon (MVL_LOFPNT,losig_pnt,'X', - sig_name,$6.LEFT,$6.RIGHT); - break; - default : - mvl_error (5, sig_name); - local_err = 1; - break; - } - - if (local_err == 0) - { - mvl_addtab (MVL_HSHTAB,sig_name,MVL_MODNAM,MVL_PNTDFN, - (long)losig_pnt); - mvl_addtab (MVL_HSHTAB,sig_name,MVL_MODNAM,MVL_SIGDFN, - sig_conf); - mvl_addtab (MVL_HSHTAB,sig_name,MVL_MODNAM,MVL_LFTDFN, - $6.LEFT); - mvl_addtab (MVL_HSHTAB,sig_name,MVL_MODNAM,MVL_RGTDFN, - $6.RIGHT); - MVL_CONCNT += sig_width; - MVL_SIGIDX += sig_width; - } - } - - sig_list = sig_list->NEXT; - } - freechain (MVL_NM1LST); - MVL_NM1LST = NULL; - } - | error - { - - /* ###----------------------------------------------### */ - /* The following 3 lines reject tokens until the */ - /* sync. token ('Semicolon') is found */ - /* ###----------------------------------------------### */ - - do - yychar = yylex (); - while ((yychar != Semicolon) && (yychar != 0)); - yyerrok; - - mvl_error (6, NULL); - } - ; - -architecture_body - : ARCHITECTURE - { - if (!strcmp (IN_LO, "vbe")) - YYACCEPT; - } - simple_name - OF - simple_name - IS - { - if ($5 != MVL_MODNAM) - mvl_error (1, $5); - } - architecture_declarative_part - _BEGIN - architecture_statement_part - END_ERR - .simple_name. - Semicolon_ERR - { - if (($12 != NULL) && ($12 != $3)) - mvl_error (7, $12); - } - | ARCHITECTURE - error - { mvl_error (8, NULL); } - ; - -architecture_declarative_part - : ..block_declaration_item.. - ; - -..block_declaration_item.. - : /*empty*/ - | ..block_declaration_item.. - block_declaration_item - ; - -block_declaration_item - : signal_declaration - | component_declaration - | error - Semicolon_ERR - { mvl_error (9, NULL); } - ; - -signal_declaration - : SIGNAL - identifier_list - Colon - type_mark -.constraint. - .BUS. - Semicolon_ERR - { - struct losig *losig_pnt; - long sig_width; - long sig_conf; - char *sig_name; - struct chain *sig_list; - long local_err; - - local_err = $5.ERR_FLG; - if (($5.LEFT==-1) && (($4==MVL_BTVDFN) || ($4==MVL_RGVDFN))) - { - mvl_error (33, NULL); - } - if ($5.LEFT <= $5.RIGHT) - sig_width = $5.RIGHT - $5.LEFT + 1; - else - sig_width = $5.LEFT - $5.RIGHT + 1; - - sig_conf = $4 + $6; - MVL_NM1LST = reverse (MVL_NM1LST); - sig_list = MVL_NM1LST; - while ((sig_list != NULL) && (local_err == 0)) - { - sig_name = (char *)sig_list->DATA; - - if (mvl_chktab (MVL_HSHTAB,sig_name,MVL_MODNAM, - MVL_SIGDFN) != 0) - mvl_error (10, sig_name); - else - { - switch (sig_conf) - { - case (MVL_BITDFN + MVL_NORDFN): - case (MVL_BTVDFN + MVL_NORDFN): - losig_pnt = mvl_addlosig(MVL_LOFPNT,MVL_SIGIDX,'I','0', - sig_name,$5.LEFT,$5.RIGHT); - break; - - case (MVL_MUXDFN + MVL_BUSDFN): - case (MVL_MXVDFN + MVL_BUSDFN): - losig_pnt = mvl_addlosig(MVL_LOFPNT,MVL_SIGIDX,'I','M', - sig_name,$5.LEFT,$5.RIGHT); - break; - - case (MVL_WORDFN + MVL_BUSDFN): - case (MVL_WRVDFN + MVL_BUSDFN): - losig_pnt = mvl_addlosig(MVL_LOFPNT,MVL_SIGIDX,'I','W', - sig_name,$5.LEFT,$5.RIGHT); - break; - - default: - mvl_error (11, sig_name); - local_err = 1; - break; - } - - if (local_err == 0) - { - mvl_addtab (MVL_HSHTAB,sig_name,MVL_MODNAM,MVL_PNTDFN, - (long)losig_pnt); - mvl_addtab (MVL_HSHTAB,sig_name,MVL_MODNAM,MVL_SIGDFN, - sig_conf); - mvl_addtab (MVL_HSHTAB,sig_name,MVL_MODNAM,MVL_LFTDFN, - $5.LEFT); - mvl_addtab (MVL_HSHTAB,sig_name,MVL_MODNAM,MVL_RGTDFN, - $5.RIGHT); - MVL_SIGIDX += sig_width; - } - } - - sig_list = sig_list->NEXT; - } - freechain (MVL_NM1LST); - MVL_NM1LST = NULL; - } - ; - -component_declaration - : COMPONENT - Identifier - { - MVL_CHDNAM = $2; - - if (mvl_chktab (MVL_HSHTAB,MVL_CHDNAM,MVL_MODNAM,MVL_MODDFN) != 0) - { - mvl_error (12, MVL_CHDNAM); - MVL_CHDPNT = NULL; - } - else - { - MVL_CHDHED = addlomodel (MVL_CHDHED,MVL_CHDNAM); - - MVL_CHDPNT = MVL_CHDHED; - mvl_addtab (MVL_HSHTAB,MVL_CHDNAM,MVL_MODNAM,MVL_MODDFN,MVL_CHDDFN); - } - } - .PORT__local_port_list. - END_ERR - COMPONENT - Semicolon_ERR - { - if (MVL_CHDPNT != NULL) - { - mvl_addtab (MVL_HSHTAB,$2,MVL_MODNAM,MVL_CCNDFN,MVL_CONCNT); - MVL_LOFPNT->MODELCHAIN = addchain (MVL_LOFPNT->MODELCHAIN,$2); - } - MVL_CONCNT = 0; - } - ; - -.PORT__local_port_list. - : /*empty*/ - | PORT - LeftParen - local_port_list - RightParen_ERR - Semicolon_ERR - ; - -local_port_list - : local_port_element - ...local_port_element.. - ; - -...local_port_element.. - : /*empty*/ - | ...local_port_element.. - Semicolon_ERR - local_port_element - ; - -local_port_element - : .SIGNAL. - identifier_list - Colon - .local_port_mode. - type_mark -.constraint. - .BUS. - { - long sig_width; - long sig_conf; - char *sig_name; - struct chain *sig_list; - long local_err = 0; - - if (($6.ERR_FLG != 0) || (MVL_CHDPNT == NULL)) - local_err = 1; - - if (($6.LEFT == -1) && (($5 == MVL_BTVDFN) || - ($5 == MVL_MXVDFN) || - ($5 == MVL_WRVDFN)) ) - { - mvl_error (33, NULL); - } - if ($6.LEFT <= $6.RIGHT) - sig_width = $6.RIGHT - $6.LEFT + 1; - else - sig_width = $6.LEFT - $6.RIGHT + 1; - - sig_conf = $4 + $5 + $7; - MVL_NM1LST = reverse (MVL_NM1LST); - sig_list = MVL_NM1LST; - while ((sig_list != NULL) && (local_err == 0)) - { - sig_name = (char *)sig_list->DATA; - if (mvl_chktab (MVL_HSHTAB,sig_name,MVL_CHDNAM, - MVL_SIGDFN) != 0) - mvl_error (4, sig_name); - else - { - switch (sig_conf) - { - case (MVL_ICNDFN + MVL_BITDFN + MVL_NORDFN) : - case (MVL_ICNDFN + MVL_BTVDFN + MVL_NORDFN) : - mvl_addlocon (MVL_CHDPNT,NULL,'I', sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_OCNDFN + MVL_BITDFN + MVL_NORDFN) : - case (MVL_OCNDFN + MVL_BTVDFN + MVL_NORDFN) : - mvl_addlocon (MVL_CHDPNT,NULL,'O', sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_OCNDFN + MVL_MUXDFN + MVL_BUSDFN) : - case (MVL_OCNDFN + MVL_MXVDFN + MVL_BUSDFN) : - mvl_addlocon (MVL_CHDPNT,NULL,'Z', sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_OCNDFN + MVL_WORDFN + MVL_BUSDFN) : - case (MVL_OCNDFN + MVL_WRVDFN + MVL_BUSDFN) : - mvl_addlocon (MVL_CHDPNT,NULL,'Z', sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_BCNDFN + MVL_BITDFN + MVL_NORDFN) : - case (MVL_BCNDFN + MVL_BTVDFN + MVL_NORDFN) : - mvl_addlocon (MVL_CHDPNT,NULL,'B', sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_BCNDFN + MVL_MUXDFN + MVL_BUSDFN) : - case (MVL_BCNDFN + MVL_MXVDFN + MVL_BUSDFN) : - mvl_addlocon (MVL_CHDPNT,NULL,'T', sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_BCNDFN + MVL_WORDFN + MVL_BUSDFN) : - case (MVL_BCNDFN + MVL_WRVDFN + MVL_BUSDFN) : - mvl_addlocon (MVL_CHDPNT,NULL,'T', sig_name,$6.LEFT,$6.RIGHT); - break; - - case (MVL_XCNDFN + MVL_BITDFN + MVL_NORDFN) : - case (MVL_XCNDFN + MVL_BTVDFN + MVL_NORDFN) : - mvl_addlocon (MVL_CHDPNT,NULL,'X', sig_name,$6.LEFT,$6.RIGHT); - break; - - default : - mvl_error (5, sig_name); - local_err = 1; - break; - } - - if (local_err == 0) - { - mvl_addtab (MVL_HSHTAB,MVL_CONCNT,MVL_CHDNAM,MVL_PNTDFN, - sig_name); - mvl_addtab (MVL_HSHTAB,sig_name, MVL_CHDNAM,MVL_SIGDFN, - sig_conf); - mvl_addtab (MVL_HSHTAB,sig_name, MVL_CHDNAM,MVL_RNGDFN, - MVL_CONCNT); - mvl_addtab (MVL_HSHTAB,sig_name, MVL_CHDNAM,MVL_LFTDFN, - $6.LEFT); - mvl_addtab (MVL_HSHTAB,sig_name, MVL_CHDNAM,MVL_RGTDFN, - $6.RIGHT); - MVL_CONCNT += sig_width; - } - } - sig_list = sig_list->NEXT; - } - freechain (MVL_NM1LST); - MVL_NM1LST = NULL; - } - | error - { - - /* ###----------------------------------------------### */ - /* The following 3 lines reject tokens until the */ - /* sync. token ('Semicolon') is found */ - /* ###----------------------------------------------### */ - - do - yychar = yylex (); - while ((yychar != Semicolon) && (yychar != 0)); - yyerrok; - - mvl_error (6, NULL); - } - ; - -architecture_statement_part - : ..concurrent_statement.. - ; - -..concurrent_statement.. - : /*empty*/ - | ..concurrent_statement.. - concurrent_statement - ; - -concurrent_statement - : component_instantiation_statement - | error - Semicolon_ERR - { mvl_error (18, NULL); } - ; - -component_instantiation_statement - : a_label - simple_name - { - long con_count; - long local_err = 0; - - MVL_CONRNK = 0; - MVL_CHDNAM = $2; - MVL_LOCNAM = $1; - - if (mvl_chktab (MVL_HSHTAB,$1,MVL_MODNAM,MVL_LBLDFN) != 0) - { - mvl_error (13, $1); - local_err = 1; - } - - if (mvl_chktab (MVL_HSHTAB,$2,MVL_MODNAM, - MVL_MODDFN) != MVL_CHDDFN) - { - mvl_error (14, $2); - local_err = 1; - } - - if (local_err == 0) - { - mvl_addtab (MVL_HSHTAB,$1,MVL_MODNAM,MVL_LBLDFN,1); - con_count = mvl_chktab (MVL_HSHTAB,$2,MVL_MODNAM,MVL_CCNDFN); - MVL_NM1LST = NULL; - while (con_count != 0) - { - MVL_NM1LST = addchain (MVL_NM1LST,NULL); - con_count--; - } - MVL_CHDPNT = MVL_CHDHED; - while (MVL_CHDPNT != NULL) - { - if (MVL_CHDPNT->NAME == $2) - break; - MVL_CHDPNT = MVL_CHDPNT->NEXT; - } - } - else - MVL_CHDPNT = NULL; - } - .port_map_aspect. - Semicolon_ERR - { - struct locon *locon_pnt ; - struct chain *chain_pnt ; - char tampon [256] ; - - if (MVL_CHDPNT != NULL) - { - MVL_NM1LST = reverse (MVL_NM1LST); - - chain_pnt = MVL_NM1LST; - locon_pnt = MVL_CHDPNT->LOCON; - - while (chain_pnt != NULL) - { - if (chain_pnt->DATA == NULL) - { - MVL_SIGIDX++; - sprintf(tampon,"%s:%s.%s",MVL_CHDNAM,$1,locon_pnt->NAME); - chain_pnt->DATA = mvl_addlosig (MVL_LOFPNT,MVL_SIGIDX, - 'I','0',tampon,-1,-1); - } - chain_pnt = chain_pnt->NEXT; - locon_pnt = locon_pnt->NEXT; - } - - if (MVL_ERRFLG == 0) - addloins (MVL_LOFPNT, $1 , MVL_CHDPNT, MVL_NM1LST ); - } - - freechain (MVL_NM1LST); - MVL_NM1LST = NULL; - MVL_SIMFLG = MVL_UKNDFN; - } - ; - -.port_map_aspect. - : /*empty*/ - | port_map_aspect - ; - -port_map_aspect - : PORT - MAP - LeftParen - association_list - RightParen_ERR - ; - -association_list - : association_element - ...association_element.. - ; - -...association_element.. - : /*empty*/ - | ...association_element.. - Comma - association_element - ; - -association_element - : formal_port_name - Arrow - actual_port_name - { - long sig_width; - long con_pos; - struct chain *sig_list1; - struct chain *sig_list2; - long local_err = 0; - - if (MVL_CHDPNT == NULL) - local_err = 1; - sig_list1 = MVL_NM1LST; - - if (MVL_SIMFLG == MVL_IMPDFN) - sig_list1 = MVL_NM2LST; - MVL_SIMFLG = MVL_EXPDFN; - - if ($1.LEFT <= $1.RIGHT) - sig_width = $1.RIGHT - $1.LEFT + 1; - else - sig_width = $1.LEFT - $1.RIGHT + 1; - - if (local_err == 0) - { - if (sig_width != $3.WIDTH) - mvl_error (38, NULL); - else - { - if (MVL_ERRFLG == 0) - { - con_pos = mvl_chktab (MVL_HSHTAB, $1.NAME, MVL_CHDNAM, - MVL_RNGDFN); - while (con_pos != 0) - { - sig_list1 = sig_list1->NEXT; - con_pos--; - } - sig_list2 = $3.LIST; - while (sig_list2 != NULL) - { - if (sig_list1->DATA != NULL) - { - mvl_error (41, $1.NAME); - break; - } - sig_list1->DATA = sig_list2->DATA; - sig_list2 = sig_list2->NEXT; - sig_list1 = sig_list1->NEXT; - } - } - } - } - freechain ($3.LIST); - } - | actual_port_name - { - struct chain *sig_list1 ; - char *prt_name ; - long prt_width ; - long left_bnd ; - long right_bnd ; - long local_err = 0; - long i ; - - if (MVL_CHDPNT == NULL) - local_err = 1; - - if (MVL_SIMFLG == MVL_UKNDFN) - { - MVL_SIMFLG = MVL_IMPDFN; - MVL_NM2LST = MVL_NM1LST; - } - if (MVL_SIMFLG != MVL_IMPDFN) - { - mvl_error (15, NULL); - local_err = 1; - } - - prt_name = (char *) mvl_chktab (MVL_HSHTAB,MVL_CONRNK, - MVL_CHDNAM,MVL_PNTDFN); - if (prt_name == NULL) - { - local_err = 1; - mvl_error (76, MVL_LOCNAM); - } - - right_bnd = mvl_chktab (MVL_HSHTAB,prt_name,MVL_CHDNAM, - MVL_LFTDFN); - left_bnd = mvl_chktab (MVL_HSHTAB,prt_name,MVL_CHDNAM, - MVL_RGTDFN); - - if (left_bnd <= right_bnd) - prt_width = right_bnd - left_bnd + 1; - else - prt_width = left_bnd - right_bnd + 1; - - if (local_err == 0) - { - if (prt_width != $1.WIDTH) - { - mvl_error (38, NULL); - for (i=0 ; iNEXT; - } - else - { - sig_list1 = $1.LIST; - while (sig_list1 != NULL) - { - MVL_NM2LST->DATA = sig_list1->DATA; - sig_list1 = sig_list1->NEXT; - MVL_NM2LST = MVL_NM2LST->NEXT; - } - } - MVL_CONRNK += prt_width; - } - freechain ($1.LIST); - } - | error - { - - /* ###----------------------------------------------### */ - /* The following 3 lines reject tokens until the */ - /* sync. token ('Comma') is found */ - /* ###----------------------------------------------### */ - - do - yychar = yylex (); - while ((yychar != Comma) && (yychar != 0)); - yyerrok; - - MVL_CONRNK++; - mvl_error (31, NULL); - } - ; - -formal_port_name - : name - { - if (MVL_CHDPNT != NULL) - { - if (mvl_chktab(MVL_HSHTAB,$1.NAME,MVL_CHDNAM,MVL_SIGDFN) != 0) - { - $$.LEFT = mvl_chktab (MVL_HSHTAB,$1.NAME,MVL_CHDNAM, - MVL_LFTDFN); - $$.RIGHT = mvl_chktab (MVL_HSHTAB,$1.NAME,MVL_CHDNAM, - MVL_RGTDFN); - } - else - { - mvl_error (16, $1.NAME); - $$ = $1; - } - } - else - $$ = $1; - } - ; - -actual_port_name - : expression - { $$ = $1; } - ; - -name - : simple_name - { - $$.NAME = $1; - $$.LEFT = -1; - $$.RIGHT = -1; - } - | indexed_name - { $$ = $1; } - | slice_name - { $$ = $1; } - ; - -indexed_name - : simple_name - LeftParen - abstractlit - RightParen_ERR - { - $$.NAME = $1; - $$.LEFT = $3; - $$.RIGHT = $3; - } - ; - -slice_name - : simple_name - constraint - { - $$.NAME = $1; - $$.LEFT = $2.LEFT; - $$.RIGHT = $2.RIGHT; - } - ; - - -expression - : relation - { $$ = $1; } - ; - -relation - : simple_expression - { $$ = $1; } - ; - -simple_expression - : .sign.term..add_op__term.. - { $$ = $1; } - ; - -.sign.term..add_op__term.. - : term - { $$ = $1; } - | .sign.term..add_op__term.. - Ampersand - term - { - struct chain *list1; - - list1 = $1.LIST; - while (list1->NEXT != NULL) - list1 = list1->NEXT; - - list1->NEXT = $3.LIST; - $$.LIST = $1.LIST; - $$.WIDTH = $1.WIDTH + $3.WIDTH; - } - - ; - -term - : factor - { $$ = $1; } - ; - - -factor - : primary - { $$ = $1; } - ; - -primary - : aggregate - { $$ = $1; } - | type_convertion - { $$ = $1; } - | name - { - mvl_expr expr; - struct losig *losig_pnt; - long i; - long left; - long right; - long left_bnd; - long right_bnd; - long sig_width; - long rev_flg; - long in_bound; - long out_bound; - - if (mvl_chktab (MVL_HSHTAB,$1.NAME,MVL_MODNAM,MVL_SIGDFN) != 0) - { - left_bnd = mvl_chktab (MVL_HSHTAB,$1.NAME,MVL_MODNAM, - MVL_LFTDFN); - right_bnd = mvl_chktab (MVL_HSHTAB,$1.NAME,MVL_MODNAM, - MVL_RGTDFN); - - if ($1.LEFT == -1) - { - left = left_bnd; - right = right_bnd; - } - else - { - left = $1.LEFT; - right = $1.RIGHT; - } - - if (left_bnd <= right_bnd) - { - sig_width = right_bnd - left_bnd + 1; - if (left <= right) - { - expr.WIDTH = right - left + 1; - rev_flg = 0; - in_bound = right_bnd - right; - out_bound = right_bnd - left; - if ((left < left_bnd) || (right > right_bnd)) - mvl_error (36, $1.NAME); - } - else - { - expr.WIDTH = left - right + 1; - rev_flg = 1; - in_bound = right_bnd - left; - out_bound = right_bnd - right; - if ((left > right_bnd) || (right < left_bnd)) - mvl_error (36, $1.NAME); - } - } - else - { - sig_width = left_bnd - right_bnd + 1; - if (left <= right) - { - expr.WIDTH = right - left + 1; - rev_flg = 1; - in_bound = left - right_bnd; - out_bound = right - right_bnd; - if ((left < right_bnd) || (right > left_bnd)) - mvl_error (36, $1.NAME); - } - else - { - expr.WIDTH = left - right + 1; - rev_flg = 0; - in_bound = right - right_bnd; - out_bound = left - right_bnd; - if ((left > left_bnd) || (right < right_bnd)) - mvl_error (36, $1.NAME); - } - } - - losig_pnt = (struct losig *) - mvl_chktab (MVL_HSHTAB,$1.NAME,MVL_MODNAM, - MVL_PNTDFN); - expr.LIST = NULL; - for (i=0 ; i= in_bound) - expr.LIST = addchain (expr.LIST,losig_pnt); - if (i >= out_bound) - break; - losig_pnt = losig_pnt->NEXT; - } - if (rev_flg == 1) - expr.LIST = reverse (expr.LIST); - } - else - { - mvl_error (17, $1.NAME); - expr.WIDTH = 1; - expr.LIST = addchain (NULL,NULL); - } - $$ = expr; - } - ; - -aggregate - : LeftParen - expression - RightParen_ERR - { $$ = $2; } - ; - -type_convertion - : CONVERT - LeftParen - expression - RightParen_ERR - { $$ = $3; } - ; - - -.SIGNAL. - : /*empty*/ - | SIGNAL - ; - -.local_port_mode. - : /*empty*/ - { $$ = MVL_ICNDFN; } - | _IN - { $$ = MVL_ICNDFN; } - | _OUT - { $$ = MVL_OCNDFN; } - | _INOUT - { $$ = MVL_BCNDFN; } - | _LINKAGE - { - mvl_warning (2, NULL); - $$ = MVL_XCNDFN; - } - ; - -.mode. - : /*empty*/ - { $$ = MVL_ICNDFN; } - | _IN - { $$ = MVL_ICNDFN; } - | _OUT - { $$ = MVL_OCNDFN; } - | _INOUT - { $$ = MVL_BCNDFN; } - | _LINKAGE - { $$ = MVL_XCNDFN; } - ; - -type_mark - : BIT - { $$ = MVL_BITDFN; } - | WOR_BIT - { $$ = MVL_WORDFN; } - | MUX_BIT - { $$ = MVL_MUXDFN; } - | BIT_VECTOR - { $$ = MVL_BTVDFN; } - | WOR_VECTOR - { $$ = MVL_WRVDFN; } - | MUX_VECTOR - { $$ = MVL_MXVDFN; } - | NATURAL - { $$ = 0; } - | NATURAL_VECTOR - { $$ = 0; } - ; - -.BUS. - : /*empty*/ - { $$ = MVL_NORDFN; } - | BUS - { $$ = MVL_BUSDFN; } - ; - -identifier_list - : Identifier - { - if (MVL_GENFLG != 1) - MVL_NM1LST = addchain (MVL_NM1LST,$1); - } - ...identifier.. - ; - -...identifier.. - : /*empty*/ - | ...identifier.. - Comma - Identifier - { - if (MVL_GENFLG != 1) - MVL_NM1LST = addchain (MVL_NM1LST,$3); - } - ; - -a_label - : Identifier - Colon - { $$ = $1; } - ; - -.simple_name. - : /*empty*/ - { $$ = NULL; } - | simple_name - { $$ = $1; } - ; - -simple_name - : Identifier - { $$ = $1; } - ; - -Semicolon_ERR - : Semicolon - { yyerrok; } - ; - -abstractlit - : AbstractLit - { $$ = atol ($1); } - ; - -RightParen_ERR - : RightParen - { yyerrok; } - ; - -END_ERR - : _END - { yyerrok; } - ; - -%% diff --git a/alliance/src/mbkvhdl/src/mvl_slex.h b/alliance/src/mbkvhdl/src/mvl_slex.h deleted file mode 100644 index 085d77b0..00000000 --- a/alliance/src/mbkvhdl/src/mvl_slex.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_slex.h */ -/* date : Nov 6 91 */ -/* author : TABUSSE L.A. */ -/* */ -/* content : declaration of functions and global variables used by */ -/* lex */ -/* */ -/* ###--------------------------------------------------------------### */ - -#include "mvl_stdef.h" - -extern int MVL_LINNUM; /* file's line number */ - -typedef struct { - char nom[MVL_LG_MC]; - int kval; - } el_mc; - diff --git a/alliance/src/mbkvhdl/src/mvl_sspec.c b/alliance/src/mbkvhdl/src/mvl_sspec.c deleted file mode 100644 index 51b7e742..00000000 --- a/alliance/src/mbkvhdl/src/mvl_sspec.c +++ /dev/null @@ -1,145 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_sspec.yac */ -/* date : Jan 29 1992 */ -/* author : P. BAZARGAN */ -/* L.A. TABUSSE */ -/* VUONG H.N. */ -/* */ -/* content : these functions are used to build up MBK's structures */ -/* */ -/* ###--------------------------------------------------------------### */ - -#include -#include -#include -#include "mvl_stype.h" -#include "mvl_sspec.h" -#include "mvl_stdef.h" - -/* ###--------------------------------------------------------------### */ -/* function : mvl_addlosig */ -/* description : create one or more losig structures (for an array a */ -/* losig is created for each bit) */ -/* called func. : addlosig, addchain */ -/* ###--------------------------------------------------------------### */ - -struct losig *mvl_addlosig (ptfig, index, type, ptype, name, left, right) - -lofig_list *ptfig; /* pointer on LOFIG structure */ -int index; /* index of the first signal */ -char type ; /* signal's type */ -char ptype; /* signal's resolution function */ -char *name ; /* signal's name */ -short left ; /* array's left bound (= -1 if scalar) */ -short right; /* array's right bound (= -1 if scalar) */ - - { - char extname[100]; - short i ; - short inc = 1; - struct chain *pt_chlst ; - struct losig *ptsig = NULL; - - if ((left==-1) && (right==-1)) - { - pt_chlst = addchain (NULL, name); - ptsig = addlosig (ptfig, index, pt_chlst, type); - - if (ptype != '0') - ptsig->USER = addptype (ptsig->USER, ptype, NULL); - } - else - { - if (left >= right) /* array */ - inc = -1; - - for (i=left ; i!=(right+inc) ; i+=inc) - { - sprintf (extname, "%s %d", name, i); - pt_chlst = addchain (NULL, extname); - ptsig = addlosig (ptfig, index, pt_chlst, type); - - if (ptype != '0') - ptsig->USER = addptype (ptsig->USER, ptype, NULL); - - index++; - } - } - return (ptsig); - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_addlocon */ -/* description : create one or more locon structures (for an array a */ -/* locon is created for each bit) */ -/* called func. : addlocon, addchain */ -/* ###--------------------------------------------------------------### */ - -struct locon *mvl_addlocon (ptfig, ptsig, dir, name, left, right) - -struct lofig *ptfig; /* BEFIG structure's pointer */ -struct losig *ptsig; /* external signal's pointer */ -char dir ; /* port's mode */ -char *name ; /* port's name */ -short left ; /* array left bound (= -1 if scalar) */ -short right; /* array right bound (= -1 if scalar) */ - - { - char extname[100]; - short i ; - short inc = 1; - struct locon *ptcon = NULL; - struct locon *ptcontmp ; - - if ((left==-1) && (right==-1)) - { - ptcon = addlocon (ptfig, name, ptsig, dir); - } - else - { - if (left >= right) - inc = -1; - - for (i=left ; i!=(right+inc) ; i+=inc) - { - sprintf (extname, "%s %d", name, i); - ptcon = addlocon (ptfig, extname, NULL, dir); - } - - if (ptsig != NULL) - { - ptcontmp = ptcon; - for (i=left ; i!=(right+inc) ; i+=inc) - { - ptcontmp->SIG = ptsig; - ptcontmp = ptcontmp->NEXT; - ptsig = ptsig->NEXT; - } - } - } - return (ptcon); - } diff --git a/alliance/src/mbkvhdl/src/mvl_sspec.h b/alliance/src/mbkvhdl/src/mvl_sspec.h deleted file mode 100644 index 51d8ee8d..00000000 --- a/alliance/src/mbkvhdl/src/mvl_sspec.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_sspec.h */ -/* authors : VUONG H.N., L.A. TABUSSE, P. BAZARGAN */ -/* date : Aug 31 91 */ -/* content : contains all specific functions used to build */ -/* structural data structures, unless they are in */ -/* */ -/* ###--------------------------------------------------------------### */ - -losig_list *mvl_addlosig (); -locon_list *mvl_addlocon (); diff --git a/alliance/src/mbkvhdl/src/mvl_stdef.h b/alliance/src/mbkvhdl/src/mvl_stdef.h deleted file mode 100644 index b8eaaf50..00000000 --- a/alliance/src/mbkvhdl/src/mvl_stdef.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_stdef.h */ -/* date : Nov 6 1991 */ -/* author : P.BAZARGAN, L.A.TABUSSE, VUONG H.N. */ -/* content : declaration of defines used in asimut 's structural */ -/* function */ -/* */ -/* ###--------------------------------------------------------------### */ - -#define MVL_LG_MC 15 -#define MVL_NB_MC ((tab_mc-1 + sizeof(tab_mc)/(sizeof(tab_mc[0])) - tab_mc+1)) - -/* ###--------------------------------------------------------------### */ - -#define MVL_UKNDFN 0 /* unknown port map mode */ -#define MVL_EXPDFN 1 /* explicit port map */ -#define MVL_IMPDFN 2 /* implicit port map */ - -/* ###--------------------------------------------------------------### */ - -#define MVL_ROTDFN 1 /* root model */ -#define MVL_CHDDFN 2 /* child model */ - -#define MVL_ICNDFN 1 /* input port */ -#define MVL_OCNDFN 2 /* output port */ -#define MVL_BCNDFN 3 /* inout port */ -#define MVL_XCNDFN 4 /* linkage port */ - -#define MVL_BITDFN 8 /* bit type */ -#define MVL_MUXDFN 16 /* mux_bit type */ -#define MVL_WORDFN 24 /* wor_bit type */ -#define MVL_BTVDFN 40 /* bit_vector type */ -#define MVL_MXVDFN 48 /* mux_vector type */ -#define MVL_WRVDFN 56 /* wor_vector type */ -#define MVL_RGVDFN 64 /* reg_vector type */ -#define MVL_CVTDFN 72 /* convertion type */ -#define MVL_BOLDFN 80 /* boolean type */ - -#define MVL_NORDFN 128 /* non guarded signal */ -#define MVL_BUSDFN 256 /* guarded signal (bus) */ - -#define MVL_MODMSK 7 /* signal mode mask (3 bits) */ -#define MVL_TYPMSK 120 /* signal type mask (4 bits) */ -#define MVL_GRDMSK 896 /* signal guard mask (3 bits) */ - -#define MVL_MODDFN 0 /* mod_val field of dct_recrd */ -#define MVL_SIGDFN 1 /* sig_val field of dct_recrd */ -#define MVL_CCNDFN 2 /* ccn_val field of dct_recrd */ -#define MVL_RNGDFN 3 /* rng_val field of dct_recrd */ -#define MVL_LBLDFN 4 /* lbl_val field of dct_recrd */ -#define MVL_RGTDFN 5 /* rgt_val field of dct_recrd */ -#define MVL_LFTDFN 6 /* lft_val field of dct_recrd */ -#define MVL_PNTDFN 7 /* pnt_val field of dct_recrd */ - -#define MVL_UPTDFN 1 /* direction is up */ -#define MVL_DWTDFN 0 /* direction is down */ diff --git a/alliance/src/mbkvhdl/src/mvl_stype.h b/alliance/src/mbkvhdl/src/mvl_stype.h deleted file mode 100644 index a448fa19..00000000 --- a/alliance/src/mbkvhdl/src/mvl_stype.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_stype.h */ -/* date : Oct 15 1991 */ -/* author : P. BAZARGAN, L.A. TABUSSE, VUONG H.N. */ -/* */ -/* contents : This file contains defines and structure definitions */ -/* for the structural compiler */ -/* */ -/* ###--------------------------------------------------------------### */ - -typedef struct - { - char *NAME; /* identifier name */ - short LEFT; /* vector's left index */ - short RIGHT; /* vector's right index */ - short ERR_FLG; - } -mvl_name; - -typedef struct - { - short WIDTH; /* expression's width */ - struct chain *LIST; /* list of losig pointers */ - } -mvl_expr; diff --git a/alliance/src/mbkvhdl/src/mvl_syacc.h b/alliance/src/mbkvhdl/src/mvl_syacc.h deleted file mode 100644 index ac9e98d5..00000000 --- a/alliance/src/mbkvhdl/src/mvl_syacc.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_syacc.h */ -/* date : Nov 07 1991 */ -/* author : P.BAZARGAN, L.A.TABUSSE, VUONG H.N. */ -/* content : declaration of external functions and global variables*/ -/* used by yacc */ -/* */ -/* ###--------------------------------------------------------------### */ - -extern char MVL_MBKMOD; /* 'A' or 'P' or 'C') */ -extern char MVL_ERRFLG; /* if = 1 no structure is made */ -extern struct lofig *MVL_LOFPNT; /* current LOFIG pointer */ - - -extern struct dct_entry **MVL_HSHTAB; /* dictionnary's entry points */ - -extern struct dct_entry **mvl_initab(); -extern void mvl_addtab(); -extern long mvl_chktab(); -extern void mvl_fretab(); -extern void mvl_error(); -extern void mvl_warning(); - -/* ###--------------------------------------------------------------### */ - -extern losig_list *mvl_addlosig (); -extern locon_list *mvl_addlocon (); - -/* ###--------------------------------------------------------------### */ diff --git a/alliance/src/mbkvhdl/src/mvl_utdef.h b/alliance/src/mbkvhdl/src/mvl_utdef.h deleted file mode 100644 index 322505ed..00000000 --- a/alliance/src/mbkvhdl/src/mvl_utdef.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - - -/* ###---------------------------------------------------------------### */ -/* */ -/* file : mvl_utdef.h */ -/* date : Nov 6 91 */ -/* author : L.A.TABUSSE */ -/* */ -/* content : declaration of external functions and global variables */ -/* used by yacc */ -/* */ -/* ###---------------------------------------------------------------### */ - - -#define MVL_ROTDFN 1 /* root model */ -#define MVL_CHDDFN 2 /* child model */ - - -#define MVL_ICNDFN 1 /* input port */ -#define MVL_OCNDFN 2 /* output port */ -#define MVL_BCNDFN 3 /* inout port */ - -#define MVL_BITDFN 8 /* bit type */ -#define MVL_MUXDFN 16 /* mux_bit type */ -#define MVL_WORDFN 24 /* wor_bit type */ -#define MVL_RBIDFN 32 /* reg_bit type */ -#define MVL_BTVDFN 40 /* bit_vector type */ -#define MVL_MXVDFN 48 /* mux_vector type */ -#define MVL_WRVDFN 56 /* wor_vector type */ -#define MVL_RGVDFN 64 /* reg_vector type */ -#define MVL_CVTDFN 72 /* convertion type */ -#define MVL_BOLDFN 80 /* boolean type */ - -#define MVL_NORDFN 128 /* non guarded signal */ -#define MVL_BUSDFN 256 /* guarded signal (bus) */ -#define MVL_REGDFN 384 /* guarded signal (register)*/ - -#define MVL_MODMSK 7 /* signal mode mask (3 bits) */ -#define MVL_TYPMSK 120 /* signal type mask (4 bits) */ -#define MVL_GRDMSK 896 /* signal guard mask (3 bits) */ - -#define MVL_NAMDFN 0 -#define MVL_NEWDFN 1 - -#define MVL_MODDFN 0 /* mod_val field of dct_recrd */ -#define MVL_SIGDFN 1 /* sig_val field of dct_recrd */ -#define MVL_CCNDFN 2 /* ccn_val field of dct_recrd */ -#define MVL_RNGDFN 3 /* rng_val field of dct_recrd */ -#define MVL_LBLDFN 4 /* lbl_val field of dct_recrd */ -#define MVL_WMXDFN 5 /* wmx_val field of dct_recrd */ -#define MVL_WMNDFN 6 /* wmn_val field of dct_recrd */ -#define MVL_PNTDFN 7 /* pnt_val field of dct_recrd */ - -#define MVL_ALODFN 60 /* minimal size of allocation */ - /* for dct_entry and dct_recrd */ -#define MVL_HSZDFN 97 /* number of entry points in the */ - /* dictionnary */ -#define MVL_MXRDFN 30 diff --git a/alliance/src/mbkvhdl/src/mvl_util.c b/alliance/src/mbkvhdl/src/mvl_util.c deleted file mode 100644 index 6d4e7aa0..00000000 --- a/alliance/src/mbkvhdl/src/mvl_util.c +++ /dev/null @@ -1,970 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_util.c */ -/* date : Jan 06 1993 */ -/* author : P. BAZARGAN-SABET */ -/* update : VUONG H.N. */ -/* */ -/* description : This file contains some utility functions : */ -/* mvl_addtab , mvl_chktab , mvl_fretab , mvl_error , */ -/* mvl_addent , mvl_addrcd , yy_b_error , mvl_y_error , */ -/* yy_v_error , yy_b_wrap , mvl_y_wrap , yy_v_wrap , */ -/* mvl_toolbug, mvl_message, mvl_reverse, mvl_warning, */ -/* mvl_initab , mvl_deltab, */ -/* */ -/* ###--------------------------------------------------------------### */ - -#include -#include -#include -#include -#include "mvl_utype.h" -#include "mvl_util.h" -#include "mvl_utdef.h" - -/* ###--------------------------------------------------------------### */ -/* function : mvl_deltab */ -/* ###--------------------------------------------------------------### */ - -void mvl_deltab (head,key_str,ctx_str) - -struct dct_entry **head; -char *key_str; -char *ctx_str; - - { - long found = 0; - long index; - struct dct_entry *entry_pnt; - struct dct_entry *last_entry = NULL; - struct dct_recrd *recrd_pnt; - struct dct_recrd *last_recrd = NULL; - - index = ((unsigned long)key_str) % MVL_HSZDFN; - entry_pnt = head [index]; - - while (entry_pnt != NULL) - { - if (entry_pnt->key == key_str) - { - found = 1; - break; - } - last_entry = entry_pnt; - entry_pnt = entry_pnt->next; - } - - if (found == 1) - { - found = 0; - recrd_pnt = entry_pnt->data; - while (recrd_pnt != NULL) - { - if (recrd_pnt->key == ctx_str) - { - found = 1; - break; - } - last_recrd = recrd_pnt; - recrd_pnt = recrd_pnt->next; - } - - if (found == 1) - { - if (last_recrd == NULL) - entry_pnt->data = recrd_pnt->next; - else - last_recrd->next = recrd_pnt->next; - - recrd_pnt->next = MVL_DCRHED; - MVL_DCRHED = recrd_pnt; - - if (entry_pnt->data == NULL) - { - if (last_entry == NULL) - head[index] = entry_pnt->next; - else - last_entry->next = entry_pnt->next; - - entry_pnt->next = MVL_DCEHED; - MVL_DCEHED = entry_pnt; - } - } - } - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_initab */ -/* ###--------------------------------------------------------------### */ -struct dct_entry **mvl_initab () - - { - struct dct_entry **head; - long i; - - head = (struct dct_entry **) - mbkalloc (sizeof(struct dct_entry *) * MVL_HSZDFN); - - for (i=0 ; ikey == key_str) - { - found = 1; - break; - } - entry_pnt = entry_pnt->next; - } - - if (found == 0) - { - head[index] = mvl_addent (head[index],key_str); - entry_pnt = head[index]; - } - - found = 0; - recrd_pnt = entry_pnt->data; - while (recrd_pnt != NULL) - { - if (recrd_pnt->key == ctx_str) - { - found = 1; - break; - } - recrd_pnt = recrd_pnt->next; - } - - if (found == 0) - { - entry_pnt->data = mvl_addrcd (entry_pnt->data,ctx_str); - recrd_pnt = entry_pnt->data ; - } - - switch (field) - { - case 0 : - recrd_pnt->fd0_val = valu; - break; - case 1 : - recrd_pnt->fd1_val = valu; - break; - case 2 : - recrd_pnt->fd2_val = valu; - break; - case 3 : - recrd_pnt->fd3_val = valu; - break; - case 4 : - recrd_pnt->fd4_val = valu; - break; - case 5 : - recrd_pnt->fd5_val = valu; - break; - case 6 : - recrd_pnt->fd6_val = valu; - break; - case 7 : - recrd_pnt->pnt_val = valu; - break; - } - - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_chktab */ -/* ###--------------------------------------------------------------### */ -long mvl_chktab (head,key_str,ctx_str,field) - -struct dct_entry **head; -char *key_str; -char *ctx_str; -long field; - - { - long found = 0; - long valu = 0; - struct dct_entry *entry_pnt; - struct dct_recrd *recrd_pnt; - - entry_pnt = head [((unsigned long)key_str) % MVL_HSZDFN]; - - while (entry_pnt != NULL) - { - if (entry_pnt->key == key_str) - { - found = 1; - break; - } - entry_pnt = entry_pnt->next; - } - - if (found == 1) - { - found = 0; - recrd_pnt = entry_pnt->data; - while (recrd_pnt != NULL) - { - if (recrd_pnt->key == ctx_str) - { - found = 1; - break; - } - recrd_pnt = recrd_pnt->next; - } - if (found == 1) - { - switch (field) - { - case 0 : - valu = recrd_pnt->fd0_val; - break; - case 1 : - valu = recrd_pnt->fd1_val; - break; - case 2 : - valu = recrd_pnt->fd2_val; - break; - case 3 : - valu = recrd_pnt->fd3_val; - break; - case 4 : - valu = recrd_pnt->fd4_val; - break; - case 5 : - valu = recrd_pnt->fd5_val; - break; - case 6 : - valu = recrd_pnt->fd6_val; - break; - case 7 : - valu = recrd_pnt->pnt_val; - break; - } - } - } - - return (valu); - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_fretab */ -/* ###--------------------------------------------------------------### */ -void mvl_fretab (pt_hash) - -struct dct_entry **pt_hash; - { - struct dct_entry *pt_entry; - struct dct_entry *pt_nxtentry; - struct dct_recrd *pt_record; - long i; - - if (pt_hash != NULL) - { - for (i=0 ; idata; - - while (pt_record->next != NULL) - pt_record = pt_record->next; - - pt_record->next = MVL_DCRHED; - MVL_DCRHED = pt_entry->data; - - pt_nxtentry = pt_entry->next; - pt_entry->next = MVL_DCEHED; - MVL_DCEHED = pt_entry; - pt_entry = pt_nxtentry; - } - } - } - free (pt_hash); - } - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_error */ -/* ###--------------------------------------------------------------### */ -void mvl_error (code,str1) - -long code; -char *str1; - - { - MVL_ERRFLG++; - if (code < 100) - (void)fprintf (stderr,"`%s` Error %ld line %d :",MVL_CURFIL,code,MVL_LINNUM); - else - { - if (code < 200) - (void)fprintf (stderr,"Error %ld :",code); - } - - switch (code) - { - case 1: - (void) fprintf (stderr,"`%s` is incompatible with the entity name\n",str1); - break; - case 2: - (void) fprintf (stderr,"bad entity declaration\n"); - break; - case 3: - (void) fprintf (stderr,"bad port clause declaration\n"); - break; - case 4: - (void) fprintf (stderr,"port `%s` already declared\n",str1); - break; - case 5: - (void) fprintf (stderr,"illegal port declaration `%s` (mode, type, guard mark)\n",str1); - break; - case 6: - (void) fprintf (stderr,"bad port declaration\n"); - break; - case 7: - (void) fprintf (stderr,"`%s` is incompatible with the architecture name\n",str1); - break; - case 8: - (void) fprintf (stderr,"bad architecture declaration\n"); - break; - case 9: - (void) fprintf (stderr,"illegal declaration\n"); - break; - case 10: - (void) fprintf (stderr,"signal `%s` already declared\n",str1); - break; - case 11: - (void) fprintf (stderr,"illegal signal declaration `%s` (type, guard mark)\n",str1); - break; - case 12: - (void) fprintf (stderr,"component `%s` already declared\n",str1); - break; - case 13: - (void) fprintf (stderr,"instance `%s` already declared\n",str1); - break; - case 14: - (void) fprintf (stderr,"`%s` unknown component\n",str1); - break; - case 15: - (void) fprintf (stderr,"illegal usage of implicit port map description\n"); - break; - case 16: - (void) fprintf (stderr,"`%s` unknown local port\n",str1); - break; - case 17: - (void) fprintf (stderr,"`%s` unknown port or signal\n",str1); - break; - case 18: - (void) fprintf (stderr,"illegal concurrent statement\n"); - break; - case 31: - (void) fprintf (stderr,"bad signal association\n"); - break; - case 32: - (void) fprintf (stderr,"null array not supported\n"); - break; - case 33: - (void) fprintf (stderr,"illegal constraint in declaration of type\n"); - break; - case 36: - (void) fprintf (stderr,"signal `%s` used out of declared range\n",str1); - break; - case 38: - (void) fprintf (stderr,"width or/and type mismatch\n"); - break; - case 41: - (void) fprintf (stderr,"port `%s` connected to more than one signal\n",str1); - break; - case 76: - (void) fprintf (stderr,"instance %s mismatch with the model\n",str1); - break; - case 107: - (void) fprintf (stderr,"Cannot open result file\n"); - break; - case 200: - (void) fprintf (stderr,"\n cannot continue further more.\n"); - (void) fprintf (stderr,"\n Have a nice day...\n"); - break; - - default: - (void) fprintf (stderr,"syntax error\n"); - break; - } - - if (MVL_ERRFLG > MVL_MXRDFN) - { - (void) fprintf (stderr,"Too many errors. Cannot continue further more\n"); - (void) fprintf (stderr,"\n Have a nice day...\n"); - EXIT (1); - } - - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_addent */ -/* ###--------------------------------------------------------------### */ -static struct dct_entry *mvl_addent (head , key) - -struct dct_entry *head; -char *key; - - { - struct dct_entry *entry; - long i; - - if (MVL_DCEHED == NULL) - { - MVL_DCEHED = (struct dct_entry *) - mbkalloc (sizeof(struct dct_entry) * MVL_ALODFN); - - entry = MVL_DCEHED; - for (i=1 ; inext = entry + 1; - entry++; - } - entry->next = NULL; - } - - entry = MVL_DCEHED; - MVL_DCEHED = MVL_DCEHED->next; - - entry->next = head; - entry->data = NULL; - entry->key = key; - - return (entry); - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_addrcd */ -/* ###--------------------------------------------------------------### */ -static struct dct_recrd *mvl_addrcd (head , key) - -struct dct_recrd *head; -char *key; - - { - struct dct_recrd *recrd; - long i; - - if (MVL_DCRHED == NULL) - { - MVL_DCRHED = (struct dct_recrd *) - mbkalloc (sizeof(struct dct_recrd) * MVL_ALODFN); - - recrd = MVL_DCRHED; - for (i=1 ; inext = recrd + 1; - recrd++; - } - recrd->next = NULL; - } - - recrd = MVL_DCRHED; - MVL_DCRHED = MVL_DCRHED->next; - - recrd->next = head; - recrd->fd0_val = 0; - recrd->fd1_val = 0; - recrd->fd2_val = 0; - recrd->fd3_val = 0; - recrd->fd4_val = 0; - recrd->fd5_val = 0; - recrd->fd6_val = 0; - recrd->pnt_val = 0; - recrd->key = key; - - return (recrd); - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl__y_error */ -/* ###--------------------------------------------------------------### */ -void mvl_y_error (str) - -char *str; - { - MVL_ERRFLG++; - (void)fprintf (stderr,"`%s` Error line %d : %s\n",MVL_CURFIL,MVL_LINNUM,str); - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_y_wrap */ -/* ###--------------------------------------------------------------### */ -int mvl_y_wrap () - { - return (1); - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_avers */ -/* ###--------------------------------------------------------------### */ -char *mvl_avers () - { - return ("-- V 1.3 --"); - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_vhdlname */ -/* ###--------------------------------------------------------------### */ -char *mvl_vhdlname (name) - -char *name; - - { - char *new_name; - char *prv_name; - char *tmp_name; - char buffer[200]; - long i,j,flag,number; - static struct dct_entry **namtab=NULL; - - if (namtab == NULL) - namtab = mvl_initab (); - - tmp_name = namealloc (name); - new_name = (char *) mvl_chktab (namtab,tmp_name,NULL,MVL_PNTDFN); - - if (mvl_chktab (namtab,tmp_name,NULL,MVL_NAMDFN) == 0) - { - i = 0; - j = 0; - number = 0; - flag = 1; - while (tmp_name[i] != '\0') - { - buffer[j] = tmp_name[i]; - if ( ((tmp_name[i] >= 'a') && (tmp_name[i] <= 'z')) || - ((tmp_name[i] >= 'A') && (tmp_name[i] <= 'Z')) || - ((tmp_name[i] >= '0') && (tmp_name[i] <= '9') && (i != 0)) || - ((tmp_name[i] == '(') || (tmp_name[i] == ')')) ) - { - flag = 0; - } - else - if ((tmp_name[i] >= '0') && (tmp_name[i] <= '9') && (i == 0)) - { - strcpy( &buffer[ j ], "noname" ); - j += 6; - buffer[j] = tmp_name[i]; - } - else - { - if (flag == 1) buffer[j++] = 'v'; - buffer[j] = '_'; - flag = 1; - } - i++; - j++; - } - if (buffer[j-1] == '_') j--; - buffer[j] = '\0'; - new_name = namealloc (buffer); - - prv_name = new_name; - while (mvl_chktab (namtab,new_name,NULL,MVL_NEWDFN) != 0) - { - new_name = prv_name; - sprintf (buffer,"%s_%ld",new_name,number++); - prv_name = new_name; - new_name = namealloc (buffer); - } - mvl_addtab (namtab,new_name,NULL,MVL_NEWDFN,1); - mvl_addtab (namtab,tmp_name,NULL,MVL_PNTDFN,(long)new_name); - mvl_addtab (namtab,tmp_name,NULL,MVL_NAMDFN,1); - } - - return (new_name); - } - - -/* ###--------------------------------------------------------------### */ -/* function : mvl_name */ -/* ###--------------------------------------------------------------### */ -void mvl_name (name,new_name) - -char *name; -char *new_name; - - { - char *blank_space; - - /* Transformation des blancs en parentheses */ - strcpy(new_name,name); - blank_space = strchr(new_name,' '); - if(blank_space != NULL) - { - *blank_space = '('; - blank_space = strchr(new_name,'\0'); - /* Transformation du dernier caractere en ) */ - if(blank_space != NULL) - { - *blank_space = ')'; - blank_space++; - *blank_space = '\0'; - } - } - strcpy(new_name,mvl_vhdlname(new_name)); - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_vectnam */ -/* ###--------------------------------------------------------------### */ -void *mvl_vectnam(pt_list,left,right,name,type) - -void *pt_list; -long *left, *right; -char **name; -char type; - - { - char *blank_space; - char *sig_name; - char name_tmp[200]; - char number[200]; - losig_list *ptsig; - locon_list *ptcon; - char END = 0; - - /* Case losig_list */ - if(type==0) - { - ptsig = (losig_list *)pt_list; - if (ptsig->TYPE == 'I') - { - *left = *right = -1; - sig_name = getsigname(ptsig); - *name = (char*)mbkalloc(strlen(sig_name) + 1); - strcpy(*name,sig_name); - blank_space = strchr(*name,' '); - if (blank_space != NULL) - { - strcpy(number,blank_space); - *right = atoi(number); - *left = *right; - *blank_space = '\0'; - } - - while(!END) - { - if(ptsig->NEXT != NULL) - { - strcpy(name_tmp,getsigname(ptsig->NEXT)); - blank_space = strchr(name_tmp,' '); - if(blank_space!=NULL) - { - strcpy(number,blank_space); - *blank_space = '\0'; - if(!strcmp(*name,name_tmp)) - { - *left = atoi(number); - ptsig = ptsig->NEXT; - } - else - END = 1; - } - else - END = 1; - } - else - END = 1; - } - return(ptsig); - } - else - { - *name = NULL; - return(ptsig); - } - } - - /*case locon_list */ - if(type==1) - { - ptcon = (locon_list *)pt_list; - /* Extract the name and number of an element */ - *left = *right = -1; - sig_name = ptcon->NAME; - *name = (char *)mbkalloc(strlen(sig_name) + 1); - strcpy(*name,sig_name); - blank_space = strchr(*name,' '); - if (blank_space != NULL) - { - strcpy(number,blank_space); - *right = atoi(number); - *left = *right; - *blank_space = '\0'; - } - - while(END != 1) - { - if(ptcon->NEXT != NULL) - { - strcpy(name_tmp,ptcon->NEXT->NAME); - blank_space = strchr(name_tmp,' '); - if(blank_space!=NULL) - { - strcpy(number,blank_space); - *blank_space = '\0'; - if(!strcmp(*name,name_tmp)) - { - *right = atoi(number); - ptcon = ptcon->NEXT; - } - else - END = 1; - } - else - END = 1; - } - else - END = 1; - } - return(ptcon); - } - /* To avoid Warning from GCC */ - return(NULL); - } - - -/* ###--------------------------------------------------------------### */ -/* function : mvl_reverse */ -/* ###--------------------------------------------------------------### */ -struct chain *mvl_reverse (head) - -struct chain *head; - - { - struct chain *last_pnt = NULL; - struct chain *curr_pnt = NULL; - struct chain *next_pnt = NULL; - - if (head != NULL) - { - last_pnt = head; - curr_pnt = head->NEXT; - last_pnt->NEXT = NULL; - - if (curr_pnt != NULL) - { - next_pnt = curr_pnt->NEXT; - - while (next_pnt != NULL) - { - curr_pnt->NEXT = last_pnt; - - /* ###------------------------------------------------------### */ - /* Now shift the window to the next structure */ - /* ###------------------------------------------------------### */ - - last_pnt = curr_pnt; - curr_pnt = next_pnt; - next_pnt = next_pnt->NEXT; - } - - curr_pnt->NEXT = last_pnt; - } - else - curr_pnt = head; - } - - return (curr_pnt); - } - -/* ###--------------------------------------------------------------### */ -/* function : mvl_fill */ -/* content : Fill a lofig of mode 'P' with another lofig of mode 'A' */ -/* ###--------------------------------------------------------------### */ -struct lofig *mvl_fill (lofig_P, lofig_A) - -struct lofig *lofig_P; -struct lofig *lofig_A; - - { - struct locon *ptlocon_P, *ptlocon_A; - struct chain *ptchain; - struct lofig *ptlofig; - struct losig *ptlosig; - - /* MODELCHAIN */ - ptchain = lofig_P->MODELCHAIN; - lofig_P->MODELCHAIN = lofig_A->MODELCHAIN; - - /* LOCON */ - ptlocon_P = lofig_P->LOCON; - ptlocon_A = lofig_A->LOCON; - - while(ptlocon_A != NULL) - { - if(ptlocon_A->NAME == ptlocon_P->NAME) - { - ptlocon_P->SIG = ptlocon_A->SIG; - } - else - { - (void)fprintf(stderr,"\n*** mbk error *** bad consistency in figure %s,\n external interface are different\n", lofig_P->NAME); - } - ptlocon_A = ptlocon_A->NEXT; - ptlocon_P = ptlocon_P->NEXT; - } - - /* LOSIG */ - ptlosig = lofig_P->LOSIG; - lofig_P->LOSIG = lofig_A->LOSIG; - - /* LOINS */ - lofig_P->LOINS = lofig_A->LOINS; - - /* LOTRS */ - lofig_P->LOTRS = lofig_A->LOTRS; - - /* USER */ - lofig_P->USER = lofig_A->USER; - - /* MODE */ - lofig_P->MODE = 'A'; - - /* Freeing the memory zone unusable */ - - freechain(ptchain); - - while (lofig_A->LOCON != NULL) - { - (void)dellocon(lofig_A, lofig_A->LOCON->NAME); - } - - ptlofig = addlofig(" bidon"); - ptlofig->LOSIG = ptlosig; - (void)dellofig(ptlofig->NAME); - - - - return(lofig_P); - } diff --git a/alliance/src/mbkvhdl/src/mvl_util.h b/alliance/src/mbkvhdl/src/mvl_util.h deleted file mode 100644 index dbb40cd7..00000000 --- a/alliance/src/mbkvhdl/src/mvl_util.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -/* ###--------------------------------------------------------------### */ -/* */ -/* file : mvl_util.h */ -/* date : Oct 4 1991 */ -/* author : P. BAZARGAN-SABET */ -/* */ -/* description : This file contains declaration of global and external */ -/* variables and, functions used in `mvl_util.c` */ -/* */ -/* ###--------------------------------------------------------------### */ - -extern int MVL_LINNUM; /* file's line number */ -extern char MVL_ERRFLG; /* Error flag */ -extern char MVL_CURFIL[]; /* current file name */ - -static struct dct_entry *MVL_DCEHED; /* free dct_entry's head */ -static struct dct_recrd *MVL_DCRHED; /* free dct_recrd's head */ - -static struct dct_entry *mvl_addent(); -static struct dct_recrd *mvl_addrcd(); diff --git a/alliance/src/mbkvhdl/src/mvl_utype.h b/alliance/src/mbkvhdl/src/mvl_utype.h deleted file mode 100644 index b6d178c9..00000000 --- a/alliance/src/mbkvhdl/src/mvl_utype.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of the Alliance CAD System - * Copyright (C) Laboratoire LIP6 - Département ASIM - * Universite Pierre et Marie Curie - * - * Home page : http://www-asim.lip6.fr/alliance/ - * E-mail : mailto:alliance-users@asim.lip6.fr - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Library General Public License as published - * by the Free Software Foundation; either version 2 of the License, or (at - * your option) any later version. - * - * Alliance VLSI CAD System is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General - * Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with the GNU C Library; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - - -/* ###---------------------------------------------------------------### */ -/* */ -/* file : mvl_utype.h */ -/* date : Aug 8 91 */ -/* author : P.BAZARGAN L.A.TABUSSE VUONG H.N. */ -/* */ -/* content : declaration of external functions and global variables */ -/* used by yacc */ -/* */ -/* ###---------------------------------------------------------------### */ - -struct dct_entry - { - struct dct_entry *next; - struct dct_recrd *data; - char *key; - }; - -struct dct_recrd - { - struct dct_recrd *next; - char *key; - short fd0_val; - short fd1_val; - short fd2_val; - short fd3_val; - short fd4_val; - short fd5_val; - short fd6_val; - int pnt_val; - }; diff --git a/alliance/src/mbkvhdlg/Makefile.am b/alliance/src/mbkvhdlg/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/mbkvhdlg/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/mbkvhdlg/configure.in b/alliance/src/mbkvhdlg/configure.in deleted file mode 100644 index a8fea384..00000000 --- a/alliance/src/mbkvhdlg/configure.in +++ /dev/null @@ -1,49 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.5 2002/10/16 18:04:27 jpc Exp $ -dnl -dnl -AC_INIT(src/mvl_drive.c) -MVG_DLL_VERSION=4:1:0 -AC_SUBST(MVG_DLL_VERSION) -AM_INIT_AUTOMAKE(mbkvhdlg, 4.1) -AC_PROG_INSTALL -AC_PROG_CC -AC_PROG_YACC -AM_PROG_LEX -AC_HEADER_STDC -AC_CHECK_HEADERS(strings.h unistd.h) -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/mbkvhdlg/src/Makefile.am b/alliance/src/mbkvhdlg/src/Makefile.am deleted file mode 100644 index 855b160a..00000000 --- a/alliance/src/mbkvhdlg/src/Makefile.am +++ /dev/null @@ -1,34 +0,0 @@ -YFLAGS = -d -AM_CFLAGS = -I$(top_srcdir)/mbk/src -lib_LTLIBRARIES = libMvg.la - -libMvg_la_SOURCES = mvl_drive.c mvl_parse.c mvl_util.c mvl_sspec.c \ - mvl_scomp_y.y mvl_scomp_l.l \ - mvl_drive.h mvl_parse.h mvl_scomp_y.h mvl_slex.h \ - mvl_sspec.h mvl_stdef.h mvl_stype.h mvl_syacc.h \ - mvl_utdef.h mvl_util.h mvl_utype.h \ - vel_chain.c vel_sort.c vel_vect.c vel_drive.c vel_o.c vel_util.c vel_velo.h \ - gen_generic.c gen_generic.h gen_print.c - -libMvg_la_LDFLAGS = -version-info @MVG_DLL_VERSION@ - -CLEANFILES = mvl_scomp_y.c mvl_scomp_y.h mvl_scomp_l.c - -mvl_scomp_y.c mvl_scomp_y.h : $(srcdir)/mvl_scomp_y.y - $(YACC) $(YFLAGS) $(srcdir)/mvl_scomp_y.y && sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" y.tab.c > mvl_scomp_y.c && sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" y.tab.h > mvl_scomp_y.h -mvl_scomp_l.c : $(srcdir)/mvl_scomp_l.l mvl_scomp_y.h - $(LEX) -t $(srcdir)/mvl_scomp_l.l | sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" > mvl_scomp_l.c - -bin_PROGRAMS = x2vy -x2vy_SOURCES = x2vy_main.c -x2vy_LDADD = -L$(top_builddir)/mbk/src -lMlu \ - -L$(top_builddir)/mbkvti/src -lMcl \ - -L$(top_builddir)/mbkedif/src -lMel \ - -L$(top_builddir)/mbkhilo/src -lMhl \ - -L$(top_builddir)/mbkal/src -lMal \ - -L$(top_builddir)/mbkspice/src -lMsl \ - -L$(top_builddir)/mbkvrlog/src -lMgl \ - -L$(top_builddir)/mbkvhdlg/src -L. -lMvg \ - -lMlo \ - -lMut \ - -lRcn diff --git a/alliance/src/mbkvrlog/Makefile.am b/alliance/src/mbkvrlog/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/mbkvrlog/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/mbkvrlog/configure.in b/alliance/src/mbkvrlog/configure.in deleted file mode 100644 index 25cb9b87..00000000 --- a/alliance/src/mbkvrlog/configure.in +++ /dev/null @@ -1,47 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.4 2002/10/16 18:04:27 jpc Exp $ -dnl -dnl -AC_INIT(src/drive_vlog.c) -MGL_DLL_VERSION=0:8:0 -AC_SUBST(MGL_DLL_VERSION) -AM_INIT_AUTOMAKE(mbkverilog, 0.8) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_CHECK_HEADERS(strings.h unistd.h) -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/mbkvrlog/src/Makefile.am b/alliance/src/mbkvrlog/src/Makefile.am deleted file mode 100644 index 69ccd818..00000000 --- a/alliance/src/mbkvrlog/src/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -lib_LTLIBRARIES = libMgl.la -libMgl_la_SOURCES = drive_vlog.c -libMgl_la_LDFLAGS = -version-info @MGL_DLL_VERSION@ diff --git a/alliance/src/mbkvti/Makefile.am b/alliance/src/mbkvti/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/mbkvti/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/mbkvti/configure.in b/alliance/src/mbkvti/configure.in deleted file mode 100644 index a8656638..00000000 --- a/alliance/src/mbkvti/configure.in +++ /dev/null @@ -1,49 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.5 2002/10/16 18:04:27 jpc Exp $ -dnl -dnl -AC_INIT(src/parse_vti_p.c) -MCP_DLL_VERSION=4:9:0 -MCL_DLL_VERSION=4:9:0 -AC_SUBST(MCP_DLL_VERSION) -AC_SUBST(MCL_DLL_VERSION) -AM_INIT_AUTOMAKE(mbkvti, 4.9) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_CHECK_HEADERS(strings.h unistd.h) -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/mbkvti/src/Makefile.am b/alliance/src/mbkvti/src/Makefile.am deleted file mode 100644 index 0ffaff04..00000000 --- a/alliance/src/mbkvti/src/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -lib_LTLIBRARIES = libMcp.la libMcl.la -AM_CFLAGS = -DTECHNO=\"symbolic_cmos\" -I$(top_srcdir)/mbk/src -libMcp_la_SOURCES = drive_vti_p.c drive_vti_p.h parse_vti_p.c mcp.h -libMcl_la_SOURCES = drive_vti_l.c drive_vti_l.h parse_vti_l.c mcl.h -libMcp_la_LDFLAGS = -version-info @MCP_DLL_VERSION@ -libMcl_la_LDFLAGS = -version-info @MCL_DLL_VERSION@ diff --git a/alliance/src/nero/src/Makefile.am b/alliance/src/nero/src/Makefile.am index f7fe2520..3aafefa7 100644 --- a/alliance/src/nero/src/Makefile.am +++ b/alliance/src/nero/src/Makefile.am @@ -4,46 +4,26 @@ CXXFLAGS = -g -O2 #CXXFLAGS = -O2 AM_CXXFLAGS = @ALLIANCE_CFLAGS@ \ --I$(top_srcdir)/abl/src \ --I$(top_srcdir)/aut/src \ --I$(top_srcdir)/beh/src \ --I$(top_srcdir)/genlib/src \ --I$(top_srcdir)/mbk/src + -I$(top_srcdir)/abl/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/beh/src \ + -I$(top_srcdir)/genlib/src \ + -I$(top_srcdir)/mbk/src AM_CFLAGS = @ALLIANCE_CFLAGS@ \ --I$(top_srcdir)/abl/src \ --I$(top_srcdir)/aut/src \ --I$(top_srcdir)/beh/src \ --I$(top_srcdir)/genlib/src \ --I$(top_srcdir)/mbk/src + -I$(top_srcdir)/abl/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/beh/src \ + -I$(top_srcdir)/genlib/src \ + -I$(top_srcdir)/mbk/src bin_PROGRAMS = nero pdv #noinst_PROGRAMS = debug -nero_LDADD = -L$(libdir) @ALLIANCE_LIBS@ \ +nero_LDADD = -L$(libdir) @ALLIANCE_LIBS@ \ ./libU.a \ --L$(top_srcdir)/aut/src \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdlg/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ - -lMpu -lMlu \ - -lMcl -lMcp \ - -lMal -lMap \ - -lMsl \ - -lMel -lMgl \ - -lMhl \ - -lMvg \ - -lMmg \ - -lMlo \ - -lMph -lMut \ - -lRcn \ - -lAut + -L$(top_srcdir)/aut/src \ + -L$(top_srcdir)/mbk/src \ + -lMpu -lMlu -lMlo -lMph -lMut -lRcn -lAut noinst_LIBRARIES = libU.a @@ -71,29 +51,9 @@ libU_a_SOURCES = UConst.cpp \ nero_SOURCES = nero.cpp pdv_LDADD = @ALLIANCE_LIBS@ \ --L$(top_srcdir)/aut/src \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdlg/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ - -lMpu -lMlu \ - -lMcl -lMcp \ - -lMal -lMap \ - -lMsl \ - -lMel -lMgl \ - -lMhl \ - -lMvg \ - -lMmg \ - -lMlo \ - -lMph -lMut \ - -lRcn \ - -lAut + -L$(top_srcdir)/aut/src \ + -L$(top_srcdir)/mbk/src \ + -lMpu -lMlu -lMlo -lMph -lMut -lRcn -lAut pdv_SOURCES = pdv.c diff --git a/alliance/src/ocp/src/common/Makefile.am b/alliance/src/ocp/src/common/Makefile.am index 653a6ea6..b988c40f 100644 --- a/alliance/src/ocp/src/common/Makefile.am +++ b/alliance/src/ocp/src/common/Makefile.am @@ -1,8 +1,8 @@ ## Process this file with automake to produce Makefile.in -AM_CXXFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src -std=c++0x +AM_CXXFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src -std=c++0x -noinst_LIBRARIES = libPCommon.a +noinst_LIBRARIES = libPCommon.a libPCommon_a_SOURCES = PBBox.cpp PBBox.h PCommon.cpp \ PCommon.h PConstants.h PContainer.h \ diff --git a/alliance/src/ocp/src/placer/Makefile.am b/alliance/src/ocp/src/placer/Makefile.am index 322b2c47..132dbf0d 100644 --- a/alliance/src/ocp/src/placer/Makefile.am +++ b/alliance/src/ocp/src/placer/Makefile.am @@ -1,42 +1,23 @@ ## Process this file with automake to produce Makefile.in -YACC = @YACC@ -d +YACC = @YACC@ -d -INCLUDES = -I$(srcdir)/../common +INCLUDES = -I$(srcdir)/../common -AM_CXXFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src -std=c++0x -AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src +AM_CXXFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src -std=c++0x +AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src -bin_PROGRAMS = ocp +bin_PROGRAMS = ocp noinst_LIBRARIES = libOcp.a libOcp_a_SOURCES = PElem.cpp PIns.cpp PNet.cpp \ PCon.cpp -ocp_LDADD = @ALLIANCE_LIBS@ \ - ../common/libPCommon.a \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdlg/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ - -lMpu -lMlu \ - -lMcl -lMcp \ - -lMal -lMap \ - -lMsl \ - -lMel -lMgl \ - -lMhl \ - -lMvg \ - -lMmg \ - -lMlo \ - -lMph -lMut \ - -lRcn +ocp_LDADD = @ALLIANCE_LIBS@ \ + ../common/libPCommon.a \ + -L$(top_srcdir)/mbk/src \ + -lMpu -lMlu -lMlo -lMph -lMut -lRcn ocp_SOURCES = Ocp.cpp PBin.cpp PCon.cpp \ PIns.cpp PMove.cpp PNet.cpp PONet.cpp \ diff --git a/alliance/src/pat/src/Makefile.am b/alliance/src/pat/src/Makefile.am index ea7f75b5..1075ce95 100644 --- a/alliance/src/pat/src/Makefile.am +++ b/alliance/src/pat/src/Makefile.am @@ -1,10 +1,48 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -lib_LTLIBRARIES = libPat.la -include_HEADERS = pat.h -libPat_la_SOURCES = \ -pat_addpacom.c pat_addpaevt.c pat_addpagrp.c pat_addpaini.c \ -pat_addpains.c pat_addpaiol.c pat_addpapat.c pat_addpaseq.c \ -pat_crtpaiol.c pat_error.c pat_frepacom.c pat_frepaevt.c \ -pat_frepaini.c pat_frepaiol.c pat_frepapat.c pat_globals.c \ -pat.h pat_message.c pat_warning.c -libPat_la_LDFLAGS = -version-info @PAT_DLL_VERSION@ +lib_LTLIBRARIES = libPat.la +include_HEADERS = pat.h ppt.h phl.h +libPat_la_SOURCES = pat_addpacom.c pat_addpaevt.c pat_addpagrp.c pat_addpaini.c \ + pat_addpains.c pat_addpaiol.c pat_addpapat.c pat_addpaseq.c \ + pat_crtpaiol.c pat_error.c pat_frepacom.c pat_frepaevt.c \ + pat_frepaini.c pat_frepaiol.c pat_frepapat.c pat_globals.c \ + pat.h pat_message.c pat_warning.c \ + pat_decl_l.l pat_decl_y.y pat_desc_y.y \ + pat_decl.h pat_defs.h \ + pat_desc.h pat_drvpat.c \ + pat_lodpaseq.c pat_pattostr.c pat_prspat.c pat_savpaseq.c \ + pat_type.h ppt.h \ + pat_debug.c pat_debug.h pat_getusage.c phl.h +libPat_la_LDFLAGS = -version-info @PAT_DLL_VERSION@ +libPat_la_LIBADD = -lAut -lMut + +EXTRADIST = pat_decl_y.c pat_decl_y.h pat_desc_y.h pat_desc_y.c \ + pat_decl_l.c + +CLEANFILES = pat_decl_y.c pat_decl_y.h pat_desc_y.h pat_desc_y.c \ + pat_decl_l.c + +pat_decl_y.c pat_decl_y.h : $(srcdir)/pat_decl_y.y + $(YACC) -d $(YFLAGS) $(srcdir)/pat_decl_y.y \ + && sed -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" y.tab.c \ + | sed -e "s/int[ ]*pat_decl_y_char;/extern int pat_decl_y_char;/" \ + | sed -e "s/PAT_DECL_Y_STYPE[ ]*pat_decl_y_lval;/extern PAT_DECL_Y_STYPE pat_decl_y_lval;/" \ + | sed -e "s/int[ ]*pat_decl_y_nerrs;/extern int pat_decl_y_nerrs;/" \ + > pat_decl_y.c \ + && sed -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" y.tab.h > pat_decl_y.h + +pat_decl_l.c : $(srcdir)/pat_decl_l.l pat_decl_y.h + $(LEX) -t $(srcdir)/pat_decl_l.l | sed -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" > pat_decl_l.c + +pat_desc_y.c pat_desc_y.h : $(srcdir)/pat_desc_y.y + $(YACC) -d $(YFLAGS) $(srcdir)/pat_desc_y.y \ + && sed -e "s/yyparse/pat_desc_y_parse/g" y.tab.c \ + | sed -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" > pat_desc_y.c \ + && sed -e "s/yyparse/pat_desc_y_parse/g" y.tab.h \ + | sed -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" > pat_desc_y.h + +#sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" > pat_desc_y.c && sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" y.tab.h > pat_desc_y.h +# sed -e "s/yyin/pat_decl_y_/g" -e "s/yylex/pat_decl_y_lex/g" y.tab.c | + +pat_desc_l.c : $(srcdir)/pat_desc_l.l pat_desc_y.h + $(LEX) -t $(srcdir)/pat_desc_l.l | sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" > pat_desc_l.c + diff --git a/alliance/src/phl/src/pat_debug.c b/alliance/src/pat/src/pat_debug.c similarity index 100% rename from alliance/src/phl/src/pat_debug.c rename to alliance/src/pat/src/pat_debug.c diff --git a/alliance/src/phl/src/pat_debug.h b/alliance/src/pat/src/pat_debug.h similarity index 100% rename from alliance/src/phl/src/pat_debug.h rename to alliance/src/pat/src/pat_debug.h diff --git a/alliance/src/ppt/src/pat_decl.h b/alliance/src/pat/src/pat_decl.h similarity index 100% rename from alliance/src/ppt/src/pat_decl.h rename to alliance/src/pat/src/pat_decl.h diff --git a/alliance/src/ppt/src/pat_decl_l.l b/alliance/src/pat/src/pat_decl_l.l similarity index 100% rename from alliance/src/ppt/src/pat_decl_l.l rename to alliance/src/pat/src/pat_decl_l.l diff --git a/alliance/src/ppt/src/pat_decl_y.y b/alliance/src/pat/src/pat_decl_y.y similarity index 100% rename from alliance/src/ppt/src/pat_decl_y.y rename to alliance/src/pat/src/pat_decl_y.y diff --git a/alliance/src/ppt/src/pat_defs.h b/alliance/src/pat/src/pat_defs.h similarity index 100% rename from alliance/src/ppt/src/pat_defs.h rename to alliance/src/pat/src/pat_defs.h diff --git a/alliance/src/ppt/src/pat_desc.h b/alliance/src/pat/src/pat_desc.h similarity index 100% rename from alliance/src/ppt/src/pat_desc.h rename to alliance/src/pat/src/pat_desc.h diff --git a/alliance/src/ppt/src/pat_desc_y.y b/alliance/src/pat/src/pat_desc_y.y similarity index 100% rename from alliance/src/ppt/src/pat_desc_y.y rename to alliance/src/pat/src/pat_desc_y.y diff --git a/alliance/src/ppt/src/pat_drvpat.c b/alliance/src/pat/src/pat_drvpat.c similarity index 100% rename from alliance/src/ppt/src/pat_drvpat.c rename to alliance/src/pat/src/pat_drvpat.c diff --git a/alliance/src/phl/src/pat_getusage.c b/alliance/src/pat/src/pat_getusage.c similarity index 100% rename from alliance/src/phl/src/pat_getusage.c rename to alliance/src/pat/src/pat_getusage.c diff --git a/alliance/src/ppt/src/pat_lodpaseq.c b/alliance/src/pat/src/pat_lodpaseq.c similarity index 100% rename from alliance/src/ppt/src/pat_lodpaseq.c rename to alliance/src/pat/src/pat_lodpaseq.c diff --git a/alliance/src/ppt/src/pat_pattostr.c b/alliance/src/pat/src/pat_pattostr.c similarity index 100% rename from alliance/src/ppt/src/pat_pattostr.c rename to alliance/src/pat/src/pat_pattostr.c diff --git a/alliance/src/ppt/src/pat_prspat.c b/alliance/src/pat/src/pat_prspat.c similarity index 100% rename from alliance/src/ppt/src/pat_prspat.c rename to alliance/src/pat/src/pat_prspat.c diff --git a/alliance/src/ppt/src/pat_savpaseq.c b/alliance/src/pat/src/pat_savpaseq.c similarity index 100% rename from alliance/src/ppt/src/pat_savpaseq.c rename to alliance/src/pat/src/pat_savpaseq.c diff --git a/alliance/src/ppt/src/pat_type.h b/alliance/src/pat/src/pat_type.h similarity index 100% rename from alliance/src/ppt/src/pat_type.h rename to alliance/src/pat/src/pat_type.h diff --git a/alliance/src/phl/src/phl.h b/alliance/src/pat/src/phl.h similarity index 100% rename from alliance/src/phl/src/phl.h rename to alliance/src/pat/src/phl.h diff --git a/alliance/src/ppt/src/ppt.h b/alliance/src/pat/src/ppt.h similarity index 100% rename from alliance/src/ppt/src/ppt.h rename to alliance/src/pat/src/ppt.h diff --git a/alliance/src/pat2spi/src/Makefile.am b/alliance/src/pat2spi/src/Makefile.am index 35ff6e0a..91047d05 100644 --- a/alliance/src/pat2spi/src/Makefile.am +++ b/alliance/src/pat2spi/src/Makefile.am @@ -1,19 +1,15 @@ ## Process this file with automake to produce Makefile.in -bin_PROGRAMS = pat2spi +bin_PROGRAMS = pat2spi -AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/aut/src \ --I$(top_srcdir)/mbk/src \ --I$(top_srcdir)/pat/src \ --I$(top_srcdir)/ppt/src - -pat2spi_LDADD = @ALLIANCE_LIBS@ \ --L$(top_srcdir)/aut/src \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/pat/src \ --L$(top_srcdir)/phl/src \ --L$(top_srcdir)/ppt/src \ - -lPpt -lPhl -lPat -lAut -lMut +AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/pat/src +pat2spi_LDADD = @ALLIANCE_LIBS@ \ + -L$(top_srcdir)/aut/src \ + -L$(top_srcdir)/mbk/src \ + -L$(top_srcdir)/pat/src \ + -lPat -lAut -lMut pat2spi_SOURCES = pat2spi.c pat2spi.h diff --git a/alliance/src/phl/Makefile.am b/alliance/src/phl/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/phl/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/phl/configure.in b/alliance/src/phl/configure.in deleted file mode 100644 index affe04ea..00000000 --- a/alliance/src/phl/configure.in +++ /dev/null @@ -1,45 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.3 2002/10/16 18:04:28 jpc Exp $ -dnl -dnl -AC_INIT(src/phl.h) -PHL_DLL_VERSION=1:9:0 -AC_SUBST(PHL_DLL_VERSION) -AM_INIT_AUTOMAKE(phl, 1.9) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_C_CONST -AM_PROG_LIBTOOL -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/phl/src/Makefile.am b/alliance/src/phl/src/Makefile.am deleted file mode 100644 index e9d1f278..00000000 --- a/alliance/src/phl/src/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/pat/src -lib_LTLIBRARIES = libPhl.la -include_HEADERS = phl.h -libPhl_la_SOURCES = pat_debug.c pat_debug.h pat_getusage.c phl.h -libPhl_la_LDFLAGS = -version-info @PHL_DLL_VERSION@ diff --git a/alliance/src/ppt/Makefile.am b/alliance/src/ppt/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/ppt/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/ppt/configure.in b/alliance/src/ppt/configure.in deleted file mode 100644 index cbee1c11..00000000 --- a/alliance/src/ppt/configure.in +++ /dev/null @@ -1,48 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.3 2002/10/16 18:04:28 jpc Exp $ -dnl -dnl -AC_INIT(src/ppt.h) -PPT_DLL_VERSION=1:9:0 -AC_SUBST(PPT_DLL_VERSION) -AM_INIT_AUTOMAKE(ppt, 1.9) -AC_PROG_INSTALL -AC_PROG_CC -AC_PROG_YACC -AM_PROG_LEX -AC_HEADER_STDC -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/ppt/src/Makefile.am b/alliance/src/ppt/src/Makefile.am deleted file mode 100644 index b4cca0d1..00000000 --- a/alliance/src/ppt/src/Makefile.am +++ /dev/null @@ -1,41 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/pat/src - -lib_LTLIBRARIES = libPpt.la -include_HEADERS = ppt.h -libPpt_la_SOURCES = pat_decl_l.l pat_decl_y.y pat_desc_y.y\ -pat_decl.h pat_defs.h \ -pat_desc.h pat_drvpat.c \ -pat_lodpaseq.c pat_pattostr.c pat_prspat.c pat_savpaseq.c \ -pat_type.h ppt.h -libPpt_la_LDFLAGS = -version-info @PPT_DLL_VERSION@ - -EXTRADIST = pat_decl_y.c pat_decl_y.h pat_desc_y.h pat_desc_y.c \ - pat_decl_l.c - -CLEANFILES = pat_decl_y.c pat_decl_y.h pat_desc_y.h pat_desc_y.c \ - pat_decl_l.c - -pat_decl_y.c pat_decl_y.h : $(srcdir)/pat_decl_y.y - $(YACC) -d $(YFLAGS) $(srcdir)/pat_decl_y.y \ - && sed -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" y.tab.c \ - | sed -e "s/int[ ]*pat_decl_y_char;/extern int pat_decl_y_char;/" \ - | sed -e "s/PAT_DECL_Y_STYPE[ ]*pat_decl_y_lval;/extern PAT_DECL_Y_STYPE pat_decl_y_lval;/" \ - | sed -e "s/int[ ]*pat_decl_y_nerrs;/extern int pat_decl_y_nerrs;/" \ - > pat_decl_y.c \ - && sed -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" y.tab.h > pat_decl_y.h - -pat_decl_l.c : $(srcdir)/pat_decl_l.l pat_decl_y.h - $(LEX) -t $(srcdir)/pat_decl_l.l | sed -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" > pat_decl_l.c - -pat_desc_y.c pat_desc_y.h : $(srcdir)/pat_desc_y.y - $(YACC) -d $(YFLAGS) $(srcdir)/pat_desc_y.y \ - && sed -e "s/yyparse/pat_desc_y_parse/g" y.tab.c \ - | sed -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" > pat_desc_y.c \ - && sed -e "s/yyparse/pat_desc_y_parse/g" y.tab.h \ - | sed -e "s/yy/pat_decl_y_/g" -e "s/YY/PAT_DECL_Y_/g" > pat_desc_y.h - -#sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" > pat_desc_y.c && sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" y.tab.h > pat_desc_y.h -# sed -e "s/yyin/pat_decl_y_/g" -e "s/yylex/pat_decl_y_lex/g" y.tab.c | - -pat_desc_l.c : $(srcdir)/pat_desc_l.l pat_desc_y.h - $(LEX) -t $(srcdir)/pat_desc_l.l | sed -e "s/yy/pat_desc_y_/g" -e "s/YY/PAT_DESC_Y_/g" > pat_desc_l.c diff --git a/alliance/src/proof/src/Makefile.am b/alliance/src/proof/src/Makefile.am index 3c235c1a..d07a8a32 100644 --- a/alliance/src/proof/src/Makefile.am +++ b/alliance/src/proof/src/Makefile.am @@ -1,21 +1,20 @@ ## Process this file with automake to produce Makefile.in -bin_PROGRAMS = proof +bin_PROGRAMS = proof -AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/beh/src \ --I$(top_srcdir)/bvl/src \ --I$(top_srcdir)/log/src \ --I$(top_srcdir)/mbk/src +AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/beh/src \ + -I$(top_srcdir)/bvl/src \ + -I$(top_srcdir)/log/src \ + -I$(top_srcdir)/mbk/src -proof_LDADD = @ALLIANCE_LIBS@ \ --L$(top_srcdir)/asimut/src \ --L$(top_srcdir)/beh/src \ --L$(top_srcdir)/bhl/src \ --L$(top_srcdir)/bvl/src \ --L$(top_srcdir)/log/src \ --L$(top_srcdir)/mbk/src \ - -lBvl -lBhl -lBeh -lLog -lMut -lCst +proof_LDADD = @ALLIANCE_LIBS@ \ + -L$(top_srcdir)/asimut/src \ + -L$(top_srcdir)/beh/src \ + -L$(top_srcdir)/bhl/src \ + -L$(top_srcdir)/bvl/src \ + -L$(top_srcdir)/log/src \ + -L$(top_srcdir)/mbk/src \ + -lBvl -lBhl -lBeh -lLog -lMut -proof_SOURCES = \ -proof_compile.c proof_main.c proof_util.c \ -proof_compile.h proof_util.h +proof_SOURCES = proof_compile.c proof_main.c proof_util.c \ + proof_compile.h proof_util.h diff --git a/alliance/src/rds/src/Makefile.am b/alliance/src/rds/src/Makefile.am index 6713e6d5..1773e3fb 100644 --- a/alliance/src/rds/src/Makefile.am +++ b/alliance/src/rds/src/Makefile.am @@ -1,31 +1,27 @@ -lib_LTLIBRARIES = libRds.la \ - libRut.la \ - libRfm.la \ - libRpr.la \ - libRwi.la \ - libRtl.la AM_CFLAGS = -DRTL_DEFAULT_TECHNO=\"etc/cmos.rds\" -I$(top_srcdir)/mbk/src +lib_LTLIBRARIES = libRds.la include_HEADERS = rds.h rfm.h rtl.h rwi.h rpr.h rut.h -libRds_la_SOURCES = rdsalloc.c rdsfree.c rdsadd.c rdsdel.c rdsview.c \ + +libRds_la_SOURCES = rdsalloc.c rdsfree.c rdsadd.c rdsdel.c rdsview.c \ rdserror.c rdsdebug.c \ - rdsalloc.h rdsfree.h rdsadd.h rdsdel.h rdsview.h \ - rdserror.h rdsdebug.h -libRut_la_SOURCES = rutacces.c rutpoly.c rutequi.c rutunify.c ruterror.c \ - rutacces.h rutpoly.h rutequi.h rutunify.h ruterror.h -libRfm_la_SOURCES = rfmacces.c rfmview.c rfmerror.c \ - rfmacces.h rfmview.h rfmerror.h -libRpr_la_SOURCES = rprparse.c rprview.c rprerror.c \ - rprparse.h rprview.h rprerror.h -libRwi_la_SOURCES = rwialloc.c rwidel.c rwierror.c rwiget.c rwiadd.c \ + rdsalloc.h rdsfree.h rdsadd.h rdsdel.h rdsview.h \ + rdserror.h rdsdebug.h \ + rutacces.c rutpoly.c rutequi.c rutunify.c ruterror.c \ + rutacces.h rutpoly.h rutequi.h rutunify.h ruterror.h \ + rfmacces.c rfmview.c rfmerror.c \ + rfmacces.h rfmview.h rfmerror.h \ + rprparse.c rprview.c rprerror.c \ + rprparse.h rprview.h rprerror.h \ + rwialloc.c rwidel.c rwierror.c rwiget.c rwiadd.c \ rwibuild.c rwidestroy.c rwifree.c rwiview.c \ - rwialloc.h rwidel.h rwierror.h rwiget.h rwiadd.h \ - rwibuild.h rwidestroy.h rwifree.h rwiview.h -libRtl_la_SOURCES = rtlacces.c rtlenv.c rtlerror.c \ - rtlacces.h rtlenv.h rtlerror.h -libRds_la_LDFLAGS = -version-info @RDS_DLL_VERSION@ -libRut_la_LDFLAGS = -version-info @RUT_DLL_VERSION@ -libRfm_la_LDFLAGS = -version-info @RFM_DLL_VERSION@ -libRpr_la_LDFLAGS = -version-info @RPR_DLL_VERSION@ -libRwi_la_LDFLAGS = -version-info @RWI_DLL_VERSION@ -libRtl_la_LDFLAGS = -version-info @RTL_DLL_VERSION@ + rwialloc.h rwidel.h rwierror.h rwiget.h rwiadd.h \ + rwibuild.h rwidestroy.h rwifree.h rwiview.h \ + rtlacces.c rtlenv.c rtlerror.c \ + rtlacces.h rtlenv.h rtlerror.h \ + cif_drive.c cif_error.c cif_parse.c rcf.h cif.h \ + cif_drive.h cif_error.h cif_parse.h \ + gds_drive.h gds_parse.c gds_swap.h gds.h \ + gds_error.c gds_parse.h rgs.h gds_drive.c gds_error.h gds_swap.c +libRds_la_LDFLAGS = -version-info @RDS_DLL_VERSION@ +libRds_la_LIBADD = -lMpu -lMut diff --git a/alliance/src/rdscif/src/cif.h b/alliance/src/rds/src/cif.h similarity index 100% rename from alliance/src/rdscif/src/cif.h rename to alliance/src/rds/src/cif.h diff --git a/alliance/src/rdscif/src/cif_drive.c b/alliance/src/rds/src/cif_drive.c similarity index 100% rename from alliance/src/rdscif/src/cif_drive.c rename to alliance/src/rds/src/cif_drive.c diff --git a/alliance/src/rdscif/src/cif_drive.h b/alliance/src/rds/src/cif_drive.h similarity index 100% rename from alliance/src/rdscif/src/cif_drive.h rename to alliance/src/rds/src/cif_drive.h diff --git a/alliance/src/rdscif/src/cif_error.c b/alliance/src/rds/src/cif_error.c similarity index 100% rename from alliance/src/rdscif/src/cif_error.c rename to alliance/src/rds/src/cif_error.c diff --git a/alliance/src/rdscif/src/cif_error.h b/alliance/src/rds/src/cif_error.h similarity index 100% rename from alliance/src/rdscif/src/cif_error.h rename to alliance/src/rds/src/cif_error.h diff --git a/alliance/src/rdscif/src/cif_parse.c b/alliance/src/rds/src/cif_parse.c similarity index 100% rename from alliance/src/rdscif/src/cif_parse.c rename to alliance/src/rds/src/cif_parse.c diff --git a/alliance/src/rdscif/src/cif_parse.h b/alliance/src/rds/src/cif_parse.h similarity index 100% rename from alliance/src/rdscif/src/cif_parse.h rename to alliance/src/rds/src/cif_parse.h diff --git a/alliance/src/rdsgds/src/gds.h b/alliance/src/rds/src/gds.h similarity index 100% rename from alliance/src/rdsgds/src/gds.h rename to alliance/src/rds/src/gds.h diff --git a/alliance/src/rdsgds/src/gds_drive.c b/alliance/src/rds/src/gds_drive.c similarity index 100% rename from alliance/src/rdsgds/src/gds_drive.c rename to alliance/src/rds/src/gds_drive.c diff --git a/alliance/src/rdsgds/src/gds_drive.h b/alliance/src/rds/src/gds_drive.h similarity index 100% rename from alliance/src/rdsgds/src/gds_drive.h rename to alliance/src/rds/src/gds_drive.h diff --git a/alliance/src/rdsgds/src/gds_error.c b/alliance/src/rds/src/gds_error.c similarity index 100% rename from alliance/src/rdsgds/src/gds_error.c rename to alliance/src/rds/src/gds_error.c diff --git a/alliance/src/rdsgds/src/gds_error.h b/alliance/src/rds/src/gds_error.h similarity index 100% rename from alliance/src/rdsgds/src/gds_error.h rename to alliance/src/rds/src/gds_error.h diff --git a/alliance/src/rdsgds/src/gds_parse.c b/alliance/src/rds/src/gds_parse.c similarity index 100% rename from alliance/src/rdsgds/src/gds_parse.c rename to alliance/src/rds/src/gds_parse.c diff --git a/alliance/src/rdsgds/src/gds_parse.h b/alliance/src/rds/src/gds_parse.h similarity index 100% rename from alliance/src/rdsgds/src/gds_parse.h rename to alliance/src/rds/src/gds_parse.h diff --git a/alliance/src/rdsgds/src/gds_swap.c b/alliance/src/rds/src/gds_swap.c similarity index 100% rename from alliance/src/rdsgds/src/gds_swap.c rename to alliance/src/rds/src/gds_swap.c diff --git a/alliance/src/rdsgds/src/gds_swap.h b/alliance/src/rds/src/gds_swap.h similarity index 100% rename from alliance/src/rdsgds/src/gds_swap.h rename to alliance/src/rds/src/gds_swap.h diff --git a/alliance/src/rdscif/src/rcf.h b/alliance/src/rds/src/rcf.h similarity index 100% rename from alliance/src/rdscif/src/rcf.h rename to alliance/src/rds/src/rcf.h diff --git a/alliance/src/rdsgds/src/rgs.h b/alliance/src/rds/src/rgs.h similarity index 100% rename from alliance/src/rdsgds/src/rgs.h rename to alliance/src/rds/src/rgs.h diff --git a/alliance/src/rdscif/Makefile.am b/alliance/src/rdscif/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/rdscif/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/rdscif/configure.in b/alliance/src/rdscif/configure.in deleted file mode 100644 index a9e2eee1..00000000 --- a/alliance/src/rdscif/configure.in +++ /dev/null @@ -1,46 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.4 2002/10/16 18:04:29 jpc Exp $ -dnl -dnl - -AC_INIT(src/cif_drive.c) -RCF_DLL_VERSION=2:1:0 -AC_SUBST(RCF_DLL_VERSION) -AM_INIT_AUTOMAKE(rdscif, 2.1) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_C_CONST -AM_PROG_LIBTOOL -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/rdscif/src/Makefile.am b/alliance/src/rdscif/src/Makefile.am deleted file mode 100644 index 71a7e9f9..00000000 --- a/alliance/src/rdscif/src/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/rds/src - -lib_LTLIBRARIES = libRcf.la -libRcf_la_SOURCES = cif_drive.c cif_error.c cif_parse.c rcf.h cif.h cif_drive.h cif_error.h cif_parse.h -libRcf_la_LDFLAGS = -version-info @RCF_DLL_VERSION@ diff --git a/alliance/src/rdsgds/Makefile.am b/alliance/src/rdsgds/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/rdsgds/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/rdsgds/configure.in b/alliance/src/rdsgds/configure.in deleted file mode 100644 index 5fe9822a..00000000 --- a/alliance/src/rdsgds/configure.in +++ /dev/null @@ -1,46 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.4 2002/10/16 18:04:29 jpc Exp $ -dnl -dnl - -AC_INIT(src/gds_swap.c) -RGS_DLL_VERSION=2:1:0 -AC_SUBST(RGS_DLL_VERSION) -AM_INIT_AUTOMAKE(rdsgds, 2.1) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_C_CONST -AM_PROG_LIBTOOL -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/rdsgds/src/Makefile.am b/alliance/src/rdsgds/src/Makefile.am deleted file mode 100644 index 0554dae3..00000000 --- a/alliance/src/rdsgds/src/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/rds/src -lib_LTLIBRARIES = libRgs.la -libRgs_la_SOURCES = gds_drive.h gds_parse.c gds_swap.h gds.h gds_error.c gds_parse.h rgs.h gds_drive.c gds_error.h gds_swap.c -libRgs_la_LDFLAGS = -version-info @RGS_DLL_VERSION@ diff --git a/alliance/src/ring/src/Makefile.am b/alliance/src/ring/src/Makefile.am index 53c54155..e630fc76 100644 --- a/alliance/src/ring/src/Makefile.am +++ b/alliance/src/ring/src/Makefile.am @@ -1,37 +1,17 @@ ## Process this file with automake to produce Makefile.in -YACC = @YACC@ -d +YACC = @YACC@ -d -AM_CFLAGS = @ALLIANCE_CFLAGS@ -I$(top_srcdir)/mbk/src \ --I$(top_srcdir)/genlib/src +AM_CFLAGS = @ALLIANCE_CFLAGS@ \ + -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/genlib/src bin_PROGRAMS = ring -ring_LDADD = @ALLIANCE_LIBS@ \ --L$(top_builddir)/genlib/src \ --L$(top_builddir)/mbk/src \ --L$(top_builddir)/mbkal/src \ --L$(top_builddir)/mbkap/src \ --L$(top_builddir)/mbkedif/src \ --L$(top_builddir)/mbkhilo/src \ --L$(top_builddir)/mbkmg/src \ --L$(top_builddir)/mbkspice/src \ --L$(top_builddir)/mbkvhdlg/src \ --L$(top_builddir)/mbkvrlog/src \ --L$(top_builddir)/mbkvti/src \ - -lMpu -lMlu \ - -lMcl -lMcp \ - -lMal -lMap \ - -lMsl \ - -lMel -lMgl \ - -lMhl \ - -lMvg \ - -lMgn \ - -lMmg \ - -lMvg \ - -lMlo \ - -lMph -lMut \ - -lRcn +ring_LDADD = @ALLIANCE_LIBS@ \ + -L$(top_builddir)/genlib/src \ + -L$(top_builddir)/mbk/src \ + -lMgn -lMpu -lMlu -lMlo -lMph -lMut -lRcn ring_SOURCES = bigvia.c bigvia.h \ compress.c compress.h \ diff --git a/alliance/src/rtd/src/Makefile.am b/alliance/src/rtd/src/Makefile.am index d1beca3b..509c9c8d 100644 --- a/alliance/src/rtd/src/Makefile.am +++ b/alliance/src/rtd/src/Makefile.am @@ -1,7 +1,10 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/vex/src -I$(top_srcdir)/rtn/src -lib_LTLIBRARIES = libRtd.la +AM_CFLAGS = -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/vex/src \ + -I$(top_srcdir)/rtn/src +lib_LTLIBRARIES = libRtd.la include_HEADERS = rtd.h -libRtd_la_SOURCES = \ -rtd.h rtd_drive.h rtd_error.h rtd_get.h rtd_parse.h \ -rtd_drive.c rtd_error.c rtd_get.c rtd_parse.c -libRtd_la_LDFLAGS = -version-info @RTD_DLL_VERSION@ +libRtd_la_SOURCES = rtd.h rtd_drive.h rtd_error.h rtd_get.h rtd_parse.h \ + rtd_drive.c rtd_error.c rtd_get.c rtd_parse.c +libRtd_la_LDFLAGS = -version-info @RTD_DLL_VERSION@ +libRtd_la_LIBADD = -lRtn -lVex -lMut diff --git a/alliance/src/rtn/src/Makefile.am b/alliance/src/rtn/src/Makefile.am index 14880b28..0121f970 100644 --- a/alliance/src/rtn/src/Makefile.am +++ b/alliance/src/rtn/src/Makefile.am @@ -1,8 +1,8 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/vex/src -lib_LTLIBRARIES = libRtn.la +lib_LTLIBRARIES = libRtn.la include_HEADERS = rtn.h -libRtn_la_SOURCES = \ -rtnadd.h rtndel.c rtnerror.h rtnget.c rtnsearch.h \ -rtn.h rtnalloc.c rtndel.h rtnfree.c rtnget.h rtnview.c \ -rtnadd.c rtnalloc.h rtnerror.c rtnfree.h rtnsearch.c rtnview.h -libRtn_la_LDFLAGS = -version-info @RTN_DLL_VERSION@ +libRtn_la_SOURCES = rtnadd.h rtndel.c rtnerror.h rtnget.c rtnsearch.h \ + rtn.h rtnalloc.c rtndel.h rtnfree.c rtnget.h rtnview.c \ + rtnadd.c rtnalloc.h rtnerror.c rtnfree.h rtnsearch.c rtnview.h +libRtn_la_LDFLAGS = -version-info @RTN_DLL_VERSION@ +libRtn_la_LIBADD = -lVex -lAut -lMut diff --git a/alliance/src/s2r/src/Makefile.am b/alliance/src/s2r/src/Makefile.am index e1f74df4..43ea1d6c 100644 --- a/alliance/src/s2r/src/Makefile.am +++ b/alliance/src/s2r/src/Makefile.am @@ -2,24 +2,17 @@ bin_PROGRAMS = s2r -AM_CFLAGS = @ALLIANCE_CFLAGS@ \ --I$(top_srcdir)/rds/src \ --I$(top_srcdir)/genview/src/gcc-1.42 \ --I$(top_srcdir)/mbk/src +AM_CFLAGS = @ALLIANCE_CFLAGS@ \ + -I$(top_srcdir)/rds/src \ + -I$(top_srcdir)/genview/src/gcc-1.42 \ + -I$(top_srcdir)/mbk/src -s2r_LDADD = @ALLIANCE_LIBS@ \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkvti/src \ --L$(top_srcdir)/rds/src \ --L$(top_srcdir)/rdscif/src \ --L$(top_srcdir)/rdsgds/src \ - -lMpu -lMcp -lMap -lMmg \ - -lRtl -lRgs -lRcf -lRfm -lRpr -lRwi -lRut -lRds\ - -lMph -lMut +s2r_LDADD = @ALLIANCE_LIBS@ \ + -L$(top_srcdir)/mbk/src \ + -L$(top_srcdir)/rds/src \ + -lMpu -lRds -lMph -lMut -s2r_SOURCES = generic.h hash.h maxima.h merge.h\ - postrat.h rdsacces.h statistics.c hash.c\ - main.c merge.c postrat.c rdsacces.c\ - statistics.h +s2r_SOURCES = generic.h hash.h maxima.h merge.h\ + postrat.h rdsacces.h statistics.c hash.c\ + main.c merge.c postrat.c rdsacces.c\ + statistics.h diff --git a/alliance/src/scapin/src/Makefile.am b/alliance/src/scapin/src/Makefile.am index bc2b6824..e3c80555 100644 --- a/alliance/src/scapin/src/Makefile.am +++ b/alliance/src/scapin/src/Makefile.am @@ -1,24 +1,16 @@ ## Process this file with automake to produce Makefile.in -bin_PROGRAMS = scapin +bin_PROGRAMS = scapin -AM_CFLAGS = @ALLIANCE_CFLAGS@ \ --I$(top_srcdir)/aut/src \ --I$(top_srcdir)/mbk/src \ - -DSCAPIN_DEFAULT_PARAM_NAME=\"etc/sxlib.scapin\" +AM_CFLAGS = @ALLIANCE_CFLAGS@ \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/mbk/src \ + -DSCAPIN_DEFAULT_PARAM_NAME=\"etc/sxlib.scapin\" -scapin_LDADD = @ALLIANCE_LIBS@ \ --L$(top_srcdir)/aut/src \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdlg/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ --lMlu -lMcl -lMel -lMhl -lMvg -lMlo -lMut -lMal -lRcn -lMsl -lMgl -lAut +scapin_LDADD = @ALLIANCE_LIBS@ \ + -L$(top_srcdir)/aut/src \ + -L$(top_srcdir)/mbk/src \ + -lMlu -lMlo -lMut -lRcn -lAut -scapin_SOURCES = \ -scan_insert.c scan_insert.h scan_main.c scan_main.h \ -scan_param.c scan_param.h scan_path.c scan_path.h +scapin_SOURCES = scan_insert.c scan_insert.h scan_main.c scan_main.h \ + scan_param.c scan_param.h scan_path.c scan_path.h diff --git a/alliance/src/scl/src/Makefile.am b/alliance/src/scl/src/Makefile.am index e35f3a9f..77bf3646 100644 --- a/alliance/src/scl/src/Makefile.am +++ b/alliance/src/scl/src/Makefile.am @@ -1,14 +1,14 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src \ --I$(top_srcdir)/abl/src -I$(top_srcdir)/bdd/src \ --I$(top_srcdir)/abe/src -lib_LTLIBRARIES = libScl.la + -I$(top_srcdir)/abl/src -I$(top_srcdir)/bdd/src \ + -I$(top_srcdir)/abe/src +lib_LTLIBRARIES = libScl.la include_HEADERS = scl.h -libScl_la_SOURCES = \ -scgmain.h schenv.c schget.h scpadd.h scpfree.c \ -scg.h schadd.c schenv.h schview.c scpalloc.c scpfree.h \ -scgbefig.c schadd.h scherror.c schview.h scpalloc.h scpswap.h \ -scgbefig.h schalloc.c scherror.h scpbuild.c \ -scglofig.c schalloc.h schfree.c scl.h scpbuild.h \ -scglofig.h schdel.c schfree.h scp.h scpdel.c \ -scgmain.c schdel.h schget.c scpadd.c scpdel.h -libScl_la_LDFLAGS = -version-info @SCL_DLL_VERSION@ +libScl_la_SOURCES = scgmain.h schenv.c schget.h scpadd.h scpfree.c \ + scg.h schadd.c schenv.h schview.c scpalloc.c scpfree.h \ + scgbefig.c schadd.h scherror.c schview.h scpalloc.h scpswap.h \ + scgbefig.h schalloc.c scherror.h scpbuild.c \ + scglofig.c schalloc.h schfree.c scl.h scpbuild.h \ + scglofig.h schdel.c schfree.h scp.h scpdel.c \ + scgmain.c schdel.h schget.c scpadd.c scpdel.h +libScl_la_LDFLAGS = -version-info @SCL_DLL_VERSION@ +libScl_la_LIBADD = -lAbl -lAut -lMut diff --git a/alliance/src/sea/src/Makefile.am b/alliance/src/sea/src/Makefile.am index 13395f24..d128b6e1 100644 --- a/alliance/src/sea/src/Makefile.am +++ b/alliance/src/sea/src/Makefile.am @@ -1,92 +1,32 @@ ## Process this file with automake to produce Makefile.in -AM_YFLAGS = -d -v -p DEF_grammar -AM_LFLAGS = -s -f -8 -pp -PDEF_grammar -olex.yy.c +AM_YFLAGS = -d -v -p DEF_grammar +AM_LFLAGS = -s -f -8 -pp -PDEF_grammar -olex.yy.c -AM_CFLAGS = @ALLIANCE_CFLAGS@ \ --I$(top_srcdir)/aut/src \ --I$(top_srcdir)/mbk/src +AM_CFLAGS = @ALLIANCE_CFLAGS@ \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/mbk/src bin_PROGRAMS = a2def def2a sxlib2lef bin_SCRIPTS = sea seroute seplace a2lef -a2def_LDADD = @ALLIANCE_LIBS@ \ - ./libUtil.a \ --L$(top_srcdir)/aut/src \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdlg/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ - -lMpu -lMlu \ - -lMcl -lMcp \ - -lMal -lMap \ - -lMsl \ - -lMel -lMgl \ - -lMhl \ - -lMvg \ - -lMmg \ - -lMlo \ - -lMph -lMut \ - -lRcn \ - -lAut +a2def_LDADD = @ALLIANCE_LIBS@ \ + ./libUtil.a \ + -L$(top_srcdir)/aut/src \ + -L$(top_srcdir)/mbk/src \ + -lMpu -lMlu -lMlo -lMph -lMut -lRcn -lAut -def2a_LDADD = @ALLIANCE_LIBS@ \ - ./libUtil.a \ --L$(top_srcdir)/aut/src \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdlg/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ - -lMpu -lMlu \ - -lMcl -lMcp \ - -lMal -lMap \ - -lMsl \ - -lMel -lMgl \ - -lMhl \ - -lMvg \ - -lMmg \ - -lMlo \ - -lMph -lMut \ - -lRcn \ - -lAut +def2a_LDADD = @ALLIANCE_LIBS@ \ + ./libUtil.a \ + -L$(top_srcdir)/aut/src \ + -L$(top_srcdir)/mbk/src \ + -lMpu -lMlu -lMlo -lMph -lMut -lRcn -lAut sxlib2lef_LDADD = @ALLIANCE_LIBS@ \ - ./libUtil.a \ --L$(top_srcdir)/aut/src \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdlg/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ - -lMpu -lMlu \ - -lMcl -lMcp \ - -lMal -lMap \ - -lMsl \ - -lMel -lMgl \ - -lMhl \ - -lMvg \ - -lMmg \ - -lMlo \ - -lMph -lMut \ - -lRcn \ - -lAut + ./libUtil.a \ + -L$(top_srcdir)/aut/src \ + -L$(top_srcdir)/mbk/src \ + -lMpu -lMlu -lMlo -lMph -lMut -lRcn -lAut noinst_LIBRARIES = libUtil.a diff --git a/alliance/src/vasy/src/Makefile.am b/alliance/src/vasy/src/Makefile.am index 23a0962a..81a92e64 100644 --- a/alliance/src/vasy/src/Makefile.am +++ b/alliance/src/vasy/src/Makefile.am @@ -29,7 +29,7 @@ vasy_LDADD = @ALLIANCE_LIBS@ \ -L$(top_srcdir)/vpn/src \ -L$(top_srcdir)/vtl/src \ -L$(top_srcdir)/vvh/src \ - -lRtd -lRtn -lVtl -lVvh -lVpd -lVpn -lVbl -lVbh \ + -lRtd -lRtn -lVpd -lVpn -lVbh \ -lVex -lBdd -lAbl -lAut -lMut vasy_SOURCES = \ diff --git a/alliance/src/vbh/src/Makefile.am b/alliance/src/vbh/src/Makefile.am index b7e48fbf..d017730e 100644 --- a/alliance/src/vbh/src/Makefile.am +++ b/alliance/src/vbh/src/Makefile.am @@ -1,6 +1,23 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/vex/src -lib_LTLIBRARIES = libVbh.la -include_HEADERS = vbh.h -libVbh_la_SOURCES = \ -vbh.h vbh_add.c vbh_crt.c vbh_dup.c vbh_fre.c vbh_simp.c vbh_view.c -libVbh_la_LDFLAGS = -version-info @VBH_DLL_VERSION@ +AM_CFLAGS = -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/vex/src \ + -I$(top_srcdir)/vpn/src +lib_LTLIBRARIES = libVbh.la +include_HEADERS = vbh.h vbl.h vvh.h vtl.h vpd.h +libVbh_la_SOURCES = vbh.h vbh_add.c vbh_crt.c vbh_dup.c vbh_fre.c vbh_simp.c vbh_view.c \ + vbl_bcomp_y.y vbl_bcomp_l.l \ + vbl_bedef.h vbl_bspec.c vbl_byacc.h vbl_util.c vbl_utype.h \ + vbl.h vbl_blex.h vbl_bspec.h vbl_parse.c vbl_util.h \ + vvh.h vvh_drive.h vvh_error.h vvh_parse.h vvh_vbh2vpn.h \ + vvh_drive.c vvh_error.c vvh_parse.c vvh_vbh2vpn.c \ + vtl.h vtlacces.c vtlacces.h vtlerror.c vtlerror.h \ + vpd.h vpd_drive.h vpd_error.h vpd_parse.h \ + vpd_drive.c vpd_error.c vpd_parse.c +libVbh_la_LIBADD = -lVpn -lVex -lAut -lMut + +CLEANFILES = vbl_bcomp_y.c vbl_bcomp_y.h vbl_bcomp_l.c + +vbl_bcomp_y.c vbl_bcomp_y.h : $(srcdir)/vbl_bcomp_y.y + $(YACC) -d $(YFLAGS) $(srcdir)/vbl_bcomp_y.y && sed -e "s/yy/vbl_y_/g" -e "s/YY/VBL_Y_/g" y.tab.c > vbl_bcomp_y.c && sed -e "s/yy/vbl_y_/g" -e "s/YY/VBL_Y_/g" y.tab.h > vbl_bcomp_y.h +vbl_bcomp_l.c : $(srcdir)/vbl_bcomp_l.l vbl_bcomp_y.h + $(LEX) -t $(srcdir)/vbl_bcomp_l.l | sed -e "s/yy/vbl_y_/g" -e "s/YY/VBL_Y_/g" > vbl_bcomp_l.c diff --git a/alliance/src/vbl/src/main.c b/alliance/src/vbh/src/main.c similarity index 100% rename from alliance/src/vbl/src/main.c rename to alliance/src/vbh/src/main.c diff --git a/alliance/src/vbl/src/vbl.h b/alliance/src/vbh/src/vbl.h similarity index 100% rename from alliance/src/vbl/src/vbl.h rename to alliance/src/vbh/src/vbl.h diff --git a/alliance/src/vbl/src/vbl_bcomp_l.l b/alliance/src/vbh/src/vbl_bcomp_l.l similarity index 100% rename from alliance/src/vbl/src/vbl_bcomp_l.l rename to alliance/src/vbh/src/vbl_bcomp_l.l diff --git a/alliance/src/vbl/src/vbl_bcomp_y.y b/alliance/src/vbh/src/vbl_bcomp_y.y similarity index 100% rename from alliance/src/vbl/src/vbl_bcomp_y.y rename to alliance/src/vbh/src/vbl_bcomp_y.y diff --git a/alliance/src/vbl/src/vbl_bedef.h b/alliance/src/vbh/src/vbl_bedef.h similarity index 100% rename from alliance/src/vbl/src/vbl_bedef.h rename to alliance/src/vbh/src/vbl_bedef.h diff --git a/alliance/src/vbl/src/vbl_blex.h b/alliance/src/vbh/src/vbl_blex.h similarity index 100% rename from alliance/src/vbl/src/vbl_blex.h rename to alliance/src/vbh/src/vbl_blex.h diff --git a/alliance/src/vbl/src/vbl_bspec.c b/alliance/src/vbh/src/vbl_bspec.c similarity index 100% rename from alliance/src/vbl/src/vbl_bspec.c rename to alliance/src/vbh/src/vbl_bspec.c diff --git a/alliance/src/vbl/src/vbl_bspec.h b/alliance/src/vbh/src/vbl_bspec.h similarity index 100% rename from alliance/src/vbl/src/vbl_bspec.h rename to alliance/src/vbh/src/vbl_bspec.h diff --git a/alliance/src/vbl/src/vbl_byacc.h b/alliance/src/vbh/src/vbl_byacc.h similarity index 100% rename from alliance/src/vbl/src/vbl_byacc.h rename to alliance/src/vbh/src/vbl_byacc.h diff --git a/alliance/src/vbl/src/vbl_parse.c b/alliance/src/vbh/src/vbl_parse.c similarity index 100% rename from alliance/src/vbl/src/vbl_parse.c rename to alliance/src/vbh/src/vbl_parse.c diff --git a/alliance/src/vbl/src/vbl_util.c b/alliance/src/vbh/src/vbl_util.c similarity index 100% rename from alliance/src/vbl/src/vbl_util.c rename to alliance/src/vbh/src/vbl_util.c diff --git a/alliance/src/vbl/src/vbl_util.h b/alliance/src/vbh/src/vbl_util.h similarity index 100% rename from alliance/src/vbl/src/vbl_util.h rename to alliance/src/vbh/src/vbl_util.h diff --git a/alliance/src/vbl/src/vbl_utype.h b/alliance/src/vbh/src/vbl_utype.h similarity index 100% rename from alliance/src/vbl/src/vbl_utype.h rename to alliance/src/vbh/src/vbl_utype.h diff --git a/alliance/src/vbl/src/vhdl.yac b/alliance/src/vbh/src/vhdl.yac similarity index 100% rename from alliance/src/vbl/src/vhdl.yac rename to alliance/src/vbh/src/vhdl.yac diff --git a/alliance/src/vpd/src/vpd.h b/alliance/src/vbh/src/vpd.h similarity index 100% rename from alliance/src/vpd/src/vpd.h rename to alliance/src/vbh/src/vpd.h diff --git a/alliance/src/vpd/src/vpd_drive.c b/alliance/src/vbh/src/vpd_drive.c similarity index 100% rename from alliance/src/vpd/src/vpd_drive.c rename to alliance/src/vbh/src/vpd_drive.c diff --git a/alliance/src/vpd/src/vpd_drive.h b/alliance/src/vbh/src/vpd_drive.h similarity index 100% rename from alliance/src/vpd/src/vpd_drive.h rename to alliance/src/vbh/src/vpd_drive.h diff --git a/alliance/src/vpd/src/vpd_error.c b/alliance/src/vbh/src/vpd_error.c similarity index 100% rename from alliance/src/vpd/src/vpd_error.c rename to alliance/src/vbh/src/vpd_error.c diff --git a/alliance/src/vpd/src/vpd_error.h b/alliance/src/vbh/src/vpd_error.h similarity index 100% rename from alliance/src/vpd/src/vpd_error.h rename to alliance/src/vbh/src/vpd_error.h diff --git a/alliance/src/vpd/src/vpd_parse.c b/alliance/src/vbh/src/vpd_parse.c similarity index 100% rename from alliance/src/vpd/src/vpd_parse.c rename to alliance/src/vbh/src/vpd_parse.c diff --git a/alliance/src/vpd/src/vpd_parse.h b/alliance/src/vbh/src/vpd_parse.h similarity index 100% rename from alliance/src/vpd/src/vpd_parse.h rename to alliance/src/vbh/src/vpd_parse.h diff --git a/alliance/src/vtl/src/vtl.h b/alliance/src/vbh/src/vtl.h similarity index 100% rename from alliance/src/vtl/src/vtl.h rename to alliance/src/vbh/src/vtl.h diff --git a/alliance/src/vtl/src/vtlacces.c b/alliance/src/vbh/src/vtlacces.c similarity index 100% rename from alliance/src/vtl/src/vtlacces.c rename to alliance/src/vbh/src/vtlacces.c diff --git a/alliance/src/vtl/src/vtlacces.h b/alliance/src/vbh/src/vtlacces.h similarity index 100% rename from alliance/src/vtl/src/vtlacces.h rename to alliance/src/vbh/src/vtlacces.h diff --git a/alliance/src/vtl/src/vtlerror.c b/alliance/src/vbh/src/vtlerror.c similarity index 100% rename from alliance/src/vtl/src/vtlerror.c rename to alliance/src/vbh/src/vtlerror.c diff --git a/alliance/src/vtl/src/vtlerror.h b/alliance/src/vbh/src/vtlerror.h similarity index 100% rename from alliance/src/vtl/src/vtlerror.h rename to alliance/src/vbh/src/vtlerror.h diff --git a/alliance/src/vvh/src/vvh.h b/alliance/src/vbh/src/vvh.h similarity index 100% rename from alliance/src/vvh/src/vvh.h rename to alliance/src/vbh/src/vvh.h diff --git a/alliance/src/vvh/src/vvh_drive.c b/alliance/src/vbh/src/vvh_drive.c similarity index 100% rename from alliance/src/vvh/src/vvh_drive.c rename to alliance/src/vbh/src/vvh_drive.c diff --git a/alliance/src/vvh/src/vvh_drive.h b/alliance/src/vbh/src/vvh_drive.h similarity index 100% rename from alliance/src/vvh/src/vvh_drive.h rename to alliance/src/vbh/src/vvh_drive.h diff --git a/alliance/src/vvh/src/vvh_error.c b/alliance/src/vbh/src/vvh_error.c similarity index 100% rename from alliance/src/vvh/src/vvh_error.c rename to alliance/src/vbh/src/vvh_error.c diff --git a/alliance/src/vvh/src/vvh_error.h b/alliance/src/vbh/src/vvh_error.h similarity index 100% rename from alliance/src/vvh/src/vvh_error.h rename to alliance/src/vbh/src/vvh_error.h diff --git a/alliance/src/vvh/src/vvh_parse.c b/alliance/src/vbh/src/vvh_parse.c similarity index 100% rename from alliance/src/vvh/src/vvh_parse.c rename to alliance/src/vbh/src/vvh_parse.c diff --git a/alliance/src/vvh/src/vvh_parse.h b/alliance/src/vbh/src/vvh_parse.h similarity index 100% rename from alliance/src/vvh/src/vvh_parse.h rename to alliance/src/vbh/src/vvh_parse.h diff --git a/alliance/src/vvh/src/vvh_vbh2vpn.c b/alliance/src/vbh/src/vvh_vbh2vpn.c similarity index 100% rename from alliance/src/vvh/src/vvh_vbh2vpn.c rename to alliance/src/vbh/src/vvh_vbh2vpn.c diff --git a/alliance/src/vvh/src/vvh_vbh2vpn.h b/alliance/src/vbh/src/vvh_vbh2vpn.h similarity index 100% rename from alliance/src/vvh/src/vvh_vbh2vpn.h rename to alliance/src/vbh/src/vvh_vbh2vpn.h diff --git a/alliance/src/vbl/Makefile.am b/alliance/src/vbl/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/vbl/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/vbl/configure.in b/alliance/src/vbl/configure.in deleted file mode 100644 index fcf9596c..00000000 --- a/alliance/src/vbl/configure.in +++ /dev/null @@ -1,48 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.3 2002/10/16 18:04:31 jpc Exp $ -dnl -dnl -AC_INIT(src/vbl.h) -VBL_DLL_VERSION=1:4:0 -AC_SUBST(VBL_DLL_VERSION) -AM_INIT_AUTOMAKE(vbl, 1.4) -AC_PROG_INSTALL -AC_PROG_CC -AC_PROG_YACC -AM_PROG_LEX -AC_HEADER_STDC -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/vbl/src/Makefile.am b/alliance/src/vbl/src/Makefile.am deleted file mode 100644 index e957736e..00000000 --- a/alliance/src/vbl/src/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/vex/src -I$(top_srcdir)/vbh/src -lib_LTLIBRARIES = libVbl.la -include_HEADERS = vbl.h -libVbl_la_SOURCES = vbl_bcomp_y.y vbl_bcomp_l.l \ -vbl_bedef.h vbl_bspec.c vbl_byacc.h vbl_util.c vbl_utype.h \ -vbl.h vbl_blex.h vbl_bspec.h vbl_parse.c vbl_util.h -libVbl_la_LDFLAGS = -version-info @VBL_DLL_VERSION@ - -CLEANFILES = vbl_bcomp_y.c vbl_bcomp_y.h vbl_bcomp_l.c - -vbl_bcomp_y.c vbl_bcomp_y.h : $(srcdir)/vbl_bcomp_y.y - $(YACC) -d $(YFLAGS) $(srcdir)/vbl_bcomp_y.y && sed -e "s/yy/vbl_y_/g" -e "s/YY/VBL_Y_/g" y.tab.c > vbl_bcomp_y.c && sed -e "s/yy/vbl_y_/g" -e "s/YY/VBL_Y_/g" y.tab.h > vbl_bcomp_y.h -vbl_bcomp_l.c : $(srcdir)/vbl_bcomp_l.l vbl_bcomp_y.h - $(LEX) -t $(srcdir)/vbl_bcomp_l.l | sed -e "s/yy/vbl_y_/g" -e "s/YY/VBL_Y_/g" > vbl_bcomp_l.c diff --git a/alliance/src/vex/src/Makefile.am b/alliance/src/vex/src/Makefile.am index ec181d4f..167c80e8 100644 --- a/alliance/src/vex/src/Makefile.am +++ b/alliance/src/vex/src/Makefile.am @@ -1,12 +1,12 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -lib_LTLIBRARIES = libVex.la +lib_LTLIBRARIES = libVex.la include_HEADERS = vex.h -libVex_la_SOURCES = \ -vexcreate.h vexerror.c vexfree.h vexshift.c vexunflat.h \ -vex.h vexdel.c vexerror.h vexget.c vexshift.h vexview.c \ -vexadd.c vexdel.h vexeval.c vexget.h vexsimp.c vexview.h \ -vexadd.h vexdup.c vexeval.h vexis.c vexsimp.h \ -vexalloc.c vexdup.h vexextend.c vexis.h vexslice.c \ -vexalloc.h vexenv.c vexextend.h vexoptim.c vexslice.h \ -vexcreate.c vexenv.h vexfree.c vexoptim.h vexunflat.c -libVex_la_LDFLAGS = -version-info @VEX_DLL_VERSION@ +libVex_la_SOURCES = vexcreate.h vexerror.c vexfree.h vexshift.c vexunflat.h \ + vex.h vexdel.c vexerror.h vexget.c vexshift.h vexview.c \ + vexadd.c vexdel.h vexeval.c vexget.h vexsimp.c vexview.h \ + vexadd.h vexdup.c vexeval.h vexis.c vexsimp.h \ + vexalloc.c vexdup.h vexextend.c vexis.h vexslice.c \ + vexalloc.h vexenv.c vexextend.h vexoptim.c vexslice.h \ + vexcreate.c vexenv.h vexfree.c vexoptim.h vexunflat.c +libVex_la_LDFLAGS = -version-info @VEX_DLL_VERSION@ +libVex_la_LIBADD = -lAut -lMut diff --git a/alliance/src/vpd/Makefile.am b/alliance/src/vpd/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/vpd/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/vpd/configure.in b/alliance/src/vpd/configure.in deleted file mode 100644 index 9b3e3d77..00000000 --- a/alliance/src/vpd/configure.in +++ /dev/null @@ -1,46 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.3 2002/10/16 18:04:31 jpc Exp $ -dnl -dnl -AC_INIT(src/vpd.h) -VPD_DLL_VERSION=1:5:0 -AC_SUBST(VPD_DLL_VERSION) -AM_INIT_AUTOMAKE(vpd, 1.5) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/vpd/src/Makefile.am b/alliance/src/vpd/src/Makefile.am deleted file mode 100644 index 2320a82f..00000000 --- a/alliance/src/vpd/src/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/vex/src \ --I$(top_srcdir)/vpn/src -lib_LTLIBRARIES = libVpd.la -include_HEADERS = vpd.h -libVpd_la_SOURCES = \ -vpd.h vpd_drive.h vpd_error.h vpd_parse.h \ -vpd_drive.c vpd_error.c vpd_parse.c -libVpd_la_LDFLAGS = -version-info @VPD_DLL_VERSION@ diff --git a/alliance/src/vpn/src/Makefile.am b/alliance/src/vpn/src/Makefile.am index 59e9d8cb..c5687e90 100644 --- a/alliance/src/vpn/src/Makefile.am +++ b/alliance/src/vpn/src/Makefile.am @@ -1,10 +1,10 @@ AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/vex/src -lib_LTLIBRARIES = libVpn.la +lib_LTLIBRARIES = libVpn.la include_HEADERS = vpn.h -libVpn_la_SOURCES = \ -vpnalloc.c vpnenv.h vpnget.c vpnsimp.h \ -vpnalloc.h vpnerror.c vpnget.h vpnunion.c \ -vpn.h vpndel.c vpnerror.h vpnsearch.c vpnunion.h \ -vpnadd.c vpndel.h vpnfree.c vpnsearch.h vpnview.c \ -vpnadd.h vpnenv.c vpnfree.h vpnsimp.c vpnview.h -libVpn_la_LDFLAGS = -version-info @VPN_DLL_VERSION@ +libVpn_la_SOURCES = vpnalloc.c vpnenv.h vpnget.c vpnsimp.h \ + vpnalloc.h vpnerror.c vpnget.h vpnunion.c \ + vpn.h vpndel.c vpnerror.h vpnsearch.c vpnunion.h \ + vpnadd.c vpndel.h vpnfree.c vpnsearch.h vpnview.c \ + vpnadd.h vpnenv.c vpnfree.h vpnsimp.c vpnview.h +libVpn_la_LDFLAGS = -version-info @VPN_DLL_VERSION@ +libVpn_la_LIBADD = -lVex -lAut -lMut diff --git a/alliance/src/vtl/Makefile.am b/alliance/src/vtl/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/vtl/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/vtl/configure.in b/alliance/src/vtl/configure.in deleted file mode 100644 index f979bb95..00000000 --- a/alliance/src/vtl/configure.in +++ /dev/null @@ -1,46 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.3 2002/10/16 18:04:32 jpc Exp $ -dnl -dnl -AC_INIT(src/vtl.h) -VTL_DLL_VERSION=1:5:0 -AC_SUBST(VTL_DLL_VERSION) -AM_INIT_AUTOMAKE(vtl, 1.5) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/vtl/src/Makefile.am b/alliance/src/vtl/src/Makefile.am deleted file mode 100644 index 7647ef20..00000000 --- a/alliance/src/vtl/src/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/vex/src \ --I$(top_srcdir)/vpn/src -lib_LTLIBRARIES = libVtl.la -include_HEADERS = vtl.h -libVtl_la_SOURCES = vtl.h vtlacces.c vtlacces.h vtlerror.c vtlerror.h -libVtl_la_LDFLAGS = -version-info @VTL_DLL_VERSION@ diff --git a/alliance/src/vvh/Makefile.am b/alliance/src/vvh/Makefile.am deleted file mode 100644 index af437a64..00000000 --- a/alliance/src/vvh/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/alliance/src/vvh/configure.in b/alliance/src/vvh/configure.in deleted file mode 100644 index 0fcad2ef..00000000 --- a/alliance/src/vvh/configure.in +++ /dev/null @@ -1,46 +0,0 @@ -dnl -dnl This file is part of the Alliance CAD System -dnl Copyright (C) Laboratoire LIP6 - Département ASIM -dnl Universite Pierre et Marie Curie -dnl -dnl Home page : http://www-asim.lip6.fr/alliance/ -dnl E-mail : mailto:alliance-users@asim.lip6.fr -dnl -dnl This library is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU Library General Public License as published -dnl by the Free Software Foundation; either version 2 of the License, or (at -dnl your option) any later version. -dnl -dnl Alliance VLSI CAD System is distributed in the hope that it will be -dnl useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -dnl Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License along -dnl with the GNU C Library; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -dnl -dnl Purpose : Auto stuffing Alliance -dnl Almost ten years since I wrote this stuff, I just can't -dnl believe it -dnl Date : 01/02/2002 -dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.3 2002/10/16 18:04:32 jpc Exp $ -dnl -dnl -AC_INIT(src/vvh.h) -VVH_DLL_VERSION=1:5:0 -AC_SUBST(VVH_DLL_VERSION) -AM_INIT_AUTOMAKE(vvh, 1.5) -AC_PROG_INSTALL -AC_PROG_CC -AC_HEADER_STDC -AC_C_CONST -AM_PROG_LIBTOOL - -AM_ALLIANCE - -AC_OUTPUT([ -Makefile -src/Makefile -]) diff --git a/alliance/src/vvh/src/Makefile.am b/alliance/src/vvh/src/Makefile.am deleted file mode 100644 index 224bc8c5..00000000 --- a/alliance/src/vvh/src/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -AM_CFLAGS = -I$(top_srcdir)/mbk/src -I$(top_srcdir)/aut/src -I$(top_srcdir)/vex/src \ --I$(top_srcdir)/vpn/src -I$(top_srcdir)/vbh/src -I$(top_srcdir)/vbl/src -lib_LTLIBRARIES = libVvh.la -include_HEADERS = vvh.h -libVvh_la_SOURCES = \ -vvh.h vvh_drive.h vvh_error.h vvh_parse.h vvh_vbh2vpn.h \ -vvh_drive.c vvh_error.c vvh_parse.c vvh_vbh2vpn.c -libVvh_la_LDFLAGS = -version-info @VVH_DLL_VERSION@ diff --git a/alliance/src/x2y/src/Makefile.am b/alliance/src/x2y/src/Makefile.am index ab4894af..ffdfee01 100644 --- a/alliance/src/x2y/src/Makefile.am +++ b/alliance/src/x2y/src/Makefile.am @@ -6,29 +6,7 @@ AM_CFLAGS = @ALLIANCE_CFLAGS@ \ bin_PROGRAMS = x2y x2y_LDADD = @ALLIANCE_LIBS@ \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkap/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkmg/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdl/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ - -lMpu -lMlu \ - -lMcl -lMcp \ - -lMal \ - -lMap \ - -lMsl \ - -lMel \ - -lMgl \ - -lMhl \ - -lMvl \ - -lMmg \ - -lMlo \ - -lMph \ - -lMut \ - -lRcn + -L$(top_srcdir)/mbk/src \ + -lMpu -lMlu -lMlo -lMph -lMut -lRcn x2y_SOURCES = x2y.c diff --git a/alliance/src/xpat/src/Makefile.am b/alliance/src/xpat/src/Makefile.am index 13af8faf..1cb952b9 100644 --- a/alliance/src/xpat/src/Makefile.am +++ b/alliance/src/xpat/src/Makefile.am @@ -1,13 +1,12 @@ ## Process this file with automake to produce Makefile.in bin_PROGRAMS = xpat -AM_CFLAGS = @ALLIANCE_CFLAGS@ @X_CFLAGS@ \ - -DXPAT_DEFAULT_PARAM_NAME=\"${ALLIANCE_TOP}/etc/xpat.par\" \ - -DXMS_FILE_NAME=\".xpat.cfg\" \ --I$(top_srcdir)/aut/src \ --I$(top_srcdir)/mbk/src \ --I$(top_srcdir)/ppt/src \ --I$(top_srcdir)/pat/src +AM_CFLAGS = @ALLIANCE_CFLAGS@ @X_CFLAGS@ \ + -DXPAT_DEFAULT_PARAM_NAME=\"${ALLIANCE_TOP}/etc/xpat.par\" \ + -DXMS_FILE_NAME=\".xpat.cfg\" \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/pat/src # ----------------------------------------------------------------------------- # X Libraries. @@ -42,12 +41,10 @@ ALL_X_LIBS = $(X_LDFLAGS) $(LIBXM) $(LIBXT) \ xpat_LDADD = @ALLIANCE_LIBS@ $(ALL_X_LIBS) \ --L$(top_srcdir)/aut/src \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/pat/src \ --L$(top_srcdir)/phl/src \ --L$(top_srcdir)/ppt/src \ - -lPpt -lPhl -lPat -lAut -lMut + -L$(top_srcdir)/aut/src \ + -L$(top_srcdir)/mbk/src \ + -L$(top_srcdir)/pat/src \ + -lPat -lAut -lMut xpat_SOURCES = \ LIP6bw.h XME_dialog.c XME_dialog.h XME_edit.c XME_edit.h \ diff --git a/alliance/src/xsch/src/Makefile.am b/alliance/src/xsch/src/Makefile.am index 73e98714..89c12068 100644 --- a/alliance/src/xsch/src/Makefile.am +++ b/alliance/src/xsch/src/Makefile.am @@ -1,16 +1,16 @@ ## Process this file with automake to produce Makefile.in bin_PROGRAMS = xsch -AM_CFLAGS = @ALLIANCE_CFLAGS@ @X_CFLAGS@ \ - -DXSCH_DEFAULT_PARAM_NAME=\"${ALLIANCE_TOP}/etc/xsch.par\" \ - -DXMS_FILE_NAME=\".xsch.cfg\" \ --I$(top_srcdir)/abe/src \ --I$(top_srcdir)/abl/src \ --I$(top_srcdir)/bdd/src \ --I$(top_srcdir)/abv/src \ --I$(top_srcdir)/aut/src \ --I$(top_srcdir)/mbk/src \ --I$(top_srcdir)/scl/src +AM_CFLAGS = @ALLIANCE_CFLAGS@ @X_CFLAGS@ \ + -DXSCH_DEFAULT_PARAM_NAME=\"${ALLIANCE_TOP}/etc/xsch.par\" \ + -DXMS_FILE_NAME=\".xsch.cfg\" \ + -I$(top_srcdir)/abe/src \ + -I$(top_srcdir)/abl/src \ + -I$(top_srcdir)/bdd/src \ + -I$(top_srcdir)/abv/src \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/mbk/src \ + -I$(top_srcdir)/scl/src # ----------------------------------------------------------------------------- # X Libraries. @@ -45,23 +45,14 @@ ALL_X_LIBS = $(X_LDFLAGS) $(LIBXM) $(LIBXT) \ xsch_LDADD = @ALLIANCE_LIBS@ $(ALL_X_LIBS) \ --L$(top_srcdir)/abe/src \ --L$(top_srcdir)/abl/src \ --L$(top_srcdir)/abv/src \ --L$(top_srcdir)/aut/src \ --L$(top_srcdir)/bdd/src \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/mbkal/src \ --L$(top_srcdir)/mbkedif/src \ --L$(top_srcdir)/mbkhilo/src \ --L$(top_srcdir)/mbkspice/src \ --L$(top_srcdir)/mbkvhdlg/src \ --L$(top_srcdir)/mbkvrlog/src \ --L$(top_srcdir)/mbkvti/src \ --L$(top_srcdir)/scl/src \ --lScl -lMlu -lMal -lMcl -lMel -lMhl -lMsl -lMvg \ --lMgl -lMlo -lMut -lMgl -lAbv -lAbe \ --lBdd -lAbl -lAut -lRcn + -L$(top_srcdir)/abe/src \ + -L$(top_srcdir)/abl/src \ + -L$(top_srcdir)/abv/src \ + -L$(top_srcdir)/aut/src \ + -L$(top_srcdir)/bdd/src \ + -L$(top_srcdir)/mbk/src \ + -L$(top_srcdir)/scl/src \ + -lScl -lMlu -lMlo -lMut -lAbv -lAbe -lBdd -lAbl -lAut -lRcn xsch_SOURCES = \ LIP6bw.h XME_dialog.c XME_dialog.h XME_edit.c XME_edit.h XME.h XME_menu.c XME_menu.h \ diff --git a/alliance/src/xvpn/src/Makefile.am b/alliance/src/xvpn/src/Makefile.am index d1cf2cbe..9d531074 100644 --- a/alliance/src/xvpn/src/Makefile.am +++ b/alliance/src/xvpn/src/Makefile.am @@ -1,15 +1,15 @@ ## Process this file with automake to produce Makefile.in bin_PROGRAMS = xvpn -AM_CFLAGS = @ALLIANCE_CFLAGS@ @X_CFLAGS@ \ - -DXVPN_DEFAULT_PARAM_NAME=\"${ALLIANCE_TOP}/etc/xvpn.par\" \ - -DXMS_FILE_NAME=\".xvpn.cfg\" \ --I$(top_srcdir)/aut/src \ --I$(top_srcdir)/vex/src \ --I$(top_srcdir)/vpn/src \ --I$(top_srcdir)/vtl/src \ --I$(top_srcdir)/abl/src \ --I$(top_srcdir)/mbk/src +AM_CFLAGS = @ALLIANCE_CFLAGS@ @X_CFLAGS@ \ + -DXVPN_DEFAULT_PARAM_NAME=\"${ALLIANCE_TOP}/etc/xvpn.par\" \ + -DXMS_FILE_NAME=\".xvpn.cfg\" \ + -I$(top_srcdir)/aut/src \ + -I$(top_srcdir)/vex/src \ + -I$(top_srcdir)/vpn/src \ + -I$(top_srcdir)/vtl/src \ + -I$(top_srcdir)/abl/src \ + -I$(top_srcdir)/mbk/src # ----------------------------------------------------------------------------- # X Libraries. @@ -44,17 +44,13 @@ ALL_X_LIBS = $(X_LDFLAGS) $(LIBXM) $(LIBXT) \ xvpn_LDADD = @ALLIANCE_LIBS@ $(ALL_X_LIBS) \ --L$(top_srcdir)/abl/src \ --L$(top_srcdir)/aut/src \ --L$(top_srcdir)/mbk/src \ --L$(top_srcdir)/vbh/src \ --L$(top_srcdir)/vbl/src \ --L$(top_srcdir)/vex/src \ --L$(top_srcdir)/vpd/src \ --L$(top_srcdir)/vpn/src \ --L$(top_srcdir)/vtl/src \ --L$(top_srcdir)/vvh/src \ - -lVtl -lVvh -lVpd -lVpn -lVbl -lVbh -lVex -lAbl -lAut -lMut + -L$(top_srcdir)/abl/src \ + -L$(top_srcdir)/aut/src \ + -L$(top_srcdir)/mbk/src \ + -L$(top_srcdir)/vbh/src \ + -L$(top_srcdir)/vex/src \ + -L$(top_srcdir)/vpn/src \ + -lVpn -lVbh -lVex -lAbl -lAut -lMut xvpn_SOURCES = \ LIP6bw.h XME_dialog.c XME_dialog.h XME_edit.c XME_edit.h XME.h XME_menu.c \