summaryrefslogtreecommitdiff
path: root/im/src/config.mak
blob: a93810019600f17fbd95a1789c18ae9138422580 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
PROJNAME = im
LIBNAME = im
OPT = YES

INCLUDES = . ../include
                     
# WORDS_BIGENDIAN used by libTIFF
ifeq ($(TEC_SYSARCH), ppc)
  DEFINES = WORDS_BIGENDIAN
endif
ifeq ($(TEC_SYSARCH), mips)
  DEFINES = WORDS_BIGENDIAN
endif
ifeq ($(TEC_SYSARCH), sparc)
  DEFINES = WORDS_BIGENDIAN
endif

SRC = \
    old_imcolor.c         old_imresize.c      im_converttype.cpp \
    im_attrib.cpp         im_format.cpp       im_format_tga.cpp    im_filebuffer.cpp \
    im_bin.cpp            im_format_all.cpp   im_format_raw.cpp \
    im_binfile.cpp        im_format_sgi.cpp   im_datatype.cpp      im_format_pcx.cpp \
    im_colorhsi.cpp       im_format_bmp.cpp   im_image.cpp         im_rgb2map.cpp    \
    im_colormode.cpp      im_format_gif.cpp   im_lib.cpp           im_format_pnm.cpp \
    im_colorutil.cpp      im_format_ico.cpp   im_palette.cpp    \
    im_convertbitmap.cpp  im_format_led.cpp   im_counter.cpp       im_str.cpp        \
    im_convertcolor.cpp   im_fileraw.cpp      im_format_krn.cpp \
    im_file.cpp           im_format_ras.cpp   old_im.cpp        \
    $(SRCJPEG) $(SRCTIFF) $(SRCPNG) $(SRCZLIB) $(SRCLZF)

    
ifneq ($(findstring Win, $(TEC_SYSNAME)), )
    SRC += im_sysfile_win32.cpp im_dib.cpp im_dibxbitmap.cpp
    
    ifneq ($(findstring dll, $(TEC_UNAME)), )
      SRC += im.rc
    endif
    
    ifeq ($(findstring _64, $(TEC_UNAME)), )
      # optimize PNG lib for VC
      ifneq ($(findstring vc, $(TEC_UNAME)), )
        SRC += libpng/pngvcrd.c
        DEFINES += PNG_USE_PNGVCRD
      endif
      ifneq ($(findstring dll, $(TEC_UNAME)), )
        SRC += libpng/pngvcrd.c
        DEFINES += PNG_USE_PNGVCRD
      endif         
    endif         
    
    # force the definition of math functions using float
    # Watcom does not define them
    ifneq ($(findstring ow, $(TEC_UNAME)), )
      DEFINES += IM_DEFMATHFLOAT
    endif         
    
    ifneq ($(findstring bc, $(TEC_UNAME)), )
      DEFINES += IM_DEFMATHFLOAT
    else
      USE_EXIF = Yes
    endif
else
    SRC += im_sysfile_unix.cpp
endif

ifdef USE_EXIF
  SRC += $(SRCEXIF)    
  DEFINES += USE_EXIF
endif  

ifneq ($(findstring Linux, $(TEC_UNAME)), )
    # optimize PNG lib for Linux in x86
    ifeq "$(TEC_SYSARCH)" "x86"
      SRC += libpng/pnggccrd.c
      DEFINES += PNG_USE_PNGGCCRD
    endif
endif

ifneq ($(findstring AIX, $(TEC_UNAME)), )
  DEFINES += IM_DEFMATHFLOAT
endif

ifneq ($(findstring SunOS, $(TEC_UNAME)), )
  DEFINES += IM_DEFMATHFLOAT
endif
      
ifneq ($(findstring HP-UX, $(TEC_UNAME)), )
  DEFINES += IM_DEFMATHFLOAT
endif