Skip to content

Commit

Permalink
Do not set include path ("-I") in Makefile.am
Browse files Browse the repository at this point in the history
.[ch] files should specify their own paths explicitly.  Setting paths
in the Makefile was always a bad idea, but it is totally untenable if
we are supporting cmake.
  • Loading branch information
matteo-frigo committed Sep 20, 2017
1 parent 6e0ae04 commit 1f3704b
Show file tree
Hide file tree
Showing 308 changed files with 399 additions and 450 deletions.
18 changes: 1 addition & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,27 +241,11 @@ set (fftw_threads_SOURCE ${fftw_par_SOURCE} threads/threads.c)
set (fftw_omp_SOURCE ${fftw_par_SOURCE} threads/openmp.c)


include_directories(
kernel
api
dft
dft/scalar
dft/scalar/codelets # really needed?
dft/simd
dft/simd/sse2
dft/simd/avx
rdft
rdft/scalar
rdft/simd
reodft
simd-support
libbench2
)
include_directories(.)

install (FILES api/fftw3.h api/fftw3.f DESTINATION include)



if (WITH_COMBINED_THREADS)
list (APPEND SOURCEFILES ${fftw_threads_SOURCE})
endif ()
Expand Down
2 changes: 0 additions & 2 deletions api/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
AM_CPPFLAGS = -I$(top_srcdir)/kernel -I$(top_srcdir)/dft \
-I$(top_srcdir)/rdft -I$(top_srcdir)/reodft
AM_CFLAGS = $(STACK_ALIGN_CFLAGS)

EXTRA_DIST = f03api.sh genf03.pl fftw3.f03.in
Expand Down
6 changes: 3 additions & 3 deletions api/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
and is defined even if <complex.h> is not included) */
#define FFTW_NO_Complex

#include "fftw3.h"
#include "ifftw.h"
#include "rdft.h"
#include "api/fftw3.h"
#include "kernel/ifftw.h"
#include "rdft/rdft.h"

#ifdef __cplusplus
extern "C"
Expand Down
2 changes: 1 addition & 1 deletion api/apiplan.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

static planner_hook_t before_planner_hook = 0, after_planner_hook = 0;

Expand Down
8 changes: 4 additions & 4 deletions api/configure.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
*
*/

#include "api.h"
#include "dft.h"
#include "rdft.h"
#include "reodft.h"
#include "api/api.h"
#include "dft/dft.h"
#include "rdft/rdft.h"
#include "reodft/reodft.h"

