File: Makefile.am

package info (click to toggle)
gf2x 1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,000 kB
  • sloc: ansic: 14,162; sh: 7,809; cpp: 1,500; makefile: 980; perl: 176
file content (131 lines) | stat: -rw-r--r-- 4,294 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#  This file is part of the gf2x library.
#
#  Copyright 2007, 2008, 2009, 2010, 2013, 2014, 2015
#  Richard Brent, Pierrick Gaudry, Emmanuel Thome', Paul Zimmermann
#
#  This program is free software; you can redistribute it and/or modify it
#  under the terms of either:
#   - If the archive contains a file named toom-gpl.c (not a trivial
#     placeholder), the GNU General Public License as published by the
#     Free Software Foundation; either version 3 of the License, or (at
#     your option) any later version.
#   - If the archive contains a file named toom-gpl.c which is a trivial
#     placeholder, the GNU Lesser General Public License as published by
#     the Free Software Foundation; either version 2.1 of the License, or
#     (at your option) any later version.
#  
#  This program is distributed in the hope that it will be useful, but WITHOUT
#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
#  FITNESS FOR A PARTICULAR PURPOSE.  See the license text for more details.
#  
#  You should have received a copy of the GNU General Public License as
#  well as the GNU Lesser General Public License along with this program;
#  see the files COPYING and COPYING.LIB.  If not, write to the Free
#  Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
#  02110-1301, USA.

AUTOMAKE_OPTIONS=subdir-objects
ACLOCAL_AMFLAGS=-I config --install
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) -I$(top_builddir)/fft -I$(top_srcdir)/fft

FFT_SOURCES_ALWAYS=fft/gf2x-ternary-fft.c

lib_LTLIBRARIES=libgf2x.la
noinst_LIBRARIES=libgf2x-local.a

if HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
VH_FLAG=-fvisibility=hidden -DGF2X_EXPORTED="__attribute__((visibility(\"default\")))"
endif

libgf2x_la_SOURCES=gf2x.c toom.c toom128.c toom-gpl.c $(FFT_SOURCES_ALWAYS)
libgf2x_la_CFLAGS=$(AM_CFLAGS) $(VH_FLAG)

libgf2x_local_a_SOURCES=$(libgf2x_la_SOURCES)
libgf2x_local_a_CFLAGS=$(AM_CFLAGS)



nobase_include_HEADERS=gf2x.h	\
		gf2x/gf2x-impl-export.h		\
		gf2x/gf2x-small.h

# gf2x/gf2x-impl.h is distributed but not installed. Hence it goes to
# EXTRA_DIST, and is specified further down


# All these are generated.
nobase_nodist_include_HEADERS=	\
		gf2x/gf2x-config.h		\
		gf2x/gf2x-config-export.h	\
		gf2x/gf2x-thresholds.h		\
		gf2x/gf2x_mul1.h		\
		gf2x/gf2x_mul2.h		\
		gf2x/gf2x_mul3.h		\
		gf2x/gf2x_mul4.h		\
		gf2x/gf2x_mul5.h		\
		gf2x/gf2x_mul6.h		\
	        gf2x/gf2x_mul7.h		\
		gf2x/gf2x_mul8.h		\
		gf2x/gf2x_mul9.h


libgf2x_la_LDFLAGS=-version-info @gf2x_lib_version@ -no-undefined

SUBDIRS=lowlevel src . fft tests

DIST_SUBDIRS=lowlevel src . fft tests apps

DISTCLEANFILES=gf2x/gf2x-thresholds.h	\
	       gf2x/gf2x_mul1.h		\
	       gf2x/gf2x_mul2.h		\
	       gf2x/gf2x_mul3.h		\
	       gf2x/gf2x_mul4.h		\
	       gf2x/gf2x_mul5.h		\
	       gf2x/gf2x_mul6.h		\
	       gf2x/gf2x_mul7.h		\
	       gf2x/gf2x_mul8.h		\
	       gf2x/gf2x_mul9.h

EXTRA_DIST=
EXTRA_DIST+=gf2x/gf2x-impl.h
EXTRA_DIST+=version.sh.in
EXTRA_DIST+=BUGS
EXTRA_DIST+=already_tuned
EXTRA_DIST+=config/configfsf.sub
EXTRA_DIST+=config/configfsf.guess
EXTRA_DIST+=toom-gpl-placeholder.c
EXTRA_DIST+=check-gf2x-version.c

pkgconfigdir       = $(libdir)/pkgconfig
pkgconfig_DATA     = gf2x.pc

# This is really a maintainer-only command. This can be used for creating
# a tarball with an LGPL-licensed gf2x. Note that when this is done,
# configure must be re-run !
untaint:
	cp $(srcdir)/toom-gpl-placeholder.c $(srcdir)/toom-gpl.c

dist-hook:
	-find $(distdir)/already_tuned/tuned \! -type d -a \! -name README | xargs rm
	-git log --boundary 29b13131cfaf95132f6a0602d3e0575694359d11..HEAD > $(distdir)/ChangeLog

# This one is simply taken from the generated Makefile. I agree it's a
# bit ugly.
dist-LGPL: distdir
	mv $(distdir)/ $(distdir)-LGPL/
	cp $(distdir)-LGPL/toom-gpl-placeholder.c $(distdir)-LGPL/toom-gpl.c
	tardir=$(distdir)-LGPL && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir)-LGPL.tar.gz
	mv $(distdir)-LGPL/ $(distdir)/
	$(am__post_remove_distdir)

if HAVE_NONCONSTANT_CLOCK
tune-lowlevel tune-toom tune-fft: all
	cd src; $(MAKE) $@
else
tune-lowlevel tune-toom tune-fft:
	@echo "Tuning cannot run since clock() apparently returns constant values"
endif


distclean-local:
	-find already_tuned/tuned -maxdepth 1 -name "gf2x*" | xargs -r rm -f