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