void X(configure_planner)(planner *plnr)
{
Expand Down
4 changes: 2 additions & 2 deletions api/execute-dft-c2r.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "rdft.h"
#include "api/api.h"
#include "rdft/rdft.h"

/* guru interface: requires care in alignment, r - i, etcetera. */
void X(execute_dft_c2r)(const X(plan) p, C *in, R *out)
Expand Down
4 changes: 2 additions & 2 deletions api/execute-dft-r2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "rdft.h"
#include "api/api.h"
#include "rdft/rdft.h"

/* guru interface: requires care in alignment, r - i, etcetera. */
void X(execute_dft_r2c)(const X(plan) p, R *in, C *out)
Expand Down
4 changes: 2 additions & 2 deletions api/execute-dft.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "dft.h"
#include "api/api.h"
#include "dft/dft.h"

/* guru interface: requires care in alignment etcetera. */
void X(execute_dft)(const X(plan) p, C *in, C *out)
Expand Down
4 changes: 2 additions & 2 deletions api/execute-r2r.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "rdft.h"
#include "api/api.h"
#include "rdft/rdft.h"

/* guru interface: requires care in alignment, etcetera. */
void X(execute_r2r)(const X(plan) p, R *in, R *out)
Expand Down
4 changes: 2 additions & 2 deletions api/execute-split-dft-c2r.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "rdft.h"
#include "api/api.h"
#include "rdft/rdft.h"

/* guru interface: requires care in alignment, r - i, etcetera. */
void X(execute_split_dft_c2r)(const X(plan) p, R *ri, R *ii, R *out)
Expand Down
4 changes: 2 additions & 2 deletions api/execute-split-dft-r2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "rdft.h"
#include "api/api.h"
#include "rdft/rdft.h"

/* guru interface: requires care in alignment, r - i, etcetera. */
void X(execute_split_dft_r2c)(const X(plan) p, R *in, R *ro, R *io)
Expand Down
4 changes: 2 additions & 2 deletions api/execute-split-dft.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "dft.h"
#include "api/api.h"
#include "dft/dft.h"

/* guru interface: requires care in alignment, r - i, etcetera. */
void X(execute_split_dft)(const X(plan) p, R *ri, R *ii, R *ro, R *io)
Expand Down
2 changes: 1 addition & 1 deletion api/execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

void X(execute)(const X(plan) p)
{
Expand Down
2 changes: 1 addition & 1 deletion api/export-wisdom-to-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

void X(export_wisdom_to_file)(FILE *output_file)
{
Expand Down
2 changes: 1 addition & 1 deletion api/export-wisdom-to-string.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

char *X(export_wisdom_to_string)(void)
{
Expand Down
2 changes: 1 addition & 1 deletion api/export-wisdom.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

typedef struct {
printer super;
Expand Down
8 changes: 4 additions & 4 deletions api/f77api.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
*
*/

#include "api.h"
#include "dft.h"
#include "rdft.h"
#include "api/api.h"
#include "dft/dft.h"
#include "rdft/rdft.h"

#include "x77.h"
#include "api/x77.h"

/* if F77_FUNC is not defined, then we don't know how to mangle identifiers
for the Fortran linker, and we must omit the f77 API. */
Expand Down
2 changes: 1 addition & 1 deletion api/flops.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

void X(flops)(const X(plan) p, double *add, double *mul, double *fma)
{
Expand Down
2 changes: 1 addition & 1 deletion api/forget-wisdom.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

void X(forget_wisdom)(void)
{
Expand Down
2 changes: 1 addition & 1 deletion api/import-system-wisdom.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

#if defined(FFTW_SINGLE)
# define WISDOM_NAME "wisdomf"
Expand Down
2 changes: 1 addition & 1 deletion api/import-wisdom-from-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"
#include <stdio.h>

/* getc()/putc() are *unbelievably* slow on linux. Looks like glibc
Expand Down
2 changes: 1 addition & 1 deletion api/import-wisdom-from-string.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

typedef struct {
scanner super;
Expand Down
2 changes: 1 addition & 1 deletion api/import-wisdom.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

typedef struct {
scanner super;
Expand Down
2 changes: 1 addition & 1 deletion api/malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"


void *X(malloc)(size_t n)
Expand Down
4 changes: 2 additions & 2 deletions api/map-r2r-kind.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "rdft.h"
#include "api/api.h"
#include "rdft/rdft.h"

rdft_kind *X(map_r2r_kind)(int rank, const X(r2r_kind) * kind)
{
Expand Down
2 changes: 1 addition & 1 deletion api/mapflags.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"
#include <math.h>

/* a flag operation: x is either a flag, in which case xm == 0, or
Expand Down
2 changes: 1 addition & 1 deletion api/mkprinter-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"
#include <stdio.h>

#define BUFSZ 256
Expand Down
2 changes: 1 addition & 1 deletion api/mkprinter-str.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

typedef struct {
printer super;
Expand Down
2 changes: 1 addition & 1 deletion api/mktensor-iodims.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

tensor *MKTENSOR_IODIMS(int rank, const IODIM *dims, int is, int os)
{
Expand Down
2 changes: 1 addition & 1 deletion api/mktensor-rowmajor.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

tensor *X(mktensor_rowmajor)(int rnk, const int *n,
const int *niphys, const int *nophys,
Expand Down
4 changes: 2 additions & 2 deletions api/plan-dft-1d.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "dft.h"
#include "api/api.h"
#include "dft/dft.h"

X(plan) X(plan_dft_1d)(int n, C *in, C *out, int sign, unsigned flags)
{
Expand Down
4 changes: 2 additions & 2 deletions api/plan-dft-2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "dft.h"
#include "api/api.h"
#include "dft/dft.h"

X(plan) X(plan_dft_2d)(int nx, int ny, C *in, C *out, int sign, unsigned flags)
{
Expand Down
4 changes: 2 additions & 2 deletions api/plan-dft-3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*
*/

#include "api.h"
#include "dft.h"
#include "api/api.h"
#include "dft/dft.h"

X(plan) X(plan_dft_3d)(int nx, int ny, int nz,
C *in, C *out, int sign, unsigned flags)
Expand Down
2 changes: 1 addition & 1 deletion api/plan-dft-c2r-1d.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

X(plan) X(plan_dft_c2r_1d)(int n, C *in, R *out, unsigned flags)
{
Expand Down
2 changes: 1 addition & 1 deletion api/plan-dft-c2r-2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

X(plan) X(plan_dft_c2r_2d)(int nx, int ny, C *in, R *out, unsigned flags)
{
Expand Down
2 changes: 1 addition & 1 deletion api/plan-dft-c2r-3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

X(plan) X(plan_dft_c2r_3d)(int nx, int ny, int nz,
C *in, R *out, unsigned flags)
Expand Down
2 changes: 1 addition & 1 deletion api/plan-dft-c2r.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

X(plan) X(plan_dft_c2r)(int rank, const int *n, C *in, R *out, unsigned flags)
{
Expand Down
2 changes: 1 addition & 1 deletion api/plan-dft-r2c-1d.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#include "api.h"
#include "api/api.h"

X(plan) X(plan_dft_r2c_1d)(int n, R *in, C *out, unsigned flags)
{
Expand Down
Loading

0 comments on commit 1f3704b

Please sign in to comment.