source: ThirdParty/Mumps/trunk/Makefile.am @ 2008

Last change on this file since 2008 was 2008, checked in by stefan, 10 years ago

change library installation directory to libdir; rerun autotools

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1# Copyright (C) 2007-2010 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: Makefile.am 2008 2010-12-26 15:57:27Z stefan $
6
7AUTOMAKE_OPTIONS = foreign
8
9EXTRA_DIST = get.mumps INSTALL.MUMPS
10
11lib_LTLIBRARIES = libcoinmumps.la
12
13MUMPSDIR = @MUMPSDIR@
14
15nodist_libcoinmumps_la_SOURCES = \
16        $(MUMPSDIR)/src/tools_common_mod.F \
17        $(MUMPSDIR)/src/dmumps_comm_buffer.F \
18        $(MUMPSDIR)/src/dmumps_struc_def.F \
19        $(MUMPSDIR)/src/mumps_ooc_common.F\
20        $(MUMPSDIR)/src/mumps_static_mapping.F \
21        $(MUMPSDIR)/src/dmumps_ooc_buffer.F \
22        $(MUMPSDIR)/src/dmumps_load.F \
23        $(MUMPSDIR)/src/dmumps_ooc.F \
24        $(MUMPSDIR)/src/dmumps_part1.F \
25        $(MUMPSDIR)/src/dmumps_part2.F \
26        $(MUMPSDIR)/src/dmumps_part3.F \
27        $(MUMPSDIR)/src/dmumps_part4.F \
28        $(MUMPSDIR)/src/dmumps_part5.F \
29        $(MUMPSDIR)/src/dmumps_part6.F \
30        $(MUMPSDIR)/src/dmumps_part7.F \
31        $(MUMPSDIR)/src/dmumps_part8.F \
32        $(MUMPSDIR)/src/mumps_part9.F \
33        $(MUMPSDIR)/src/mumps_c.c \
34        $(MUMPSDIR)/src/mumps_common.c\
35        $(MUMPSDIR)/src/mumps_orderings.c\
36        $(MUMPSDIR)/src/mumps_io.c\
37        $(MUMPSDIR)/src/mumps_io_basic.c\
38        $(MUMPSDIR)/src/mumps_io_thread.c\
39        $(MUMPSDIR)/src/mumps_io_err.c\
40        $(MUMPSDIR)/src/mumps_size.c\
41        $(MUMPSDIR)/libseq/mpi.f \
42        $(MUMPSDIR)/libseq/mpic.c \
43        $(MUMPSDIR)/libseq/elapse.c
44
45
46DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
47
48AM_CPPFLAGS = \
49        -I`$(CYGPATH_W) $(srcdir)/$(MUMPSDIR)/src` \
50        -I`$(CYGPATH_W) $(srcdir)/$(MUMPSDIR)/libseq` \
51        -I`$(CYGPATH_W) $(srcdir)/$(MUMPSDIR)/include`
52
53
54libcoinmumps_la_LDFLAGS = $(LT_LDFLAGS)
55
56# Some dependecies for modules:
57
58dmumps_load.lo dmumps_part1.lo dmumps_part2.lo dmumps_part3.lo \
59dmumps_part4.lo dmumps_part5.lo dmumps_part6.lo dmumps_part8.lo: \
60dmumps_comm_buffer.lo
61
62dmumps_part1.lo dmumps_part2.lo dmumps_part3.lo \
63dmumps_part4.lo dmumps_part5.lo dmumps_part6.lo: dmumps_load.lo
64
65dmumps_part1.lo dmumps_ooc.lo: dmumps_ooc_buffer.lo
66
67dmumps_part1.lo dmumps_part2.lo dmumps_part3.lo dmumps_part4.lo \
68dmumps_part5.lo dmumps_part6.lo dmumps_part8.lo: dmumps_ooc.lo
69
70dmumps_part1.lo dmumps_part5.lo: dmumps_part2.lo
71
72dmumps_load.lo dmumps_ooc.lo dmumps_part1.lo dmumps_part2.lo dmumps_part3.lo \
73dmumps_part4.lo dmumps_part5.lo dmumps_part7.lo dmumps_part8.lo: \
74dmumps_struc_def.lo
75
76dmumps_ooc_buffer.lo dmumps_ooc.lo: mumps_ooc_common.lo
77
78dmumps_part5.lo dmumps_ooc.lo: mumps_static_mapping.lo
79
80dmumps_part2.lo dmumps_part5.lo dmumps_part8.lo: tools_common_mod.lo
81
82# Module files that need to be deleted
83MODEXT = mod
84CLEANFILES = *.$(MODEXT)
85
86# Reset DEFS to that they don't show up for the Fortran compiler
87DEFS =
88CFLAGS += $(MY_DEFS)
89FFLAGS += $(MY_FDEFS)
90
91thirdpartyincludedir = $(includedir)/coin/ThirdParty
92thirdpartyinclude_HEADERS = \
93  $(MUMPSDIR)/include/dmumps_c.h \
94  $(MUMPSDIR)/include/mumps_compat.h \
95  $(MUMPSDIR)/include/mumps_c_types.h \
96  $(MUMPSDIR)/libseq/mpi.h
97
98pkgconfiglibdir = $(libdir)/pkgconfig
99pkgconfiglib_DATA = coinmumps.pc
100
101if COIN_HAS_PKGCONFIG
102addlibsdir = $(DESTDIR)$(datadir)/coin/doc/ThirdParty/Mumps
103       
104install-data-hook:
105        @$(mkdir_p) "$(addlibsdir)"
106        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
107        $(PKG_CONFIG) --libs coinmumps > $(addlibsdir)/mumps_addlibs.txt
108
109uninstall-hook:
110        rm -f $(addlibsdir)/mumps_addlibs.txt
111endif
112
113test: $(libampl)
114        @echo "No test available for Mumps."
115
116########################################################################
117#                         Maintainer Stuff                             #
118########################################################################
119
120# Files that are generated and should be cleaned with make distclean
121DISTCLEANFILES = $(MAKEOKFILE)
122
123include BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.