summaryrefslogtreecommitdiff
path: root/im/src/config.mak
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-04 11:56:41 -0800
committerPixel <pixel@nobis-crew.org>2009-11-04 11:59:33 -0800
commitd577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch)
tree590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /im/src/config.mak
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'im/src/config.mak')
-rwxr-xr-xim/src/config.mak89
1 files changed, 89 insertions, 0 deletions
diff --git a/im/src/config.mak b/im/src/config.mak
new file mode 100755
index 0000000..a938100
--- /dev/null
+++ b/im/src/config.mak
@@ -0,0 +1,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