source: trunk/ADOL-C/src/Makefile.am @ 161

Last change on this file since 161 was 161, checked in by kulshres, 10 years ago

Squashed merge of branch 'master' of 'gitclone' into svn

  • 'master' of 'gitclone': (8 commits) Add missing files to dist Add a rpm spec file add some comments and add else cases to ifs typo fix more improvements in ColPack? checking adjust Makefile.am overall to not explicitly need COLPACK_LIBS refactor colpack searching fix in-tree Colpack location for seperated build

Details of the commits:
ommit f925eb1d39f53bf893280f872407e45b16901cd1
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 23 17:58:41 2010 +0200

Add missing files to dist

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 37d5799660bbb042f02518f22c4034a3541b5b26
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 23 17:57:51 2010 +0200

Add a rpm spec file

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 25a41aac1c58214d3d35b4321d90a5fbfb1d2a5d
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 16 15:09:04 2010 +0200

add some comments and add else cases to ifs

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 1fc5a86ce4340692d0e486b6df2a41af5d138e2b
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 16 14:52:20 2010 +0200

typo fix

it's COLPACK_LIBDIR not COLPACK_DIR

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit f8eb90f4962914ccf665617e1a1a7f8d07c066d4
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Sep 16 14:42:15 2010 +0200

more improvements in ColPack? checking

check for the header file too and then test link a C++ program
use readlink to find the real paths for the includedir and libdir
remove the old .tmp from libdir, it may contain junk.
use $AR instead of ar, we may be cross compiling.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 4db5d1eeb1925f996f244184683c6c649b1262fe
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 18:53:00 2010 +0200

adjust Makefile.am overall to not explicitly need COLPACK_LIBS

in case it is dynamically linked to libadolc.so this information
will be forwarded to the executable automatically too. in the
static linking case libadolc.{so,a} already contain everything

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 2c2a4a433c6716db317b1883e9bd568a267cd7e4
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 16:38:16 2010 +0200

refactor colpack searching

link with ColPack? statically if ColPack? resides inside
the source tree.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit b950c231857d9fcfcd3f70e1253cc11b9e2d6f5c
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Wed Sep 15 16:02:29 2010 +0200

fix in-tree Colpack location for seperated build

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1##############################################################################
2## Makefile.am -- Process this file with automake to produce Makefile.in
3## Revision: $Id: Makefile.am 161 2010-09-23 16:14:35Z kulshres $
4##
5## Copyright (C) Andrea Walther, Andreas Kowarz
6##
7## This file is part of ADOL-C. This software is provided as open source.
8## Any use, reproduction, or distribution of the software constitutes
9## recipient's acceptance of the terms of the accompanying license file.
10##
11##############################################################################
12
13if SPARSE
14AM_CFLAGS            = @ac_adolc_cflags@ -DADOLC_INTERNAL=1 -DSPARSE=1
15AM_CXXFLAGS          = @ac_adolc_cxxflags@ -DADOLC_INTERNAL=1 -DSPARSE=1
16else
17AM_CFLAGS            = @ac_adolc_cflags@ -DADOLC_INTERNAL=1
18AM_CXXFLAGS          = @ac_adolc_cxxflags@ -DADOLC_INTERNAL=1
19endif
20
21AM_CPPFLAGS          = -I$(top_srcdir)
22
23INCLUDES             = -I$(top_builddir)
24
25if SPARSE
26SUBDIRS              = drivers sparse tapedoc
27else
28SUBDIRS              = drivers tapedoc
29endif
30
31MAINTAINERCLEANFILES = Makefile.in *~ *.orig adolc_config.h config.h.in
32
33EXTRA_DIST           = uni5_for.c fo_rev.c ho_rev.c \
34                       taping_p.h malloc.h \
35                       externfcts_p.h checkpointing_p.h buffer_temp.h
36
37pkginclude_HEADERS   = adolc.h adalloc.h adouble.h adutils.h adutilsc.h \
38                       common.h convolut.h dvlparms.h fortutils.h\
39                       interfaces.h oplate.h taping.h usrparms.h \
40                       externfcts.h checkpointing.h fixpoint.h\
41                       adolc_sparse.h adolc_openmp.h \
42                       revolve.h
43
44lib_LTLIBRARIES      = libadolc.la
45
46libadolc_la_LDFLAGS  = -version-info 2:1:1 -no-undefined
47
48BUILT_SOURCES = $(top_builddir)/ADOL-C/src/adolc/adolc.h
49
50$(top_builddir)/ADOL-C/src/adolc/adolc.h:
51        $(LN_S) $(top_srcdir)/ADOL-C/src adolc
52
53if SPARSE
54libadolc_la_SOURCES  = adalloc.c malloc.c adouble.cpp \
55                       convolut.c fortutils.c \
56                       interfaces.cpp interfacesf.c \
57                       taping.c tape_handling.cpp \
58                       zos_forward.c fos_forward.c fov_forward.c \
59                       hos_forward.c hov_forward.c hov_wk_forward.c \
60                       fos_reverse.c fov_reverse.c \
61                       hos_reverse.c hos_ov_reverse.c hov_reverse.c \
62                       forward_partx.c \
63                       externfcts.cpp checkpointing.cpp \
64                       fixpoint.cpp fov_offset_forward.c revolve.c \
65                       int_forward_s.c int_forward_t.c \
66                       indopro_forward_s.c indopro_forward_t.c \
67                       nonl_ind_forward_s.c nonl_ind_forward_t.c \
68                       int_reverse_s.c int_reverse_t.c
69
70libadolc_la_LIBADD   = drivers/libdrivers.la sparse/libsparse.la \
71                       tapedoc/libtapedoc.la
72libadolc_la_LDFLAGS  += @COLPACK_LIBS@
73else
74libadolc_la_SOURCES  = adalloc.c malloc.c adouble.cpp \
75                       convolut.c fortutils.c\
76                       interfaces.cpp interfacesf.c \
77                       taping.c tape_handling.cpp \
78                       zos_forward.c fos_forward.c fov_forward.c \
79                       hos_forward.c hov_forward.c hov_wk_forward.c \
80                       fos_reverse.c fov_reverse.c \
81                       hos_reverse.c hos_ov_reverse.c hov_reverse.c \
82                       forward_partx.c \
83                       externfcts.cpp checkpointing.cpp \
84                       fixpoint.cpp fov_offset_forward.c revolve.c
85
86libadolc_la_LIBADD   = drivers/libdrivers.la tapedoc/libtapedoc.la
87
88endif
89
Note: See TracBrowser for help on using the repository browser.