source: trunk/Alps/src/Makefile.am @ 277

Last change on this file since 277 was 277, checked in by andreasw, 13 years ago

first working version with autotools

File size: 3.8 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 790 2006-06-03 03:20:11Z andreasw $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                               libAlps                                #
13########################################################################
14
15# Name of the library compiled in this directory.  We want it to be installed
16# in the 'lib' directory
17lib_LTLIBRARIES = libAlps.la
18
19# List all source files for this library, including headers
20libAlps_la_SOURCES = \
21        AlpsConfig.h \
22        AlpsAix43.h \
23        AlpsCompareActual.cpp AlpsCompareActual.h \
24        AlpsCompareBase.h \
25        AlpsCygwin.h \
26        AlpsEncoded.h \
27        AlpsEnumProcessT.h \
28        Alps.h \
29        AlpsHelperFunctions.h \
30        AlpsKnowledgeBroker.cpp AlpsKnowledgeBroker.h \
31        AlpsKnowledge.cpp AlpsKnowledge.h \
32        AlpsKnowledgePool.h \
33        AlpsLicense.h \
34        AlpsLinux.h \
35        AlpsMACH.h \
36        AlpsMessage.cpp AlpsMessage.h \
37        AlpsMessageTag.h \
38        AlpsModel.cpp AlpsModel.h \
39        AlpsNodeDesc.h \
40        AlpsNodePool.h \
41        AlpsOs.h \
42        AlpsParameterBase.cpp AlpsParameterBase.h \
43        AlpsParams.cpp AlpsParams.h \
44        AlpsPriorityQueue.h \
45        AlpsSolution.h \
46        AlpsSolutionPool.h \
47        AlpsSubTree.cpp AlpsSubTree.h \
48        AlpsSubTreePool.h \
49        AlpsSunos.h \
50        AlpsTime.h \
51        AlpsTreeNode.cpp AlpsTreeNode.h
52
53if COIN_HAS_MPI
54libAlps_la_SOURCES += AlpsKnowledgeBrokerMPI.cpp AlpsKnowledgeBrokerMPI.h
55else
56libAlps_la_SOURCES += AlpsKnowledgeBrokerSerial.cpp AlpsKnowledgeBrokerSerial.h
57endif
58
59# This is for libtool (on Windows)
60libAlps_la_LDFLAGS = $(LT_LDFLAGS)
61
62########################################################################
63#                            Additional flags                          #
64########################################################################
65
66# Here list all include flags, relative to this "srcdir" directory.  This
67# "cygpath" stuff is necessary to compile with native compilers on Windows.
68AM_CPPFLAGS = \
69        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src`
70
71# Include MPI header directory if MPI is used
72if COIN_HAS_MPI
73AM_CPPFLAGS +=  -I`$(CYGPATH_W) $(MPIINCDIR)`
74endif
75
76# This line is necessary to allow VPATH compilation with MS compilers
77# on Cygwin
78DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
79
80########################################################################
81#                Headers that need to be installed                     #
82########################################################################
83
84# Here list all the header files that are required by a user of the library,
85# and that therefore should be installed in 'install'
86include_HEADERS = \
87        ../inc/config_alps.h \
88        Alps.h \
89        AlpsCompareActual.h \
90        AlpsCompareBase.h \
91        AlpsEncoded.h \
92        AlpsEnumProcessT.h \
93        AlpsHelperFunctions.h \
94        AlpsKnowledge.h \
95        AlpsKnowledgeBroker.h \
96        AlpsKnowledgeBrokerMPI.h \
97        AlpsKnowledgeBrokerSerial.h \
98        AlpsKnowledgePool.h \
99        AlpsMessage.h \
100        AlpsModel.h \
101        AlpsNodeDesc.h \
102        AlpsNodePool.h \
103        AlpsParams.h \
104        AlpsParameterBase.h \
105        AlpsPriorityQueue.h \
106        AlpsSolution.h \
107        AlpsSolutionPool.h \
108        AlpsSubTree.h \
109        AlpsSubTreePool.h \
110        AlpsTime.h \
111        AlpsTreeNode.h
112
113#############################################################################
114# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
115#############################################################################
116
117# You only need to adapt the following line
118ConfigHeader = AlpsConfig.h
119
120install-exec-local:
121        echo "#ifndef HAVE_CONFIG_H" >bla
122        echo "#define HAVE_CONFIG_H" >>bla
123        echo "#endif" >> bla
124        cat $(srcdir)/$(ConfigHeader) >> bla
125        $(install_sh_DATA) bla $(DESTDIR)$(includedir)/$(ConfigHeader)
126        rm -f bla
127
128uninstall-local:
129        rm -f $(DESTDIR)$(includedir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.