PTdecode/CImg-1.3.0/examples/Makefile

changeset 5
1204ebf9340d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/PTdecode/CImg-1.3.0/examples/Makefile	Mon Aug 03 14:09:20 2009 +0100
     1.3 @@ -0,0 +1,594 @@
     1.4 +#
     1.5 +#  File        : Makefile
     1.6 +#                ( Makefile for GNU 'make' utility )
     1.7 +#
     1.8 +#  Description : Makefile for compiling CImg-based code on Unix.
     1.9 +#                This file is a part of the CImg Library project.
    1.10 +#                ( http://cimg.sourceforge.net )
    1.11 +#
    1.12 +#  Copyright   : David Tschumperle
    1.13 +#                ( http://www.greyc.ensicaen.fr/~dtschump/ )
    1.14 +#
    1.15 +#  License     : CeCILL v2.0
    1.16 +#                ( http://www.cecill.info/licences/Licence_CeCILL_V2-en.html )
    1.17 +#
    1.18 +#  This software is governed by the CeCILL  license under French law and
    1.19 +#  abiding by the rules of distribution of free software.  You can  use,
    1.20 +#  modify and/ or redistribute the software under the terms of the CeCILL
    1.21 +#  license as circulated by CEA, CNRS and INRIA at the following URL
    1.22 +#  "http://www.cecill.info".
    1.23 +#
    1.24 +#  As a counterpart to the access to the source code and  rights to copy,
    1.25 +#  modify and redistribute granted by the license, users are provided only
    1.26 +#  with a limited warranty  and the software's author,  the holder of the
    1.27 +#  economic rights,  and the successive licensors  have only  limited
    1.28 +#  liability.
    1.29 +#
    1.30 +#  In this respect, the user's attention is drawn to the risks associated
    1.31 +#  with loading,  using,  modifying and/or developing or reproducing the
    1.32 +#  software by the user in light of its specific status of free software,
    1.33 +#  that may mean  that it is complicated to manipulate,  and  that  also
    1.34 +#  therefore means  that it is reserved for developers  and  experienced
    1.35 +#  professionals having in-depth computer knowledge. Users are therefore
    1.36 +#  encouraged to load and test the software's suitability as regards their
    1.37 +#  requirements in conditions enabling the security of their systems and/or
    1.38 +#  data to be ensured and,  more generally, to use and operate it in the
    1.39 +#  same conditions as regards security.
    1.40 +#
    1.41 +#  The fact that you are presently reading this means that you have had
    1.42 +#  knowledge of the CeCILL license and that you accept its terms.
    1.43 +#
    1.44 +
    1.45 +#-------------------------------------------------------
    1.46 +# Define the list of files to be compiled
    1.47 +# (name of the source files without the .cpp extension)
    1.48 +#-------------------------------------------------------
    1.49 +CIMG_FILES = CImg_demo \
    1.50 +	     captcha \
    1.51 +             curve_editor \
    1.52 +	     dtmri_view \
    1.53 +	     edge_explorer \
    1.54 +	     fade_images \
    1.55 +             generate_loop_macros \
    1.56 +	     greycstoration \
    1.57 +	     hough_transform \
    1.58 +	     image_registration \
    1.59 +	     image2ascii \
    1.60 +	     image_surface \
    1.61 +	     jawbreaker \
    1.62 +	     mcf_levelsets \
    1.63 +	     mcf_levelsets3d \
    1.64 +	     odykill \
    1.65 +	     pde_heatflow2d \
    1.66 +	     pde_TschumperleDeriche2d \
    1.67 +	     radon_transform \
    1.68 +	     scene3d \
    1.69 +	     tetris \
    1.70 +	     tron \
    1.71 +	     tutorial \
    1.72 +	     wavelet_atrous \
    1.73 +	     use_draw_gradient \
    1.74 +	     use_greycstoration \
    1.75 +	     use_nlmeans \
    1.76 +	     use_skeleton \
    1.77 +	     use_RGBclass \
    1.78 +	     gmic
    1.79 +
    1.80 +#---------------------------------
    1.81 +# Set correct variables and paths
    1.82 +#---------------------------------
    1.83 +CIMG_VERSION = 1.30
    1.84 +X11PATH      = /usr/X11R6
    1.85 +CC           = g++
    1.86 +CCVER        = `$(CC) -v 2>&1 | tail -n 1`
    1.87 +EXEPFX       =
    1.88 +
    1.89 +ifeq ($(CC),icc)
    1.90 +CFLAGS       = -I.. -ansi
    1.91 +LDFLAGS      =
    1.92 +else
    1.93 +CFLAGS       = -I.. -Wall -W -ansi -pedantic
    1.94 +LDFLAGS      = -lm
    1.95 +endif
    1.96 +
    1.97 +#--------------------------------------------------
    1.98 +# Set compilation flags allowing to customize CImg
    1.99 +#--------------------------------------------------
   1.100 +
   1.101 +# Flags to enable code debugging.
   1.102 +CIMG_DEBUG_CFLAGS = -Dcimg_debug=3 -g
   1.103 +
   1.104 +# Flags to enable color output messages.
   1.105 +# (requires a VT100 compatible terminal)
   1.106 +CIMG_VT100_CFLAGS = -Dcimg_use_vt100
   1.107 +
   1.108 +# Flags to enable code optimization by the compiler.
   1.109 +ifeq ($(CC),icc)
   1.110 +CIMG_OPT_CFLAGS = -O3 -ipo -no-prec-div
   1.111 +else
   1.112 +CIMG_OPT_CFLAGS = -O3 -ffast-math -fno-tree-pre
   1.113 +endif
   1.114 +
   1.115 +# Flags to enable OpenMP support.
   1.116 +ifeq ($(CC),icc)
   1.117 +CIMG_OPENMP_CFLAGS = -Dcimg_use_openmp -openmp -i-static
   1.118 +else
   1.119 +CIMG_OPENMP_CFLAGS = -Dcimg_use_openmp -fopenmp
   1.120 +endif
   1.121 +
   1.122 +# Flags used to disable display capablities of CImg
   1.123 +CIMG_NODISPLAY_CFLAGS = -Dcimg_display=0
   1.124 +
   1.125 +# Flags to enable the use of the X11 library.
   1.126 +# (X11 is used by CImg to handle display windows)
   1.127 +# !!! For 64bits systems : replace -L$(X11PATH)/lib by -L$(X11PATH)/lib64 !!!
   1.128 +CIMG_X11_CFLAGS = -I$(X11PATH)/include
   1.129 +CIMG_X11_LDFLAGS = -L$(X11PATH)/lib -lpthread -lX11
   1.130 +
   1.131 +# Flags to enable GDI32 display (Windows native).
   1.132 +CIMG_GDI32_CFLAGS = -mwindows
   1.133 +CIMG_GDI32_LDFLAGS = -lgdi32
   1.134 +
   1.135 +# Flags to enable Carbon-based display (MacOSX native).
   1.136 +CIMG_CARBON_CFLAGS = -Dcimg_display=3 -framework Carbon
   1.137 +
   1.138 +# Flags to enable fast image display, using the XSHM library (when using X11).
   1.139 +CIMG_XSHM_CFLAGS = -Dcimg_use_xshm
   1.140 +CIMG_XSHM_LDFLAGS = -lXext
   1.141 +
   1.142 +# Flags to enable screen mode switching, using the XRandr library (when using X11).
   1.143 +# ( http://www.x.org/wiki/Projects/XRandR )
   1.144 +CIMG_XRANDR_CFLAGS = -Dcimg_use_xrandr
   1.145 +CIMG_XRANDR_LDFLAGS = -lXrandr
   1.146 +
   1.147 +# Flags to enable native support for PNG image files, using the PNG library.
   1.148 +# ( http://www.libpng.org/ )
   1.149 +CIMG_PNG_CFLAGS = -Dcimg_use_png
   1.150 +CIMG_PNG_LDFLAGS = -lpng -lz
   1.151 +
   1.152 +# Flags to enable native support for JPEG image files, using the JPEG library.
   1.153 +# ( http://www.ijg.org/ )
   1.154 +CIMG_JPEG_CFLAGS = -Dcimg_use_jpeg
   1.155 +CIMG_JPEG_LDFLAGS = -ljpeg
   1.156 +
   1.157 +# Flags to enable native support for TIFF image files, using the TIFF library.
   1.158 +# ( http://www.libtiff.org/ )
   1.159 +CIMG_TIFF_CFLAGS = -Dcimg_use_tiff
   1.160 +CIMG_TIFF_LDFLAGS = -ltiff
   1.161 +
   1.162 +# Flags to enable native support for various video files, using the FFMPEG library.
   1.163 +# ( http://www.ffmpeg.org/ )
   1.164 +CIMG_FFMPEG_CFLAGS = -Dcimg_use_ffmpeg -I/usr/include/ffmpeg
   1.165 +CIMG_FFMPEG_LDFLAGS = -lavcodec -lavformat
   1.166 +
   1.167 +# Flags to enable native support for compressed .cimgz files, using the Zlib library.
   1.168 +# ( http://www.zlib.net/ )
   1.169 +CIMG_ZLIB_CFLAGS = -Dcimg_use_zlib
   1.170 +CIMG_ZLIB_LDFLAGS = -lz
   1.171 +
   1.172 +# Flags to enable native support of most classical image file formats, using the Magick++ library.
   1.173 +# ( http://www.imagemagick.org/Magick++/ )
   1.174 +CIMG_MAGICK_CFLAGS = -Dcimg_use_magick `Magick++-config --cppflags` `Magick++-config --cxxflags`
   1.175 +CIMG_MAGICK_LDFLAGS = `Magick++-config --ldflags` `Magick++-config --libs`
   1.176 +
   1.177 +# Flags to enable faster Discrete Fourier Transform computation, using the FFTW3 library
   1.178 +# ( http://www.fftw.org/ )
   1.179 +CIMG_FFTW3_CFLAGS = -Dcimg_use_fftw3
   1.180 +ifeq ($(MSYSTEM),MINGW32)
   1.181 +CIMG_FFTW3_LDFLAGS = -lfftw3-3
   1.182 +else
   1.183 +CIMG_FFTW3_LDFLAGS = -lfftw3
   1.184 +endif
   1.185 +
   1.186 +# Flags to enable the use of LAPACK routines for matrix computation
   1.187 +# ( http://www.netlib.org/lapack/ )
   1.188 +CIMG_LAPACK_CFLAGS = -Dcimg_use_lapack
   1.189 +CIMG_LAPACK_LDFLAGS = -lblas -lg2c -llapack
   1.190 +
   1.191 +# Flags to enable the use of the Board library
   1.192 +# ( http://libboard.sourceforge.net/ )
   1.193 +CIMG_BOARD_CFLAGS = -Dcimg_use_board -I/usr/include/board
   1.194 +CIMG_BOARD_LDFLAGS = -lboard
   1.195 +
   1.196 +# Flags to compile on Sun Solaris
   1.197 +CIMG_SOLARIS_LDFLAGS = -R$(X11PATH)/lib -lrt -lnsl -lsocket
   1.198 +
   1.199 +# Flags to compile GIMP plug-ins.
   1.200 +ifeq ($(MSYSTEM),MINGW32)
   1.201 +CIMG_GIMP_CFLAGS = -mwindows
   1.202 +endif
   1.203 +
   1.204 +#-------------------------
   1.205 +# Define Makefile entries
   1.206 +#-------------------------
   1.207 +.cpp:
   1.208 +	@echo
   1.209 +	@echo "** Compiling '$* ($(CIMG_VERSION))' with '`$(CC) -v 2>&1 | tail -n 1`'"
   1.210 +	@echo
   1.211 +	$(CC) -o $(EXEPFX)$* $< $(CFLAGS) $(LDFLAGS) $(CONF_CFLAGS) $(CONF_LDFLAGS)
   1.212 +ifeq ($(MACOSX_APP),true)
   1.213 +	mkdir -p $(EXEPFX)${*}.app/Contents/MacOS
   1.214 +	mv $(EXEPFX)${*} $(EXEPFX)${*}.app/Contents/MacOS
   1.215 +endif
   1.216 +ifeq ($(STRIP_EXE),true)
   1.217 +ifeq ($(MSYSTEM),MINGW32)
   1.218 +	strip $(EXEPFX)$*.exe
   1.219 +else
   1.220 +	strip $(EXEPFX)$*
   1.221 +endif
   1.222 +endif
   1.223 +menu:
   1.224 +	@echo
   1.225 +	@echo "CImg Library $(CIMG_VERSION) : Examples"
   1.226 +	@echo "-----------------------------"
   1.227 +	@echo "  > linux    : Linux/BSD/MacOSX target, X11 display, optimizations disabled."
   1.228 +	@echo "  > dlinux   : Linux/BSD/MacOSX target, X11 display, debug mode."
   1.229 +	@echo "  > olinux   : Linux/BSD/MacOSX target, X11 display, optimizations enabled."
   1.230 +	@echo "  > mlinux   : Linus/BSD/MacOSX target, no display, minimal features, optimizations enabled."
   1.231 +	@echo "  > Mlinux   : Linux/BSD/MacOSX target, X11 display, maximal features, optimizations enabled."
   1.232 +	@echo
   1.233 +	@echo "  > solaris  : Sun Solaris target, X11 display, optimizations disabled."
   1.234 +	@echo "  > dsolaris : Sun Solaris target, X11 display, debug mode."
   1.235 +	@echo "  > osolaris : Sun Solaris target, X11 display, optimizations enabled."
   1.236 +	@echo "  > msolaris : Sun Solaris target, no display, minimal features, optimizations enabled."
   1.237 +	@echo "  > Msolaris : Sun Solaris target, X11 display, maximal features, optimizations enabled."
   1.238 +	@echo
   1.239 +	@echo "  > macosx   : MacOSX target, Carbon display, optimizations disabled."
   1.240 +	@echo "  > dmacosx  : MacOSX target, Carbon display, debug mode."
   1.241 +	@echo "  > omacosx  : MacOSX target, Carbon display, optimizations enabled."
   1.242 +	@echo "  > mmacosx  : MacOSX target, no display, minimal features, optimizations enabled."
   1.243 +	@echo "  > Mmacosx  : MacOSX target, Carbon display, maximal features, optimizations enabled."
   1.244 +	@echo
   1.245 +	@echo "  > windows  : Windows target, GDI32 display, optimizations disabled."
   1.246 +	@echo "  > dwindows : Windows target, GDI32 display, debug mode."
   1.247 +	@echo "  > owindows : Windows target, GDI32 display, optimizations enabled."
   1.248 +	@echo "  > mwindows : Windows target, no display, minimal features, optimizations enabled."
   1.249 +	@echo "  > Mwindows : Windows target, GDI32 display, maximal features, optimizations enabled."
   1.250 +	@echo
   1.251 +	@echo "  > clean    : Clean generated files."
   1.252 +	@echo
   1.253 +	@echo "Choose your option :"
   1.254 +	@read CHOICE; echo; make $$CHOICE; echo; echo "> Next time, you can bypass the menu by typing directly 'make $$CHOICE'"; echo;
   1.255 +
   1.256 +all: $(CIMG_FILES)
   1.257 +
   1.258 +clean:
   1.259 +	rm -rf *.app *.exe *.o *~ \#* CMakeFiles cmake_install.cmake CMakeCache.txt use_jpeg_buffer greycstoration4gimp gmic4gimp $(CIMG_FILES)
   1.260 +ifneq ($(EXEPFX),)
   1.261 +	rm -f $(EXEPFX)*
   1.262 +endif
   1.263 +
   1.264 +# Specific target for 'check_all_functions'.
   1.265 +check: check_all_functions.cpp
   1.266 +	@echo
   1.267 +	@echo "** Compiling 'check_all_functions ($(CIMG_VERSION)) ' with '$(CCVER)'"
   1.268 +	@echo
   1.269 +	$(CC) -c check_all_functions.cpp $(CFLAGS)
   1.270 +
   1.271 +# Specific target for the 'greycstoration4gimp' plug-in for GIMP.
   1.272 +greycstoration4gimp: greycstoration4gimp.cpp
   1.273 +	@echo
   1.274 +	@echo "** Compiling 'greycstoration4gimp ($(CIMG_VERSION))' with '$(CCVER)'"
   1.275 +	@echo
   1.276 +	$(CC) -I.. -I./plugins -o $(EXEPFX)greycstoration4gimp greycstoration4gimp.cpp `gimptool-2.0 --cflags` `gimptool-2.0 --libs` -lpthread $(CIMG_OPT_CFLAGS) $(CIMG_GIMP_CFLAGS)
   1.277 +
   1.278 +# Specific targets for the 'gmic4gimp' plug-in for GIMP.
   1.279 +gmic4gimp_def: gmic4gimp_def.raw
   1.280 +	\gmic -v- -t char gmic4gimp_def.raw,`du -Db gmic4gimp_def.raw | awk '{print $$1}'` -o -.h | sed 's/unnamed/gmic4gimp_def/' | sed 's/char/const char/' > gmic4gimp_def.h
   1.281 +	\gmic -v- -t uchar ../html/img/logoGMIC.ppm -permute vxyz -o -.h | sed 's/unnamed/logo/' | sed 's/char/const char/' >> gmic4gimp_def.h
   1.282 +
   1.283 +gmic4gimp.o: gmic.cpp
   1.284 +	$(CC) -I.. -o gmic4gimp.o -c gmic.cpp -Dgmic_minimal $(CIMG_OPT_CFLAGS) $(CIMG_FFTW3_CFLAGS)
   1.285 +
   1.286 +gmic4gimp: gmic4gimp.o gmic4gimp.cpp
   1.287 +	$(CC) -I.. -I./plugins -o $(EXEPFX)gmic4gimp gmic4gimp.cpp gmic4gimp.o `gimptool-2.0 --cflags` `gimptool-2.0 --libs` -lpthread $(CIMG_OPT_FLAGS) $(CIMG_FFTW3_LDFLAGS) $(CIMG_GIMP_CFLAGS)
   1.288 +
   1.289 +# Specific targets for 'gmic'.
   1.290 +gmic_def: gmic_def.raw
   1.291 +	\gmic -v- -t char gmic_def.raw,`du -Db gmic_def.raw | awk '{print $$1}'` -o -.h | sed 's/ \};/, 0 \};/g' | sed 's/unnamed/def/' > gmic_def.h
   1.292 +
   1.293 +gmic_bool.o: gmic.cpp
   1.294 +	@echo
   1.295 +	@echo "** Compiling 'gmic ($(CIMG_VERSION))' with '$(CCVER)'"
   1.296 +	@echo
   1.297 +	$(CC) -o gmic_bool.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_bool $(CFLAGS) $(CONF_CFLAGS)
   1.298 +gmic_uchar.o: gmic.cpp
   1.299 +	$(CC) -o gmic_uchar.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_uchar $(CFLAGS) $(CONF_CFLAGS)
   1.300 +gmic_char.o: gmic.cpp
   1.301 +	$(CC) -o gmic_char.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_char $(CFLAGS) $(CONF_CFLAGS)
   1.302 +gmic_ushort.o: gmic.cpp
   1.303 +	$(CC) -o gmic_ushort.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_ushort $(CFLAGS) $(CONF_CFLAGS)
   1.304 +gmic_short.o: gmic.cpp
   1.305 +	$(CC) -o gmic_short.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_short $(CFLAGS) $(CONF_CFLAGS)
   1.306 +gmic_uint.o: gmic.cpp
   1.307 +	$(CC) -o gmic_uint.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_uint $(CFLAGS) $(CONF_CFLAGS)
   1.308 +gmic_int.o: gmic.cpp
   1.309 +	$(CC) -o gmic_int.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_int $(CFLAGS) $(CONF_CFLAGS)
   1.310 +gmic_float.o: gmic.cpp
   1.311 +	$(CC) -o gmic_float.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_float $(CFLAGS) $(CONF_CFLAGS)
   1.312 +gmic_double.o: gmic.cpp
   1.313 +	$(CC) -o gmic_double.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_double $(CFLAGS) $(CONF_CFLAGS)
   1.314 +gmic: gmic_bool.o gmic_uchar.o gmic_char.o gmic_ushort.o gmic_short.o gmic_uint.o gmic_int.o gmic_float.o gmic_double.o gmic.cpp
   1.315 +	$(CC) -o $(EXEPFX)gmic gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_main \
   1.316 +		 gmic_bool.o gmic_uchar.o gmic_char.o gmic_ushort.o gmic_short.o \
   1.317 +		 gmic_uint.o gmic_int.o gmic_float.o gmic_double.o $(CFLAGS) $(LDFLAGS) $(CONF_CFLAGS) $(CONF_LDFLAGS)
   1.318 +
   1.319 +ifeq ($(MACOSX_APP),true)
   1.320 +	mkdir -p $(EXEPFX)gmic.app/Contents/MacOS
   1.321 +	mv ${*} $(EXEPFX)gmic.app/Contents/MacOS
   1.322 +endif
   1.323 +ifeq ($(STRIP_EXE),true)
   1.324 +	strip $(EXEPFX)gmic
   1.325 +endif
   1.326 +
   1.327 +# Linux/BSD/Mac OSX targets, with X11 display.
   1.328 +linux:
   1.329 +	@make \
   1.330 +"CONF_CFLAGS = \
   1.331 +$(CIMG_VT100_CFLAGS) \
   1.332 +$(CIMG_X11_CFLAGS) \
   1.333 +$(CIMG_XSHM_CFLAGS) \
   1.334 +$(CIMG_XRANDR_CFLAGS)" \
   1.335 +"CONF_LDFLAGS = \
   1.336 +$(CIMG_X11_LDFLAGS) \
   1.337 +$(CIMG_XSHM_LDFLAGS) \
   1.338 +$(CIMG_XRANDR_LDFLAGS)" \
   1.339 +all
   1.340 +
   1.341 +dlinux:
   1.342 +	@make \
   1.343 +"CONF_CFLAGS = \
   1.344 +$(CIMG_DEBUG_CFLAGS) \
   1.345 +$(CIMG_VT100_CFLAGS) \
   1.346 +$(CIMG_X11_CFLAGS) \
   1.347 +$(CIMG_XSHM_CFLAGS) \
   1.348 +$(CIMG_XRANDR_CFLAGS)" \
   1.349 +"CONF_LDFLAGS = \
   1.350 +$(CIMG_X11_LDFLAGS) \
   1.351 +$(CIMG_XSHM_LDFLAGS) \
   1.352 +$(CIMG_XRANDR_LDFLAGS)" \
   1.353 +all
   1.354 +
   1.355 +olinux:
   1.356 +	@make \
   1.357 +"CONF_CFLAGS = \
   1.358 +$(CIMG_OPT_CFLAGS) \
   1.359 +$(CIMG_VT100_CFLAGS) \
   1.360 +$(CIMG_X11_CFLAGS) \
   1.361 +$(CIMG_XSHM_CFLAGS) \
   1.362 +$(CIMG_XRANDR_CFLAGS)" \
   1.363 +"CONF_LDFLAGS = \
   1.364 +$(CIMG_X11_LDFLAGS) \
   1.365 +$(CIMG_XSHM_LDFLAGS) \
   1.366 +$(CIMG_XRANDR_LDFLAGS)" \
   1.367 +"STRIP_EXE=true" \
   1.368 +all
   1.369 +
   1.370 +mlinux:
   1.371 +	@make \
   1.372 +"CONF_CFLAGS = \
   1.373 +$(CIMG_NODISPLAY_CFLAGS) \
   1.374 +$(CIMG_OPT_CFLAGS)" \
   1.375 +"STRIP_EXE=true" \
   1.376 +all
   1.377 +
   1.378 +Mlinux:
   1.379 +	@make \
   1.380 +"CONF_CFLAGS = \
   1.381 +$(CIMG_OPT_CFLAGS) \
   1.382 +$(CIMG_VT100_CFLAGS) \
   1.383 +$(CIMG_X11_CFLAGS) \
   1.384 +$(CIMG_XSHM_CFLAGS) \
   1.385 +$(CIMG_XRANDR_CFLAGS) \
   1.386 +$(CIMG_TIFF_CFLAGS) \
   1.387 +$(CIMG_PNG_CFLAGS) \
   1.388 +$(CIMG_JPEG_CFLAGS) \
   1.389 +$(CIMG_ZLIB_CFLAGS) \
   1.390 +$(CIMG_MAGICK_CFLAGS) \
   1.391 +$(CIMG_FFTW3_CFLAGS)" \
   1.392 +"CONF_LDFLAGS = \
   1.393 +$(CIMG_X11_LDFLAGS) \
   1.394 +$(CIMG_XSHM_LDFLAGS) \
   1.395 +$(CIMG_XRANDR_LDFLAGS) \
   1.396 +$(CIMG_TIFF_LDFLAGS) \
   1.397 +$(CIMG_PNG_LDFLAGS) \
   1.398 +$(CIMG_JPEG_LDFLAGS) \
   1.399 +$(CIMG_ZLIB_LDFLAGS) \
   1.400 +$(CIMG_MAGICK_LDFLAGS) \
   1.401 +$(CIMG_FFTW3_LDFLAGS)" \
   1.402 +"STRIP_EXE=true" \
   1.403 +all use_jpeg_buffer greycstoration4gimp gmic4gimp
   1.404 +
   1.405 +# Sun Solaris targets, with X11 display.
   1.406 +solaris:
   1.407 +	@make \
   1.408 +"CONF_CFLAGS = \
   1.409 +$(CIMG_VT100_CFLAGS) \
   1.410 +$(CIMG_X11_CFLAGS) \
   1.411 +$(CIMG_XSHM_CFLAGS) \
   1.412 +$(CIMG_XRANDR_CFLAGS)" \
   1.413 +"CONF_LDFLAGS = \
   1.414 +$(CIMG_SOLARIS_LDFLAGS) \
   1.415 +$(CIMG_X11_LDFLAGS) \
   1.416 +$(CIMG_XSHM_LDFLAGS) \
   1.417 +$(CIMG_XRANDR_LDFLAGS)" \
   1.418 +all
   1.419 +
   1.420 +dsolaris:
   1.421 +	@make \
   1.422 +"CONF_CFLAGS = \
   1.423 +$(CIMG_DEBUG_CFLAGS) \
   1.424 +$(CIMG_VT100_CFLAGS) \
   1.425 +$(CIMG_X11_CFLAGS) \
   1.426 +$(CIMG_XSHM_CFLAGS) \
   1.427 +$(CIMG_XRANDR_CFLAGS)" \
   1.428 +"CONF_LDFLAGS = \
   1.429 +$(CIMG_SOLARIS_LDFLAGS) \
   1.430 +$(CIMG_X11_LDFLAGS) \
   1.431 +$(CIMG_XSHM_LDFLAGS) \
   1.432 +$(CIMG_XRANDR_LDFLAGS)" \
   1.433 +all
   1.434 +
   1.435 +osolaris:
   1.436 +	@make \
   1.437 +"CONF_CFLAGS = \
   1.438 +$(CIMG_OPT_CFLAGS) \
   1.439 +$(CIMG_VT100_CFLAGS) \
   1.440 +$(CIMG_X11_CFLAGS) \
   1.441 +$(CIMG_XSHM_CFLAGS) \
   1.442 +$(CIMG_XRANDR_CFLAGS)" \
   1.443 +"CONF_LDFLAGS = \
   1.444 +$(CIMG_SOLARIS_LDFLAGS) \
   1.445 +$(CIMG_X11_LDFLAGS) \
   1.446 +$(CIMG_XSHM_LDFLAGS) \
   1.447 +$(CIMG_XRANDR_LDFLAGS)" \
   1.448 +"STRIP_EXE=true" \
   1.449 +all
   1.450 +
   1.451 +msolaris:
   1.452 +	@make \
   1.453 +"CONF_CFLAGS = \
   1.454 +$(CIMG_NODISPLAY_CFLAGS) \
   1.455 +$(CIMG_OPT_CFLAGS)" \
   1.456 +"STRIP_EXE=true" \
   1.457 +all
   1.458 +
   1.459 +Msolaris:
   1.460 +	@make \
   1.461 +"CONF_CFLAGS = \
   1.462 +$(CIMG_OPT_CFLAGS) \
   1.463 +$(CIMG_VT100_CFLAGS) \
   1.464 +$(CIMG_X11_CFLAGS) \
   1.465 +$(CIMG_XSHM_CFLAGS) \
   1.466 +$(CIMG_XRANDR_CFLAGS) \
   1.467 +$(CIMG_TIFF_CFLAGS) \
   1.468 +$(CIMG_PNG_CFLAGS) \
   1.469 +$(CIMG_JPEG_CFLAGS) \
   1.470 +$(CIMG_ZLIB_CFLAGS) \
   1.471 +$(CIMG_MAGICK_CFLAGS) \
   1.472 +$(CIMG_FFTW3_CFLAGS)" \
   1.473 +"CONF_LDFLAGS = \
   1.474 +$(CIMG_SOLARIS_LDFLAGS) \
   1.475 +$(CIMG_X11_LDFLAGS) \
   1.476 +$(CIMG_XSHM_LDFLAGS) \
   1.477 +$(CIMG_XRANDR_LDFLAGS) \
   1.478 +$(CIMG_TIFF_LDFLAGS) \
   1.479 +$(CIMG_PNG_LDFLAGS) \
   1.480 +$(CIMG_JPEG_LDFLAGS) \
   1.481 +$(CIMG_ZLIB_LDFLAGS) \
   1.482 +$(CIMG_MAGICK_LDFLAGS) \
   1.483 +$(CIMG_FFTW3_LDFLAGS)" \
   1.484 +"STRIP_EXE=true" \
   1.485 +all use_jpeg_buffer greycstoration4gimp gmic4gimp
   1.486 +
   1.487 +# MacOsX targets, with Carbon display.
   1.488 +macosx:
   1.489 +	@make \
   1.490 +"CONF_CFLAGS = \
   1.491 +$(CIMG_CARBON_CFLAGS) \
   1.492 +$(CIMG_VT100_CFLAGS)" \
   1.493 +"MACOSX_APP=true" \
   1.494 +all
   1.495 +
   1.496 +dmacosx:
   1.497 +	@make \
   1.498 +"CONF_CFLAGS = \
   1.499 +$(CIMG_DEBUG_CFLAGS) \
   1.500 +$(CIMG_CARBON_CFLAGS) \
   1.501 +$(CIMG_VT100_CFLAGS)" \
   1.502 +"MACOSX_APP=true" \
   1.503 +all
   1.504 +
   1.505 +omacosx:
   1.506 +	@make \
   1.507 +"CONF_CFLAGS = \
   1.508 +$(CIMG_OPT_CFLAGS) \
   1.509 +$(CIMG_CARBON_CFLAGS) \
   1.510 +$(CIMG_VT100_CFLAGS)" \
   1.511 +"MACOSX_APP=true" \
   1.512 +all
   1.513 +
   1.514 +mmacosx:
   1.515 +	@make \
   1.516 +"CONF_CFLAGS = \
   1.517 +$(CIMG_NODISPLAY_CFLAGS) \
   1.518 +$(CIMG_OPT_CFLAGS)" \
   1.519 +"MACOSX_APP=true" \
   1.520 +all
   1.521 +
   1.522 +Mmacosx:
   1.523 +	@make \
   1.524 +"CONF_CFLAGS = \
   1.525 +$(CIMG_OPT_CFLAGS) \
   1.526 +$(CIMG_VT100_CFLAGS) \
   1.527 +$(CIMG_CARBON_CFLAGS) \
   1.528 +$(CIMG_TIFF_CFLAGS) \
   1.529 +$(CIMG_PNG_CFLAGS) \
   1.530 +$(CIMG_JPEG_CFLAGS) \
   1.531 +$(CIMG_ZLIB_CFLAGS) \
   1.532 +$(CIMG_MAGICK_CFLAGS) \
   1.533 +$(CIMG_FFTW3_CFLAGS)" \
   1.534 +"CONF_LDFLAGS = \
   1.535 +$(CIMG_TIFF_LDFLAGS) \
   1.536 +$(CIMG_PNG_LDFLAGS) \
   1.537 +$(CIMG_JPEG_LDFLAGS) \
   1.538 +$(CIMG_ZLIB_LDFLAGS) \
   1.539 +$(CIMG_MAGICK_LDFLAGS) \
   1.540 +$(CIMG_FFTW3_LDFLAGS)" \
   1.541 +"MACOSX_APP=true" \
   1.542 +all use_jpeg_buffer greycstoration4gimp gmic4gimp
   1.543 +
   1.544 +# Windows targets, with GDI32 display.
   1.545 +windows:
   1.546 +	@make \
   1.547 +"CONF_LDFLAGS = \
   1.548 +$(CIMG_GDI32_LDFLAGS)" \
   1.549 +all
   1.550 +
   1.551 +dwindows:
   1.552 +	@make \
   1.553 +"CONF_CFLAGS = \
   1.554 +$(CIMG_DEBUG_CFLAGS)" \
   1.555 +"CONF_LDFLAGS = \
   1.556 +$(CIMG_GDI32_LDFLAGS)" \
   1.557 +all
   1.558 +
   1.559 +owindows:
   1.560 +	@make \
   1.561 +"CONF_CFLAGS = \
   1.562 +$(CIMG_OPT_CFLAGS)" \
   1.563 +"CONF_LDFLAGS = \
   1.564 +$(CIMG_GDI32_LDFLAGS)" \
   1.565 +"STRIP_EXE=true" \
   1.566 +all
   1.567 +
   1.568 +mwindows:
   1.569 +	@make \
   1.570 +"CONF_CFLAGS = \
   1.571 +$(CIMG_NODISPLAY_CFLAGS) \
   1.572 +$(CIMG_OPT_CFLAGS)" \
   1.573 +"STRIP_EXE=true" \
   1.574 +all
   1.575 +
   1.576 +Mwindows:
   1.577 +	@make \
   1.578 +"CONF_CFLAGS = \
   1.579 +$(CIMG_OPT_CFLAGS) \
   1.580 +$(CIMG_TIFF_CFLAGS) \
   1.581 +$(CIMG_PNG_CFLAGS) \
   1.582 +$(CIMG_JPEG_CFLAGS) \
   1.583 +$(CIMG_ZLIB_CFLAGS) \
   1.584 +$(CIMG_FFTW3_CFLAGS)" \
   1.585 +"CONF_LDFLAGS = \
   1.586 +$(CIMG_GDI32_LDFLAGS) \
   1.587 +$(CIMG_TIFF_LDFLAGS) \
   1.588 +$(CIMG_PNG_LDFLAGS) \
   1.589 +$(CIMG_JPEG_LDFLAGS) \
   1.590 +$(CIMG_ZLIB_LDFLAGS) \
   1.591 +$(CIMG_FFTW3_LDFLAGS)" \
   1.592 +"STRIP_EXE=true" \
   1.593 +all use_jpeg_buffer greycstoration4gimp gmic4gimp
   1.594 +
   1.595 +#-----------------
   1.596 +# End of makefile
   1.597 +#-----------------