summaryrefslogtreecommitdiff
path: root/src/im_fftw3.mak
blob: 12e2cc21a2fe5afa3ec67add99a54fcaae6a17ec (plain)
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
PROJNAME = im
LIBNAME = im_fftw3
OPT = YES

DEF_FILE = im_fftw.def

SRC = process/im_fft.cpp

INCLUDES = ../include

DEFINES = USE_FFTW3

USE_IM = Yes
IM = ..
LIBS = im_process


ifneq ($(findstring Win, $(TEC_SYSNAME)), )
  ifneq ($(findstring _64, $(TEC_UNAME)), )
    FFTW = d:/lng/fftw64
  else
    FFTW = d:/lng/fftw32
  endif
  INCLUDES += $(FFTW)
  LIBS += libfftw3f-3
  LDIR = $(FFTW)
else  
  LIBS += fftw3f
endif


ifneq ($(findstring Win, $(TEC_SYSNAME)), )
  ifneq ($(findstring gcc, $(TEC_UNAME)), )
    DEFINES += HAVE_UINTPTR_T
  endif
  ifneq ($(findstring ow, $(TEC_UNAME)), )
    DEFINES += IM_DEFMATHFLOAT
  endif         
  ifneq ($(findstring bc, $(TEC_UNAME)), )
    DEFINES += IM_DEFMATHFLOAT
  endif
else
  ifneq ($(findstring IRIX, $(TEC_UNAME)), )
    DEFINES += HAVE_UINTPTR_T
  endif
  ifneq ($(findstring MacOS, $(TEC_UNAME)), )
    ifneq ($(TEC_SYSMINOR), 4)
      BUILD_DYLIB=Yes
    endif
    DEFINES += HAVE_UINTPTR_T
  endif
  ifneq ($(findstring FreeBSD, $(TEC_UNAME)), )
    DEFINES += HAVE_UINTPTR_T
  endif
  ifneq ($(findstring AIX, $(TEC_UNAME)), )
    DEFINES += IM_DEFMATHFLOAT HAVE_UINTPTR_T
  endif
  ifneq ($(findstring SunOS, $(TEC_UNAME)), )
    DEFINES += IM_DEFMATHFLOAT
  endif
endif

ifneq ($(findstring MacOS, $(TEC_UNAME)), )
  BUILD_DYLIB=Yes
endif