Changeset 755 for trunk/Clp/test


Ignore:
Timestamp:
May 11, 2006 12:01:47 PM (13 years ago)
Author:
andreasw
Message:

finished Clp (create now bin/clp_solver)

Location:
trunk/Clp/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/test/Makefile.am

    r754 r755  
    1010
    1111########################################################################
    12 #                         unitTest for Coin                            #
     12#                         unitTest for Clp                             #
    1313########################################################################
    1414
    15 noinst_PROGRAMS = unitTest
     15# We are using the CLP solver executable to do the unit test
    1616
    17 unitTest_SOURCES = \
    18         CbcOrClpParam.cpp CbcOrClpParam.hpp \
    19         ClpMain.cpp \
    20         MyEventHandler.cpp MyEventHandler.hpp \
    21         MyMessageHandler.cpp MyMessageHandler.hpp \
    22         unitTest.cpp
     17test: ../src/clp_solver
     18        ../src/clp_solver -unitTest -netlib -netlibp
    2319
    24 # List libraries of COIN projects
    25 unitTest_LDADD = \
    26         $(CLPOBJDIR)/src/libClp.la
    27         $(COINBASEOBJDIR)/src/libCoinBase.la
    28 
    29 # List additional libraries
    30 LIBS += $(ADDLIBS) `cat $(COINBASEOBJDIR)/coin_addlibs.txt`
    31 
    32 # Here list all include flags, relative to this "srcdir" directory.  This
    33 # "cygpath" stuff is necessary to compile with native compilers on Windows
    34 CXXFLAGS += \
    35         -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
    36         -I`$(CYGPATH_W) $(COINBASESRCDIR)/src`
    37 
    38 test: unitTest
    39         ./unitTest -unitTest -netlib -netlibp
     20.PHONY: test
    4021
    4122########################################################################
  • trunk/Clp/test/Makefile.in

    r754 r755  
    2020
    2121# Author:  Andreas Waechter           IBM    2006-04-13
    22 
    2322srcdir = @srcdir@
    2423top_srcdir = @top_srcdir@
     
    4342build_triplet = @build@
    4443host_triplet = @host@
    45 noinst_PROGRAMS = unitTest$(EXEEXT)
    4644subdir = test
    4745DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
     
    5452CONFIG_HEADER = $(top_builddir)/inc/config_clp.h
    5553CONFIG_CLEAN_FILES =
    56 PROGRAMS = $(noinst_PROGRAMS)
    57 am_unitTest_OBJECTS = CbcOrClpParam.$(OBJEXT) ClpMain.$(OBJEXT) \
    58         MyEventHandler.$(OBJEXT) MyMessageHandler.$(OBJEXT) \
    59         unitTest.$(OBJEXT)
    60 unitTest_OBJECTS = $(am_unitTest_OBJECTS)
    61 unitTest_DEPENDENCIES = $(CLPOBJDIR)/src/libClp.la
    62 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/inc
    63 depcomp = $(SHELL) $(top_srcdir)/../depcomp
    64 am__depfiles_maybe = depfiles
    65 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
    66         $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
    67 LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
    68         $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
    69         $(AM_CXXFLAGS) $(CXXFLAGS)
    70 CXXLD = $(CXX)
    71 CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
    72         $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
    73 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
    74         $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    75 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
    76         $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
    77         $(AM_CFLAGS) $(CFLAGS)
    78 CCLD = $(CC)
    79 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
    80         $(AM_LDFLAGS) $(LDFLAGS) -o $@
    81 SOURCES = $(unitTest_SOURCES)
    82 DIST_SOURCES = $(unitTest_SOURCES)
    83 ETAGS = etags
    84 CTAGS = ctags
     54SOURCES =
     55DIST_SOURCES =
    8556DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    8657ACLOCAL = @ACLOCAL@
     
    11788CXXDEFS = @CXXDEFS@
    11889CXXDEPMODE = @CXXDEPMODE@
    119 
    120 # Here list all include flags, relative to this "srcdir" directory.  This
    121 # "cygpath" stuff is necessary to compile with native compilers on Windows
    122 CXXFLAGS = @CXXFLAGS@ -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
    123         -I`$(CYGPATH_W) $(COINBASESRCDIR)/src`
     90CXXFLAGS = @CXXFLAGS@
    12491CYGPATH_W = @CYGPATH_W@
    12592DEFS = @DEFS@
     
    141108LDFLAGS = @LDFLAGS@
    142109LIBOBJS = @LIBOBJS@
    143 
    144 # List additional libraries
    145 LIBS = @LIBS@ $(ADDLIBS) `cat $(COINBASEOBJDIR)/coin_addlibs.txt`
     110LIBS = @LIBS@
    146111LIBTOOL = @LIBTOOL@
    147112LIBTOOLM4 = @LIBTOOLM4@
     
    216181target_alias = @target_alias@
    217182AUTOMAKE_OPTIONS = foreign
    218 unitTest_SOURCES = \
    219         CbcOrClpParam.cpp CbcOrClpParam.hpp \
    220         ClpMain.cpp \
    221         MyEventHandler.cpp MyEventHandler.hpp \
    222         MyMessageHandler.cpp MyMessageHandler.hpp \
    223         unitTest.cpp
    224 
    225 
    226 # List libraries of COIN projects
    227 unitTest_LDADD = \
    228         $(CLPOBJDIR)/src/libClp.la
    229 
    230183
    231184########################################################################
     
    239192
    240193.SUFFIXES:
    241 .SUFFIXES: .cpp .lo .o .obj
    242194$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
    243195        @for dep in $?; do \
     
    270222        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    271223
    272 clean-noinstPROGRAMS:
    273         @list='$(noinst_PROGRAMS)'; for p in $$list; do \
    274           f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
    275           echo " rm -f $$p $$f"; \
    276           rm -f $$p $$f ; \
    277         done
    278 unitTest$(EXEEXT): $(unitTest_OBJECTS) $(unitTest_DEPENDENCIES)
    279         @rm -f unitTest$(EXEEXT)
    280         $(CXXLINK) $(unitTest_LDFLAGS) $(unitTest_OBJECTS) $(unitTest_LDADD) $(LIBS)
    281 
    282 mostlyclean-compile:
    283         -rm -f *.$(OBJEXT)
    284 
    285 distclean-compile:
    286         -rm -f *.tab.c
    287 
    288 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CbcOrClpParam.Po@am__quote@
    289 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ClpMain.Po@am__quote@
    290 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MyEventHandler.Po@am__quote@
    291 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MyMessageHandler.Po@am__quote@
    292 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unitTest.Po@am__quote@
    293 
    294 .cpp.o:
    295 @am__fastdepCXX_TRUE@   if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
    296 @am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    297 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    298 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    299 @am__fastdepCXX_FALSE@  $(CXXCOMPILE) -c -o $@ $<
    300 
    301 .cpp.obj:
    302 @am__fastdepCXX_TRUE@   if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
    303 @am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    304 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    305 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    306 @am__fastdepCXX_FALSE@  $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
    307 
    308 .cpp.lo:
    309 @am__fastdepCXX_TRUE@   if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
    310 @am__fastdepCXX_TRUE@   then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    311 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
    312 @AMDEP_TRUE@@am__fastdepCXX_FALSE@      DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    313 @am__fastdepCXX_FALSE@  $(LTCXXCOMPILE) -c -o $@ $<
    314 
    315224mostlyclean-libtool:
    316225        -rm -f *.lo
     
    322231        -rm -f libtool
    323232uninstall-info-am:
    324 
    325 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
    326         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
    327         unique=`for i in $$list; do \
    328             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    329           done | \
    330           $(AWK) '    { files[$$0] = 1; } \
    331                END { for (i in files) print i; }'`; \
    332         mkid -fID $$unique
    333233tags: TAGS
    334 
    335 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
    336                 $(TAGS_FILES) $(LISP)
    337         tags=; \
    338         here=`pwd`; \
    339         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
    340         unique=`for i in $$list; do \
    341             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    342           done | \
    343           $(AWK) '    { files[$$0] = 1; } \
    344                END { for (i in files) print i; }'`; \
    345         if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
    346           test -n "$$unique" || unique=$$empty_fix; \
    347           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    348             $$tags $$unique; \
    349         fi
     234TAGS:
     235
    350236ctags: CTAGS
    351 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
    352                 $(TAGS_FILES) $(LISP)
    353         tags=; \
    354         here=`pwd`; \
    355         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
    356         unique=`for i in $$list; do \
    357             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    358           done | \
    359           $(AWK) '    { files[$$0] = 1; } \
    360                END { for (i in files) print i; }'`; \
    361         test -z "$(CTAGS_ARGS)$$tags$$unique" \
    362           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
    363              $$tags $$unique
    364 
    365 GTAGS:
    366         here=`$(am__cd) $(top_builddir) && pwd` \
    367           && cd $(top_srcdir) \
    368           && gtags -i $(GTAGS_ARGS) $$here
    369 
    370 distclean-tags:
    371         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
     237CTAGS:
     238
    372239
    373240distdir: $(DISTFILES)
     
    400267check-am: all-am
    401268check: check-am
    402 all-am: Makefile $(PROGRAMS)
     269all-am: Makefile
    403270installdirs:
    404271install: install-am
     
    429296clean: clean-am
    430297
    431 clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
    432         mostlyclean-am
     298clean-am: clean-generic clean-libtool mostlyclean-am
    433299
    434300distclean: distclean-am
    435         -rm -rf ./$(DEPDIR)
    436301        -rm -f Makefile
    437 distclean-am: clean-am distclean-compile distclean-generic \
    438         distclean-libtool distclean-tags
     302distclean-am: clean-am distclean-generic distclean-libtool
    439303
    440304dvi: dvi-am
     
    459323
    460324maintainer-clean: maintainer-clean-am
    461         -rm -rf ./$(DEPDIR)
    462325        -rm -f Makefile
    463326maintainer-clean-am: distclean-am maintainer-clean-generic
     
    465328mostlyclean: mostlyclean-am
    466329
    467 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
    468         mostlyclean-libtool
     330mostlyclean-am: mostlyclean-generic mostlyclean-libtool
    469331
    470332pdf: pdf-am
     
    478340uninstall-am: uninstall-info-am
    479341
    480 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
    481         clean-libtool clean-noinstPROGRAMS ctags distclean \
    482         distclean-compile distclean-generic distclean-libtool \
    483         distclean-tags distdir dvi dvi-am html html-am info info-am \
    484         install install-am install-data install-data-am install-exec \
    485         install-exec-am install-info install-info-am install-man \
    486         install-strip installcheck installcheck-am installdirs \
    487         maintainer-clean maintainer-clean-generic mostlyclean \
    488         mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
    489         pdf pdf-am ps ps-am tags uninstall uninstall-am \
     342.PHONY: all all-am check check-am clean clean-generic clean-libtool \
     343        distclean distclean-generic distclean-libtool distdir dvi \
     344        dvi-am html html-am info info-am install install-am \
     345        install-data install-data-am install-exec install-exec-am \
     346        install-info install-info-am install-man install-strip \
     347        installcheck installcheck-am installdirs maintainer-clean \
     348        maintainer-clean-generic mostlyclean mostlyclean-generic \
     349        mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
    490350        uninstall-info-am
    491351
    492         $(COINBASEOBJDIR)/src/libCoinBase.la
    493 
    494 test: unitTest
    495         ./unitTest -unitTest -netlib -netlibp
     352
     353########################################################################
     354#                         unitTest for Clp                             #
     355########################################################################
     356
     357# We are using the CLP solver executable to do the unit test
     358
     359test: ../src/clp_solver
     360        ../src/clp_solver -unitTest -netlib -netlibp
     361
     362.PHONY: test
    496363# Tell versions [3.59,3.63) of GNU make to not export all variables.
    497364# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.