Ignore:
Timestamp:
Jun 23, 2006 4:23:29 PM (14 years ago)
Author:
andreasw
Message:

several improvements for MSys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/ASL/trunk/Makefile.am

    r47 r72  
    1515compdir = compdir
    1616
    17 libampl   = amplsolver.a
     17libampl   = $(AMPLSOLVER_A)
    1818
    19 all-local: $(libampl) stdio1.h arith.h funcadd0.o
     19all-local: $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
    2020
     21if MSVC_COMPILE
     22$(libampl):
     23        @echo " "
     24        @echo "*********************************************************************"
     25        @echo " "
     26        @echo "Please change into the following directory and type ./compile_MS_ASL"
     27        @pwd
     28        @echo " "
     29        @echo "*********************************************************************"
     30        @exit 1
     31#       set -x -v; \
     32#       rm -rf $(compdir) ; \
     33#       $(mkinstalldirs) $(compdir); \
     34#       files=`cd $(abs_source_dir)/solvers; ls *.[chs] *.[ch]0 *.hd arith.* makefile* *.bat amplsolv.lbc`; \
     35#       cd $(compdir); \
     36#       for file in $$files; \
     37#       do \
     38#         rm -f $$file ;\
     39#         cp $(abs_source_dir)/solvers/$$file $$file ;\
     40#       done; \
     41#       cp details.c0 details.c; \
     42#       rm -f makefile; \
     43#       nmake.exe   
     44#       mv $(compdir)/amplsolv.lib $(libampl)
     45#       -cd $(compdir); mv stdio1.h arith.h funcadd0.o ..
     46#       rm -rf $(compdir)
     47else
    2148$(libampl):
    2249        rm -rf $(compdir) ; \
     
    2653        for file in $$files; \
    2754        do \
     55          rm -f $$file ;\
    2856          $(LN_S) $(abs_source_dir)/solvers/$$file $$file ;\
    2957        done; \
     
    3361        $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" ;\
    3462        mv amplsolver.a ../$(libampl)
    35         -cd $(compdir); mv stdio1.h arith.h funcadd0.o ..
     63        -cd $(compdir); mv stdio1.h arith.h funcadd0.$(OBJEXT) ..
    3664        rm -rf $(compdir)
     65endif
    3766
    3867stdio1.h arith.h funcadd0.o: $(libampl)
    3968
    40 CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.o
     69CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
    4170
    4271########################################################################
Note: See TracChangeset for help on using the changeset viewer.