Ignore:
Timestamp:
Aug 20, 2006 3:46:15 PM (13 years ago)
Author:
ladanyi
Message:

bonminbcp builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Bonmin/experimental/Bcp/Makefile.in

    r13 r16  
    4444@COIN_HAS_CPX_TRUE@am__append_1 = \
    4545@COIN_HAS_CPX_TRUE@     $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la \
    46 @COIN_HAS_CPX_TRUE@     $(COINUTILSOBJDIR)/src/libCoinUtils.la \
    4746@COIN_HAS_CPX_TRUE@     $(CPXLIB)
    4847
     
    7069@COIN_HAS_CPX_TRUE@am__DEPENDENCIES_3 =  \
    7170@COIN_HAS_CPX_TRUE@     $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la \
    72 @COIN_HAS_CPX_TRUE@     $(COINUTILSOBJDIR)/src/libCoinUtils.la \
    7371@COIN_HAS_CPX_TRUE@     $(am__DEPENDENCIES_2)
    7472am__DEPENDENCIES_4 = $(BCPOBJDIR)/src/libBcp.la \
     
    7775        $(OSIOBJDIR)/src/libOsi.la $(CLPOBJDIR)/src/libClp.la \
    7876        $(COINUTILSOBJDIR)/src/libCoinUtils.la $(am__DEPENDENCIES_3)
    79 bonminbcp_DEPENDENCIES = ../../src/Apps/libbonmin.la \
    80         ../../src/BonminAmplInterface/libamplinterface.la \
    81         $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la \
    82         $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \
    83         $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
    8477depcomp = $(SHELL) $(top_srcdir)/../depcomp
    8578am__depfiles_maybe = depfiles
     
    329322########################################################################
    330323bonminbcp_SOURCES = BB_cut.hpp BB_cut.cpp BM.hpp BM.cpp BM_pack.cpp bm_var.hpp
     324bonminbcp_DEPENDENCIES = amplsolver.a
     325AMPL_PATHED_FILES = \
     326        asl.h \
     327        jac0dim.c \
     328        misc.c \
     329        pfg_read.c
     330
     331AMPL_SRC = $(abs_source_dir)/../ThirdParty/ASL/solvers
    331332bonminbcp_LDADD = \
    332333        ../../src/Apps/libbonmin.la \
     
    334335        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la \
    335336        $(IPOPTLIBS) \
    336         $(ASLLIB) \
    337337        $(LIBCBCCOPY) \
    338338        $(COINLIBS) \
     339        amplsolver.a \
    339340        $(ADDLIBS)
    340341
     
    647648        uninstall-binPROGRAMS uninstall-info-am
    648649
     650
     651amplsolver.a:
     652        mkdir -p solvers ; \
     653        cd solvers ; \
     654        for f in $(AMPL_SRC)/*.c* $(AMPL_SRC)/*.h*; do \
     655                $(LN_S) $$f ; \
     656        done ; \
     657        for f in $(AMPL_PATHED_FILES); do \
     658                rm $$f ; \
     659                cp $(AMPL_SRC)/$$f . ; \
     660        done ; \
     661        patch -p1 < $(abs_source_dir)/experimental/Bcp/ampl_bcp.patch ; \
     662        for f in `grep -l 'strtod' *.c *.h`; do \
     663                mv $$f $$f.orig ; \
     664                sed -e 's/strtod/ASLstrtod/g' $$f.orig > $$f ; \
     665                rm $$f.orig ; \
     666        done ; \
     667        for f in `grep -l 'atof(' *.c`; do \
     668                mv $$f $$f.orig ; \
     669                sed -e 's/atof(/ASLatof(/g' $$f.orig > $$f ; \
     670                rm $$f.orig ; \
     671        done ; \
     672        sed -e 's/CFLAGS =/CFLAGS = -DNO_FUNCADD/g' $(AMPL_SRC)/makefile.u > makefile.u ; \
     673        $(MAKE) -f makefile.u ; \
     674        cp amplsolver.a ..
    649675# Tell versions [3.59,3.63) of GNU make to not export all variables.
    650676# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.