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

Last change on this file since 354 was 354, checked in by kulshres, 8 years ago

Move all external headers into a separate directory

This let's us get rid of the symlink adolc that was previously required
for building and created problems sometimes
This also adjusts all Makefiles for examples to make external builds
possible.

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

  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
RevLine 
[40]1##############################################################################
2## Makefile.am -- Process this file with automake to produce Makefile.in
[42]3## Revision: $Id: Makefile.am 354 2012-10-01 11:32:26Z kulshres $
[40]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
[337]14AM_CFLAGS            = @ac_adolc_cflags@ -DADOLC_INTERNAL=1 -DSPARSE=1 -std=gnu99
[40]15AM_CXXFLAGS          = @ac_adolc_cxxflags@ -DADOLC_INTERNAL=1 -DSPARSE=1
16else
[337]17AM_CFLAGS            = @ac_adolc_cflags@ -DADOLC_INTERNAL=1 -std=gnu99
[40]18AM_CXXFLAGS          = @ac_adolc_cxxflags@ -DADOLC_INTERNAL=1
19endif
20
[354]21AM_CPPFLAGS          = -I$(top_srcdir)/ADOL-C/include -I$(top_srcdir)/ADOL-C/src
[40]22
23if SPARSE
24SUBDIRS              = drivers sparse tapedoc
25else
26SUBDIRS              = drivers tapedoc
27endif
28
29MAINTAINERCLEANFILES = Makefile.in *~ *.orig adolc_config.h config.h.in
30
31EXTRA_DIST           = uni5_for.c fo_rev.c ho_rev.c \
[337]32                       oplate.h taping_p.h malloc.h storemanager.h \
[106]33                       externfcts_p.h checkpointing_p.h buffer_temp.h
[40]34
35
36lib_LTLIBRARIES      = libadolc.la
37
[161]38libadolc_la_LDFLAGS  = -version-info 2:1:1 -no-undefined
[40]39
40if SPARSE
41libadolc_la_SOURCES  = adalloc.c malloc.c adouble.cpp \
42                       convolut.c fortutils.c \
43                       interfaces.cpp interfacesf.c \
[171]44                       taping_p.h taping.c tape_handling.cpp \
[40]45                       zos_forward.c fos_forward.c fov_forward.c \
46                       hos_forward.c hov_forward.c hov_wk_forward.c \
47                       fos_reverse.c fov_reverse.c \
48                       hos_reverse.c hos_ov_reverse.c hov_reverse.c \
49                       forward_partx.c \
50                       externfcts.cpp checkpointing.cpp \
51                       fixpoint.cpp fov_offset_forward.c revolve.c \
52                       int_forward_s.c int_forward_t.c \
53                       indopro_forward_s.c indopro_forward_t.c \
54                       nonl_ind_forward_s.c nonl_ind_forward_t.c \
[337]55                       int_reverse_s.c int_reverse_t.c advector.cpp
[40]56
57libadolc_la_LIBADD   = drivers/libdrivers.la sparse/libsparse.la \
58                       tapedoc/libtapedoc.la
[106]59libadolc_la_LDFLAGS  += @COLPACK_LIBS@
[40]60else
61libadolc_la_SOURCES  = adalloc.c malloc.c adouble.cpp \
62                       convolut.c fortutils.c\
63                       interfaces.cpp interfacesf.c \
64                       taping.c tape_handling.cpp \
65                       zos_forward.c fos_forward.c fov_forward.c \
66                       hos_forward.c hov_forward.c hov_wk_forward.c \
67                       fos_reverse.c fov_reverse.c \
68                       hos_reverse.c hos_ov_reverse.c hov_reverse.c \
69                       forward_partx.c \
70                       externfcts.cpp checkpointing.cpp \
[337]71                       fixpoint.cpp fov_offset_forward.c revolve.c advector.cpp
[40]72
73libadolc_la_LIBADD   = drivers/libdrivers.la tapedoc/libtapedoc.la
74
75endif
76
Note: See TracBrowser for help on using the repository browser.