Ignore:
Timestamp:
Jun 8, 2011 1:28:29 PM (8 years ago)
Author:
stefan
Message:

change to new way on how to use and install configuration header files

File:
1 edited

Legend:

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

    r1701 r1734  
    138138endif
    139139
    140 # This line is necessary to allow VPATH compilation with MS compilers
    141 # on Cygwin
    142 DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
     140# This line is necessary to allow VPATH compilation
     141DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
    143142
    144143########################################################################
     
    150149includecoindir = $(includedir)/coin
    151150includecoin_HEADERS = \
    152         ../inc/config_clp.h \
    153151        Clp_C_Interface.h \
    154152        ClpCholeskyBase.hpp \
     
    218216includecoin_HEADERS += CbcOrClpParam.cpp
    219217
    220 #############################################################################
    221 # Create the Config.h file that always defines HAVE_CONFIG_H and install it #
    222 #############################################################################
    223 
    224 # You only need to adapt the following line
    225 ConfigHeader = ClpConfig.h
    226 
    227218install-exec-local:
    228         echo "#ifndef HAVE_CONFIG_H" >bla
    229         echo "#define HAVE_CONFIG_H" >>bla
    230         echo "#endif" >> bla
    231         cat $(srcdir)/$(ConfigHeader) >> bla
    232         $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
    233         rm -f bla
     219        $(install_sh_DATA) config_clp.h $(DESTDIR)$(includecoindir)/ClpConfig.h
    234220
    235221uninstall-local:
    236         rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
     222        rm -f $(DESTDIR)$(includecoindir)/ClpConfig.h
Note: See TracChangeset for help on using the changeset viewer.