1##############################################################################
2## Makefile.am -- Process this file with automake to produce Makefile.in
3## Revision: $Id: Makefile.am 762 2018-12-18 15:36:05Z mbanovic $
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
13AM_CFLAGS            = @ac_adolc_cflags@ -DADOLC_INTERNAL=1 -std=gnu99
14AM_CXXFLAGS          = @ac_adolc_cxxflags@ -DADOLC_INTERNAL=1
15
16AM_CPPFLAGS          = -I$(top_builddir)/ADOL-C/include -I$(top_srcdir)/ADOL-C/include -I$(top_srcdir)/ADOL-C/src
17
18if SPARSE
19SUBDIRS              = drivers sparse tapedoc lie
20else
21SUBDIRS              = drivers tapedoc lie
22endif
23
24MAINTAINERCLEANFILES = Makefile.in *~ *.orig adolc_config.h config.h.in
25
26EXTRA_DIST           = uni5_for.c fo_rev.c ho_rev.c
27
28noinst_LTLIBRARIES      = libadolcsrc.la
29libadolcsrc_la_LDFLAGS  =
30
31if BUILD_ADOLC_AMPI_SUPPORT
32noinst_LTLIBRARIES       += libadolcampi.la
33libadolcampi_la_SOURCES  = ampisupport.cpp ampisupportAdolc.cpp \
34                           ampisupportAdolc.h
35endif
36
37if BUILD_ADOLC_MEDIPACK_SUPPORT
38noinst_LTLIBRARIES       += libadolcmedipack.la
39libadolcmedipack_la_SOURCES  = medipacksupport.cpp \
40                               medipacksupport_p.h
41endif
42
43
44libadolcsrc_la_SOURCES  = adalloc.c rpl_malloc.c adouble.cpp \
45                       convolut.c fortutils.c \
46                       interfaces.cpp interfacesf.c \
47                       taping.c tape_handling.cpp \
48                       dvlparms.h oplate.h taping_p.h rpl_malloc.h storemanager.h \
49                       externfcts_p.h checkpointing_p.h buffer_temp.h \
50                       zos_forward.c fos_forward.c fov_forward.c \
51                       hos_forward.c hov_forward.c hov_wk_forward.c \
52                       fos_reverse.c fov_reverse.c \
53                       hos_reverse.c hos_ov_reverse.c hov_reverse.c \
54                       forward_partx.c zos_pl_forward.c fos_pl_reverse.c fos_pl_sig_reverse.c \
55                       fos_pl_forward.c fov_pl_forward.c fos_pl_sig_forward.c \
56                       fov_pl_sig_forward.c externfcts.cpp checkpointing.cpp \
57                       fixpoint.cpp fov_offset_forward.c revolve.c \
58                       advector.cpp adouble_tl.cpp adouble_tl_indo.cpp adouble_tl_hov.cpp param.cpp externfcts2.cpp
59
60if SPARSE
61libadolcsrc_la_SOURCES  += int_forward_s.c int_forward_t.c \
62                       indopro_forward_s.c indopro_forward_t.c \
63                       indopro_forward_pl.c \
64                       nonl_ind_forward_s.c nonl_ind_forward_t.c \
65                       nonl_ind_old_forward_s.c nonl_ind_old_forward_t.c \
66                       int_reverse_s.c int_reverse_t.c
67
68endif
69