Ignore:
Timestamp:
Aug 22, 2006 12:54:37 PM (13 years ago)
Author:
andreasw
Message:

Fix ticket #2, improve behavior of OA in non-convex problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Bonmin/experimental/Bcp/Makefile.am

    r1 r26  
    2525  COINLIBS += \
    2626        $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la \
    27         $(COINUTILSOBJDIR)/src/libCoinUtils.la \
    2827        $(CPXLIB)
    2928endif
     
    4039bonminbcp_SOURCES = BB_cut.hpp BB_cut.cpp BM.hpp BM.cpp BM_pack.cpp bm_var.hpp
    4140
     41bonminbcp_DEPENDENCIES = amplsolver.a
     42
     43AMPL_PATHED_FILES = \
     44        asl.h \
     45        jac0dim.c \
     46        misc.c \
     47        pfg_read.c
     48AMPL_SRC = $(abs_source_dir)/../ThirdParty/ASL/solvers
     49
     50amplsolver.a:
     51        mkdir -p solvers ; \
     52        cd solvers ; \
     53        for f in $(AMPL_SRC)/*.c* $(AMPL_SRC)/*.h*; do \
     54                $(LN_S) $$f ; \
     55        done ; \
     56        for f in $(AMPL_PATHED_FILES); do \
     57                rm $$f ; \
     58                cp $(AMPL_SRC)/$$f . ; \
     59        done ; \
     60        patch -p1 < $(abs_source_dir)/experimental/Bcp/ampl_bcp.patch ; \
     61        for f in `grep -l 'strtod' *.c *.h`; do \
     62                mv $$f $$f.orig ; \
     63                sed -e 's/strtod/ASLstrtod/g' -e 's/ASLASLstrtod/ASLstrtod/g' $$f.orig > $$f ; \
     64                rm $$f.orig ; \
     65        done ; \
     66        for f in `grep -l 'atof(' *.c`; do \
     67                mv $$f $$f.orig ; \
     68                sed -e 's/atof/ASLatof/g' -e 's/ASLASLatof/ASLatof/g' $$f.orig > $$f ; \
     69                rm $$f.orig ; \
     70        done ; \
     71        sed -e 's/CFLAGS =/CFLAGS = -DNO_FUNCADD/g' $(AMPL_SRC)/makefile.u > makefile.u ; \
     72        $(MAKE) -f makefile.u ; \
     73        cp amplsolver.a ..
     74
    4275bonminbcp_LDADD = \
    4376        ../../src/Apps/libbonmin.la \
     
    4578        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la \
    4679        $(IPOPTLIBS) \
    47         $(ASLLIB) \
    4880        $(LIBCBCCOPY) \
    4981        $(COINLIBS) \
     82        amplsolver.a \
    5083        $(ADDLIBS)
    5184
Note: See TracChangeset for help on using the changeset viewer.