File: Makefile.am

package info (click to toggle)
ratpoints 1:2.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 572 kB
  • ctags: 230
  • sloc: ansic: 4,201; makefile: 155
file content (76 lines) | stat: -rw-r--r-- 2,479 bytes parent folder | download
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
INCLUDES = -I$(top_srcdir)
AM_CFLAGS = $(GMP_FLAGS) $(SIMD_FLAGS) -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE
AM_LIBS = $(GMP_LIBS) $(LIBM)

EXTRA_DIST = testbase ratpoints-doc.pdf
BUILT_SOURCES = $(top_builddir)/find_points.h $(top_builddir)/init_sieve.h
CLEANFILES = \
	$(top_builddir)/init_sieve.h \
	$(top_builddir)/find_points.h \
	$(top_builddir)/rptest.out

lib_LTLIBRARIES = libratpoints.la
bin_PROGRAMS = ratpoints ratpoints-debug
noinst_PROGRAMS = gen_find_points_h gen_init_sieve_h rptest

nodist_libratpoints_la_SOURCES = \
	$(top_builddir)/find_points.h
	$(top_builddir)/init_sieve.h
libratpoints_la_SOURCES = \
	$(top_srcdir)/sift.c \
	$(top_srcdir)/init.c \
	$(top_srcdir)/sturm.c \
	$(top_srcdir)/find_points.c \
	$(top_srcdir)/primes.h \
	$(top_srcdir)/rp-private.h
libratpoints_la_LDFLAGS = -release 2.1.3
libratpoints_la_LIBADD = -lm

include_HEADERS = ratpoints.h

nodist_ratpoints_SOURCES = \
	$(top_builddir)/find_points.h \
	$(top_builddir)/init_sieve.h
ratpoints_SOURCES = $(top_srcdir)/main.c $(top_srcdir)/ratpoints.h
ratpoints_LDADD = $(top_builddir)/libratpoints.la $(AM_LIBS)

nodist_ratpoints_debug_SOURCES = \
	$(top_builddir)/find_points.h \
	$(top_builddir)/init_sieve.h
ratpoints_debug_SOURCES = \
	$(top_srcdir)/main.c \
	$(top_srcdir)/sift.c \
	$(top_srcdir)/init.c \
	$(top_srcdir)/sturm.c \
	$(top_srcdir)/find_points.c \
	$(top_srcdir)/ratpoints.h \
	$(top_srcdir)/rp-private.h \
	$(top_srcdir)/primes.h
ratpoints_debug_CFLAGS = -DDEBUG
ratpoints_debug_LDADD = $(top_builddir)/libratpoints.la $(AM_LIBS)

$(top_builddir)/init_sieve.h: $(top_builddir)/gen_init_sieve_h
	$(top_builddir)/gen_init_sieve_h > $(top_builddir)/init_sieve.h

$(top_builddir)/find_points.h: $(top_builddir)/gen_find_points_h
	$(top_builddir)/gen_find_points_h > $(top_builddir)/find_points.h

gen_init_sieve_h_SOURCES = \
	$(top_builddir)/gen_init_sieve_h.c \
	$(top_builddir)/ratpoints.h \
	$(top_builddir)/rp-private.h \
	$(top_builddir)/primes.h
gen_find_points_h_SOURCES = \
	$(top_builddir)/gen_find_points_h.c \
	$(top_builddir)/ratpoints.h \
	$(top_builddir)/rp-private.h \
	$(top_builddir)/primes.h
rptest_SOURCES = \
	$(top_builddir)/rptest.c \
	$(top_builddir)/ratpoints.h \
	$(top_builddir)/testdata.h
rptest_LDADD = $(top_builddir)/libratpoints.la $(AM_LIBS)

check-local: $(top_builddir)/rptest testbase
	time $(top_builddir)/rptest > $(top_builddir)/rptest.out
	cmp -s $(top_srcdir)/testbase $(top_builddir)/rptest.out || (echo "Test failed!" && exit 1)