File: Makefile.am

package info (click to toggle)
fftw 2.1.3-16
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,976 kB
  • ctags: 4,800
  • sloc: ansic: 63,898; sh: 9,020; ml: 3,171; perl: 2,894; makefile: 759; fortran: 79
file content (97 lines) | stat: -rw-r--r-- 4,276 bytes parent folder | download | duplicates (10)
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
# The threads stuff is only compiled if FFTW was configured with
# the --enable-threads option.  This requires us to use the combination
# of foo_* and EXTRA_* variables below.

lib_LTLIBRARIES = @FFTW_THREADS_LIBLIST@
include_HEADERS = @FFTW_THREADS_INCLUDELIST@
noinst_PROGRAMS = @FFTW_THREADS_PROGLIST@

EXTRA_LTLIBRARIES = libXXX_FFTW_PREFIX_XXXfftw_threads.la \
                    libXXX_FFTW_PREFIX_XXXrfftw_threads.la
EXTRA_HEADERS = XXX_FFTW_PREFIX_XXXfftw_threads.h \
                XXX_FFTW_PREFIX_XXXrfftw_threads.h
EXTRA_PROGRAMS = fftw_threads_test rfftw_threads_test

FFTWDIR=../fftw
RFFTWDIR=../rfftw
INCLUDES = -I$(srcdir)/../tests \
           -I$(srcdir)/$(FFTWDIR) -I$(srcdir)/$(RFFTWDIR) -I$(srcdir)


libXXX_FFTW_PREFIX_XXXfftw_threads_la_SOURCES = \
                             executor_threads.c fftw_threads.c \
                             fftwnd_threads.c \
                             fftw_f77_threads.c \
	                     XXX_FFTW_PREFIX_XXXfftw_threads.h \
                             fftw_threads-int.h
libXXX_FFTW_PREFIX_XXXfftw_threads_la_LDFLAGS = \
                             -version-info @SHARED_VERSION_INFO@ \
                             -rpath $(libdir)

XXX_FFTW_PREFIX1_XXXfftw_threads.h: fftw_threads.h
	rm -f XXX_FFTW_PREFIX_XXXfftw_threads.h
	sed 's/<fftw/<XXX_FFTW_PREFIX_XXXfftw/g;s/<rfftw/<XXX_FFTW_PREFIX_XXXrfftw/g' fftw_threads.h > XXX_FFTW_PREFIX_XXXfftw_threads.h

fftw_threads_test_SOURCES = fftw_threads_test.c
fftw_threads_test_LDADD = ../tests/test_main.o \
	                  libXXX_FFTW_PREFIX_XXXfftw_threads.la \
                          $(FFTWDIR)/libXXX_FFTW_PREFIX_XXXfftw.la \
	 		  @THREADLIBS@

libXXX_FFTW_PREFIX_XXXrfftw_threads_la_SOURCES = \
                              rexec_threads.c rexec2_threads.c \
    	                      rfftwnd_threads.c \
                              rfftw_f77_threads.c \
	                      XXX_FFTW_PREFIX_XXXfftw_threads.h \
                              fftw_threads-int.h \
                              XXX_FFTW_PREFIX_XXXrfftw_threads.h
libXXX_FFTW_PREFIX_XXXrfftw_threads_la_LDFLAGS = \
                              -version-info @SHARED_VERSION_INFO@ \
                              -rpath $(libdir)

XXX_FFTW_PREFIX1_XXXrfftw_threads.h: rfftw_threads.h
	rm -f XXX_FFTW_PREFIX_XXXrfftw_threads.h
	sed 's/<fftw/<XXX_FFTW_PREFIX_XXXfftw/g;s/<rfftw/<XXX_FFTW_PREFIX_XXXrfftw/g' rfftw_threads.h > XXX_FFTW_PREFIX_XXXrfftw_threads.h

CLEANFILES = XXX_FFTW_PREFIX1_XXXfftw_threads.h \
             XXX_FFTW_PREFIX1_XXXrfftw_threads.h

rfftw_threads_test_SOURCES = rfftw_threads_test.c
rfftw_threads_test_LDADD = ../tests/test_main.o \
	                  libXXX_FFTW_PREFIX_XXXrfftw_threads.la \
                          libXXX_FFTW_PREFIX_XXXfftw_threads.la \
                          $(RFFTWDIR)/libXXX_FFTW_PREFIX_XXXrfftw.la \
                          $(FFTWDIR)/libXXX_FFTW_PREFIX_XXXfftw.la \
			  @THREADLIBS@

# for some reason, automake tries to use autoheader in order to
# generate config.h.in, and fails because config.h.in is GNU-lly
# incorrect.  Just disable autoheader
AUTOHEADER=echo

check: @FFTW_THREADS_PROGLIST@
	@set fnord $(MAKEFLAGS); amf=$$2; \
        list='@FFTW_THREADS_PROGLIST@'; for prog in $$list; do \
          target="$$prog""-check"; \
          echo "Making $$target"; \
          ($(MAKE) $$target) \
           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
        done && test -z "$$fail"

fftw_threads_test-check: fftw_threads_test
	./fftw_threads_test 1 -x 100 -r 0
	./fftw_threads_test 2 -x 100 -r 0
	./fftw_threads_test 3 -x 100 -r 0
	./fftw_threads_test 10 -x 100 -r 0
	@echo "--------------------------------------------------------------"
	@echo "    FFTW complex-complex threads transforms passed tests!"
	@echo "--------------------------------------------------------------"

rfftw_threads_test-check: rfftw_threads_test
	./rfftw_threads_test 1 -x 100 -r 0
	./rfftw_threads_test 2 -x 100 -r 0
	./rfftw_threads_test 3 -x 100 -r 0
	./rfftw_threads_test 10 -x 100 -r 0
	@echo "--------------------------------------------------------------"
	@echo "     RFFTW real-complex threads transforms passed tests!"
	@echo "--------------------------------------------------------------"