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
Line 
1##############################################################################
2## Makefile.am -- Process this file with automake to produce Makefile.in
3## Revision: $Id: Makefile.am 354 2012-10-01 11:32:26Z 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 -std=gnu99
15AM_CXXFLAGS          = @ac_adolc_cxxflags@ -DADOLC_INTERNAL=1 -DSPARSE=1
16else
17AM_CFLAGS            = @ac_adolc_cflags@ -DADOLC_INTERNAL=1 -std=gnu99
18AM_CXXFLAGS          = @ac_adolc_cxxflags@ -DADOLC_INTERNAL=1
19endif
20
21AM_CPPFLAGS          = -I$(top_srcdir)/ADOL-C/include -I$(top_srcdir)/ADOL-C/src
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 \
32                       oplate.h taping_p.h malloc.h storemanager.h \
33                       externfcts_p.h checkpointing_p.h buffer_temp.h
34
35
36lib_LTLIBRARIES      = libadolc.la
37
38libadolc_la_LDFLAGS  = -version-info 2:1:1 -no-undefined
39
40if SPARSE
41libadolc_la_SOURCES  = adalloc.c malloc.c adouble.cpp \
42                       convolut.c fortutils.c \
43                       interfaces.cpp interfacesf.c \
44                       taping_p.h taping.c tape_handling.cpp \
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 \
55                       int_reverse_s.c int_reverse_t.c advector.cpp
56
57libadolc_la_LIBADD   = drivers/libdrivers.la sparse/libsparse.la \
58                       tapedoc/libtapedoc.la
59libadolc_la_LDFLAGS  += @COLPACK_LIBS@
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 \
71                       fixpoint.cpp fov_offset_forward.c revolve.c advector.cpp
72
73libadolc_la_LIBADD   = drivers/libdrivers.la tapedoc/libtapedoc.la
74
75endif
76
Note: See TracBrowser for help on using the repository browser.