Mon, 03 Aug 2009 14:21:23 +0100
added keepme for ptdecode obj directory
1 #
2 # File : Makefile
3 # ( Makefile for GNU 'make' utility )
4 #
5 # Description : Makefile for compiling CImg-based code on Unix.
6 # This file is a part of the CImg Library project.
7 # ( http://cimg.sourceforge.net )
8 #
9 # Copyright : David Tschumperle
10 # ( http://www.greyc.ensicaen.fr/~dtschump/ )
11 #
12 # License : CeCILL v2.0
13 # ( http://www.cecill.info/licences/Licence_CeCILL_V2-en.html )
14 #
15 # This software is governed by the CeCILL license under French law and
16 # abiding by the rules of distribution of free software. You can use,
17 # modify and/ or redistribute the software under the terms of the CeCILL
18 # license as circulated by CEA, CNRS and INRIA at the following URL
19 # "http://www.cecill.info".
20 #
21 # As a counterpart to the access to the source code and rights to copy,
22 # modify and redistribute granted by the license, users are provided only
23 # with a limited warranty and the software's author, the holder of the
24 # economic rights, and the successive licensors have only limited
25 # liability.
26 #
27 # In this respect, the user's attention is drawn to the risks associated
28 # with loading, using, modifying and/or developing or reproducing the
29 # software by the user in light of its specific status of free software,
30 # that may mean that it is complicated to manipulate, and that also
31 # therefore means that it is reserved for developers and experienced
32 # professionals having in-depth computer knowledge. Users are therefore
33 # encouraged to load and test the software's suitability as regards their
34 # requirements in conditions enabling the security of their systems and/or
35 # data to be ensured and, more generally, to use and operate it in the
36 # same conditions as regards security.
37 #
38 # The fact that you are presently reading this means that you have had
39 # knowledge of the CeCILL license and that you accept its terms.
40 #
42 #-------------------------------------------------------
43 # Define the list of files to be compiled
44 # (name of the source files without the .cpp extension)
45 #-------------------------------------------------------
46 CIMG_FILES = CImg_demo \
47 captcha \
48 curve_editor \
49 dtmri_view \
50 edge_explorer \
51 fade_images \
52 generate_loop_macros \
53 greycstoration \
54 hough_transform \
55 image_registration \
56 image2ascii \
57 image_surface \
58 jawbreaker \
59 mcf_levelsets \
60 mcf_levelsets3d \
61 odykill \
62 pde_heatflow2d \
63 pde_TschumperleDeriche2d \
64 radon_transform \
65 scene3d \
66 tetris \
67 tron \
68 tutorial \
69 wavelet_atrous \
70 use_draw_gradient \
71 use_greycstoration \
72 use_nlmeans \
73 use_skeleton \
74 use_RGBclass \
75 gmic
77 #---------------------------------
78 # Set correct variables and paths
79 #---------------------------------
80 CIMG_VERSION = 1.30
81 X11PATH = /usr/X11R6
82 CC = g++
83 CCVER = `$(CC) -v 2>&1 | tail -n 1`
84 EXEPFX =
86 ifeq ($(CC),icc)
87 CFLAGS = -I.. -ansi
88 LDFLAGS =
89 else
90 CFLAGS = -I.. -Wall -W -ansi -pedantic
91 LDFLAGS = -lm
92 endif
94 #--------------------------------------------------
95 # Set compilation flags allowing to customize CImg
96 #--------------------------------------------------
98 # Flags to enable code debugging.
99 CIMG_DEBUG_CFLAGS = -Dcimg_debug=3 -g
101 # Flags to enable color output messages.
102 # (requires a VT100 compatible terminal)
103 CIMG_VT100_CFLAGS = -Dcimg_use_vt100
105 # Flags to enable code optimization by the compiler.
106 ifeq ($(CC),icc)
107 CIMG_OPT_CFLAGS = -O3 -ipo -no-prec-div
108 else
109 CIMG_OPT_CFLAGS = -O3 -ffast-math -fno-tree-pre
110 endif
112 # Flags to enable OpenMP support.
113 ifeq ($(CC),icc)
114 CIMG_OPENMP_CFLAGS = -Dcimg_use_openmp -openmp -i-static
115 else
116 CIMG_OPENMP_CFLAGS = -Dcimg_use_openmp -fopenmp
117 endif
119 # Flags used to disable display capablities of CImg
120 CIMG_NODISPLAY_CFLAGS = -Dcimg_display=0
122 # Flags to enable the use of the X11 library.
123 # (X11 is used by CImg to handle display windows)
124 # !!! For 64bits systems : replace -L$(X11PATH)/lib by -L$(X11PATH)/lib64 !!!
125 CIMG_X11_CFLAGS = -I$(X11PATH)/include
126 CIMG_X11_LDFLAGS = -L$(X11PATH)/lib -lpthread -lX11
128 # Flags to enable GDI32 display (Windows native).
129 CIMG_GDI32_CFLAGS = -mwindows
130 CIMG_GDI32_LDFLAGS = -lgdi32
132 # Flags to enable Carbon-based display (MacOSX native).
133 CIMG_CARBON_CFLAGS = -Dcimg_display=3 -framework Carbon
135 # Flags to enable fast image display, using the XSHM library (when using X11).
136 CIMG_XSHM_CFLAGS = -Dcimg_use_xshm
137 CIMG_XSHM_LDFLAGS = -lXext
139 # Flags to enable screen mode switching, using the XRandr library (when using X11).
140 # ( http://www.x.org/wiki/Projects/XRandR )
141 CIMG_XRANDR_CFLAGS = -Dcimg_use_xrandr
142 CIMG_XRANDR_LDFLAGS = -lXrandr
144 # Flags to enable native support for PNG image files, using the PNG library.
145 # ( http://www.libpng.org/ )
146 CIMG_PNG_CFLAGS = -Dcimg_use_png
147 CIMG_PNG_LDFLAGS = -lpng -lz
149 # Flags to enable native support for JPEG image files, using the JPEG library.
150 # ( http://www.ijg.org/ )
151 CIMG_JPEG_CFLAGS = -Dcimg_use_jpeg
152 CIMG_JPEG_LDFLAGS = -ljpeg
154 # Flags to enable native support for TIFF image files, using the TIFF library.
155 # ( http://www.libtiff.org/ )
156 CIMG_TIFF_CFLAGS = -Dcimg_use_tiff
157 CIMG_TIFF_LDFLAGS = -ltiff
159 # Flags to enable native support for various video files, using the FFMPEG library.
160 # ( http://www.ffmpeg.org/ )
161 CIMG_FFMPEG_CFLAGS = -Dcimg_use_ffmpeg -I/usr/include/ffmpeg
162 CIMG_FFMPEG_LDFLAGS = -lavcodec -lavformat
164 # Flags to enable native support for compressed .cimgz files, using the Zlib library.
165 # ( http://www.zlib.net/ )
166 CIMG_ZLIB_CFLAGS = -Dcimg_use_zlib
167 CIMG_ZLIB_LDFLAGS = -lz
169 # Flags to enable native support of most classical image file formats, using the Magick++ library.
170 # ( http://www.imagemagick.org/Magick++/ )
171 CIMG_MAGICK_CFLAGS = -Dcimg_use_magick `Magick++-config --cppflags` `Magick++-config --cxxflags`
172 CIMG_MAGICK_LDFLAGS = `Magick++-config --ldflags` `Magick++-config --libs`
174 # Flags to enable faster Discrete Fourier Transform computation, using the FFTW3 library
175 # ( http://www.fftw.org/ )
176 CIMG_FFTW3_CFLAGS = -Dcimg_use_fftw3
177 ifeq ($(MSYSTEM),MINGW32)
178 CIMG_FFTW3_LDFLAGS = -lfftw3-3
179 else
180 CIMG_FFTW3_LDFLAGS = -lfftw3
181 endif
183 # Flags to enable the use of LAPACK routines for matrix computation
184 # ( http://www.netlib.org/lapack/ )
185 CIMG_LAPACK_CFLAGS = -Dcimg_use_lapack
186 CIMG_LAPACK_LDFLAGS = -lblas -lg2c -llapack
188 # Flags to enable the use of the Board library
189 # ( http://libboard.sourceforge.net/ )
190 CIMG_BOARD_CFLAGS = -Dcimg_use_board -I/usr/include/board
191 CIMG_BOARD_LDFLAGS = -lboard
193 # Flags to compile on Sun Solaris
194 CIMG_SOLARIS_LDFLAGS = -R$(X11PATH)/lib -lrt -lnsl -lsocket
196 # Flags to compile GIMP plug-ins.
197 ifeq ($(MSYSTEM),MINGW32)
198 CIMG_GIMP_CFLAGS = -mwindows
199 endif
201 #-------------------------
202 # Define Makefile entries
203 #-------------------------
204 .cpp:
205 @echo
206 @echo "** Compiling '$* ($(CIMG_VERSION))' with '`$(CC) -v 2>&1 | tail -n 1`'"
207 @echo
208 $(CC) -o $(EXEPFX)$* $< $(CFLAGS) $(LDFLAGS) $(CONF_CFLAGS) $(CONF_LDFLAGS)
209 ifeq ($(MACOSX_APP),true)
210 mkdir -p $(EXEPFX)${*}.app/Contents/MacOS
211 mv $(EXEPFX)${*} $(EXEPFX)${*}.app/Contents/MacOS
212 endif
213 ifeq ($(STRIP_EXE),true)
214 ifeq ($(MSYSTEM),MINGW32)
215 strip $(EXEPFX)$*.exe
216 else
217 strip $(EXEPFX)$*
218 endif
219 endif
220 menu:
221 @echo
222 @echo "CImg Library $(CIMG_VERSION) : Examples"
223 @echo "-----------------------------"
224 @echo " > linux : Linux/BSD/MacOSX target, X11 display, optimizations disabled."
225 @echo " > dlinux : Linux/BSD/MacOSX target, X11 display, debug mode."
226 @echo " > olinux : Linux/BSD/MacOSX target, X11 display, optimizations enabled."
227 @echo " > mlinux : Linus/BSD/MacOSX target, no display, minimal features, optimizations enabled."
228 @echo " > Mlinux : Linux/BSD/MacOSX target, X11 display, maximal features, optimizations enabled."
229 @echo
230 @echo " > solaris : Sun Solaris target, X11 display, optimizations disabled."
231 @echo " > dsolaris : Sun Solaris target, X11 display, debug mode."
232 @echo " > osolaris : Sun Solaris target, X11 display, optimizations enabled."
233 @echo " > msolaris : Sun Solaris target, no display, minimal features, optimizations enabled."
234 @echo " > Msolaris : Sun Solaris target, X11 display, maximal features, optimizations enabled."
235 @echo
236 @echo " > macosx : MacOSX target, Carbon display, optimizations disabled."
237 @echo " > dmacosx : MacOSX target, Carbon display, debug mode."
238 @echo " > omacosx : MacOSX target, Carbon display, optimizations enabled."
239 @echo " > mmacosx : MacOSX target, no display, minimal features, optimizations enabled."
240 @echo " > Mmacosx : MacOSX target, Carbon display, maximal features, optimizations enabled."
241 @echo
242 @echo " > windows : Windows target, GDI32 display, optimizations disabled."
243 @echo " > dwindows : Windows target, GDI32 display, debug mode."
244 @echo " > owindows : Windows target, GDI32 display, optimizations enabled."
245 @echo " > mwindows : Windows target, no display, minimal features, optimizations enabled."
246 @echo " > Mwindows : Windows target, GDI32 display, maximal features, optimizations enabled."
247 @echo
248 @echo " > clean : Clean generated files."
249 @echo
250 @echo "Choose your option :"
251 @read CHOICE; echo; make $$CHOICE; echo; echo "> Next time, you can bypass the menu by typing directly 'make $$CHOICE'"; echo;
253 all: $(CIMG_FILES)
255 clean:
256 rm -rf *.app *.exe *.o *~ \#* CMakeFiles cmake_install.cmake CMakeCache.txt use_jpeg_buffer greycstoration4gimp gmic4gimp $(CIMG_FILES)
257 ifneq ($(EXEPFX),)
258 rm -f $(EXEPFX)*
259 endif
261 # Specific target for 'check_all_functions'.
262 check: check_all_functions.cpp
263 @echo
264 @echo "** Compiling 'check_all_functions ($(CIMG_VERSION)) ' with '$(CCVER)'"
265 @echo
266 $(CC) -c check_all_functions.cpp $(CFLAGS)
268 # Specific target for the 'greycstoration4gimp' plug-in for GIMP.
269 greycstoration4gimp: greycstoration4gimp.cpp
270 @echo
271 @echo "** Compiling 'greycstoration4gimp ($(CIMG_VERSION))' with '$(CCVER)'"
272 @echo
273 $(CC) -I.. -I./plugins -o $(EXEPFX)greycstoration4gimp greycstoration4gimp.cpp `gimptool-2.0 --cflags` `gimptool-2.0 --libs` -lpthread $(CIMG_OPT_CFLAGS) $(CIMG_GIMP_CFLAGS)
275 # Specific targets for the 'gmic4gimp' plug-in for GIMP.
276 gmic4gimp_def: gmic4gimp_def.raw
277 \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
278 \gmic -v- -t uchar ../html/img/logoGMIC.ppm -permute vxyz -o -.h | sed 's/unnamed/logo/' | sed 's/char/const char/' >> gmic4gimp_def.h
280 gmic4gimp.o: gmic.cpp
281 $(CC) -I.. -o gmic4gimp.o -c gmic.cpp -Dgmic_minimal $(CIMG_OPT_CFLAGS) $(CIMG_FFTW3_CFLAGS)
283 gmic4gimp: gmic4gimp.o gmic4gimp.cpp
284 $(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)
286 # Specific targets for 'gmic'.
287 gmic_def: gmic_def.raw
288 \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
290 gmic_bool.o: gmic.cpp
291 @echo
292 @echo "** Compiling 'gmic ($(CIMG_VERSION))' with '$(CCVER)'"
293 @echo
294 $(CC) -o gmic_bool.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_bool $(CFLAGS) $(CONF_CFLAGS)
295 gmic_uchar.o: gmic.cpp
296 $(CC) -o gmic_uchar.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_uchar $(CFLAGS) $(CONF_CFLAGS)
297 gmic_char.o: gmic.cpp
298 $(CC) -o gmic_char.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_char $(CFLAGS) $(CONF_CFLAGS)
299 gmic_ushort.o: gmic.cpp
300 $(CC) -o gmic_ushort.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_ushort $(CFLAGS) $(CONF_CFLAGS)
301 gmic_short.o: gmic.cpp
302 $(CC) -o gmic_short.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_short $(CFLAGS) $(CONF_CFLAGS)
303 gmic_uint.o: gmic.cpp
304 $(CC) -o gmic_uint.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_uint $(CFLAGS) $(CONF_CFLAGS)
305 gmic_int.o: gmic.cpp
306 $(CC) -o gmic_int.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_int $(CFLAGS) $(CONF_CFLAGS)
307 gmic_float.o: gmic.cpp
308 $(CC) -o gmic_float.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_float $(CFLAGS) $(CONF_CFLAGS)
309 gmic_double.o: gmic.cpp
310 $(CC) -o gmic_double.o -c gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_double $(CFLAGS) $(CONF_CFLAGS)
311 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
312 $(CC) -o $(EXEPFX)gmic gmic.cpp -I. -Dgmic_separate_compilation -Dgmic_main \
313 gmic_bool.o gmic_uchar.o gmic_char.o gmic_ushort.o gmic_short.o \
314 gmic_uint.o gmic_int.o gmic_float.o gmic_double.o $(CFLAGS) $(LDFLAGS) $(CONF_CFLAGS) $(CONF_LDFLAGS)
316 ifeq ($(MACOSX_APP),true)
317 mkdir -p $(EXEPFX)gmic.app/Contents/MacOS
318 mv ${*} $(EXEPFX)gmic.app/Contents/MacOS
319 endif
320 ifeq ($(STRIP_EXE),true)
321 strip $(EXEPFX)gmic
322 endif
324 # Linux/BSD/Mac OSX targets, with X11 display.
325 linux:
326 @make \
327 "CONF_CFLAGS = \
328 $(CIMG_VT100_CFLAGS) \
329 $(CIMG_X11_CFLAGS) \
330 $(CIMG_XSHM_CFLAGS) \
331 $(CIMG_XRANDR_CFLAGS)" \
332 "CONF_LDFLAGS = \
333 $(CIMG_X11_LDFLAGS) \
334 $(CIMG_XSHM_LDFLAGS) \
335 $(CIMG_XRANDR_LDFLAGS)" \
336 all
338 dlinux:
339 @make \
340 "CONF_CFLAGS = \
341 $(CIMG_DEBUG_CFLAGS) \
342 $(CIMG_VT100_CFLAGS) \
343 $(CIMG_X11_CFLAGS) \
344 $(CIMG_XSHM_CFLAGS) \
345 $(CIMG_XRANDR_CFLAGS)" \
346 "CONF_LDFLAGS = \
347 $(CIMG_X11_LDFLAGS) \
348 $(CIMG_XSHM_LDFLAGS) \
349 $(CIMG_XRANDR_LDFLAGS)" \
350 all
352 olinux:
353 @make \
354 "CONF_CFLAGS = \
355 $(CIMG_OPT_CFLAGS) \
356 $(CIMG_VT100_CFLAGS) \
357 $(CIMG_X11_CFLAGS) \
358 $(CIMG_XSHM_CFLAGS) \
359 $(CIMG_XRANDR_CFLAGS)" \
360 "CONF_LDFLAGS = \
361 $(CIMG_X11_LDFLAGS) \
362 $(CIMG_XSHM_LDFLAGS) \
363 $(CIMG_XRANDR_LDFLAGS)" \
364 "STRIP_EXE=true" \
365 all
367 mlinux:
368 @make \
369 "CONF_CFLAGS = \
370 $(CIMG_NODISPLAY_CFLAGS) \
371 $(CIMG_OPT_CFLAGS)" \
372 "STRIP_EXE=true" \
373 all
375 Mlinux:
376 @make \
377 "CONF_CFLAGS = \
378 $(CIMG_OPT_CFLAGS) \
379 $(CIMG_VT100_CFLAGS) \
380 $(CIMG_X11_CFLAGS) \
381 $(CIMG_XSHM_CFLAGS) \
382 $(CIMG_XRANDR_CFLAGS) \
383 $(CIMG_TIFF_CFLAGS) \
384 $(CIMG_PNG_CFLAGS) \
385 $(CIMG_JPEG_CFLAGS) \
386 $(CIMG_ZLIB_CFLAGS) \
387 $(CIMG_MAGICK_CFLAGS) \
388 $(CIMG_FFTW3_CFLAGS)" \
389 "CONF_LDFLAGS = \
390 $(CIMG_X11_LDFLAGS) \
391 $(CIMG_XSHM_LDFLAGS) \
392 $(CIMG_XRANDR_LDFLAGS) \
393 $(CIMG_TIFF_LDFLAGS) \
394 $(CIMG_PNG_LDFLAGS) \
395 $(CIMG_JPEG_LDFLAGS) \
396 $(CIMG_ZLIB_LDFLAGS) \
397 $(CIMG_MAGICK_LDFLAGS) \
398 $(CIMG_FFTW3_LDFLAGS)" \
399 "STRIP_EXE=true" \
400 all use_jpeg_buffer greycstoration4gimp gmic4gimp
402 # Sun Solaris targets, with X11 display.
403 solaris:
404 @make \
405 "CONF_CFLAGS = \
406 $(CIMG_VT100_CFLAGS) \
407 $(CIMG_X11_CFLAGS) \
408 $(CIMG_XSHM_CFLAGS) \
409 $(CIMG_XRANDR_CFLAGS)" \
410 "CONF_LDFLAGS = \
411 $(CIMG_SOLARIS_LDFLAGS) \
412 $(CIMG_X11_LDFLAGS) \
413 $(CIMG_XSHM_LDFLAGS) \
414 $(CIMG_XRANDR_LDFLAGS)" \
415 all
417 dsolaris:
418 @make \
419 "CONF_CFLAGS = \
420 $(CIMG_DEBUG_CFLAGS) \
421 $(CIMG_VT100_CFLAGS) \
422 $(CIMG_X11_CFLAGS) \
423 $(CIMG_XSHM_CFLAGS) \
424 $(CIMG_XRANDR_CFLAGS)" \
425 "CONF_LDFLAGS = \
426 $(CIMG_SOLARIS_LDFLAGS) \
427 $(CIMG_X11_LDFLAGS) \
428 $(CIMG_XSHM_LDFLAGS) \
429 $(CIMG_XRANDR_LDFLAGS)" \
430 all
432 osolaris:
433 @make \
434 "CONF_CFLAGS = \
435 $(CIMG_OPT_CFLAGS) \
436 $(CIMG_VT100_CFLAGS) \
437 $(CIMG_X11_CFLAGS) \
438 $(CIMG_XSHM_CFLAGS) \
439 $(CIMG_XRANDR_CFLAGS)" \
440 "CONF_LDFLAGS = \
441 $(CIMG_SOLARIS_LDFLAGS) \
442 $(CIMG_X11_LDFLAGS) \
443 $(CIMG_XSHM_LDFLAGS) \
444 $(CIMG_XRANDR_LDFLAGS)" \
445 "STRIP_EXE=true" \
446 all
448 msolaris:
449 @make \
450 "CONF_CFLAGS = \
451 $(CIMG_NODISPLAY_CFLAGS) \
452 $(CIMG_OPT_CFLAGS)" \
453 "STRIP_EXE=true" \
454 all
456 Msolaris:
457 @make \
458 "CONF_CFLAGS = \
459 $(CIMG_OPT_CFLAGS) \
460 $(CIMG_VT100_CFLAGS) \
461 $(CIMG_X11_CFLAGS) \
462 $(CIMG_XSHM_CFLAGS) \
463 $(CIMG_XRANDR_CFLAGS) \
464 $(CIMG_TIFF_CFLAGS) \
465 $(CIMG_PNG_CFLAGS) \
466 $(CIMG_JPEG_CFLAGS) \
467 $(CIMG_ZLIB_CFLAGS) \
468 $(CIMG_MAGICK_CFLAGS) \
469 $(CIMG_FFTW3_CFLAGS)" \
470 "CONF_LDFLAGS = \
471 $(CIMG_SOLARIS_LDFLAGS) \
472 $(CIMG_X11_LDFLAGS) \
473 $(CIMG_XSHM_LDFLAGS) \
474 $(CIMG_XRANDR_LDFLAGS) \
475 $(CIMG_TIFF_LDFLAGS) \
476 $(CIMG_PNG_LDFLAGS) \
477 $(CIMG_JPEG_LDFLAGS) \
478 $(CIMG_ZLIB_LDFLAGS) \
479 $(CIMG_MAGICK_LDFLAGS) \
480 $(CIMG_FFTW3_LDFLAGS)" \
481 "STRIP_EXE=true" \
482 all use_jpeg_buffer greycstoration4gimp gmic4gimp
484 # MacOsX targets, with Carbon display.
485 macosx:
486 @make \
487 "CONF_CFLAGS = \
488 $(CIMG_CARBON_CFLAGS) \
489 $(CIMG_VT100_CFLAGS)" \
490 "MACOSX_APP=true" \
491 all
493 dmacosx:
494 @make \
495 "CONF_CFLAGS = \
496 $(CIMG_DEBUG_CFLAGS) \
497 $(CIMG_CARBON_CFLAGS) \
498 $(CIMG_VT100_CFLAGS)" \
499 "MACOSX_APP=true" \
500 all
502 omacosx:
503 @make \
504 "CONF_CFLAGS = \
505 $(CIMG_OPT_CFLAGS) \
506 $(CIMG_CARBON_CFLAGS) \
507 $(CIMG_VT100_CFLAGS)" \
508 "MACOSX_APP=true" \
509 all
511 mmacosx:
512 @make \
513 "CONF_CFLAGS = \
514 $(CIMG_NODISPLAY_CFLAGS) \
515 $(CIMG_OPT_CFLAGS)" \
516 "MACOSX_APP=true" \
517 all
519 Mmacosx:
520 @make \
521 "CONF_CFLAGS = \
522 $(CIMG_OPT_CFLAGS) \
523 $(CIMG_VT100_CFLAGS) \
524 $(CIMG_CARBON_CFLAGS) \
525 $(CIMG_TIFF_CFLAGS) \
526 $(CIMG_PNG_CFLAGS) \
527 $(CIMG_JPEG_CFLAGS) \
528 $(CIMG_ZLIB_CFLAGS) \
529 $(CIMG_MAGICK_CFLAGS) \
530 $(CIMG_FFTW3_CFLAGS)" \
531 "CONF_LDFLAGS = \
532 $(CIMG_TIFF_LDFLAGS) \
533 $(CIMG_PNG_LDFLAGS) \
534 $(CIMG_JPEG_LDFLAGS) \
535 $(CIMG_ZLIB_LDFLAGS) \
536 $(CIMG_MAGICK_LDFLAGS) \
537 $(CIMG_FFTW3_LDFLAGS)" \
538 "MACOSX_APP=true" \
539 all use_jpeg_buffer greycstoration4gimp gmic4gimp
541 # Windows targets, with GDI32 display.
542 windows:
543 @make \
544 "CONF_LDFLAGS = \
545 $(CIMG_GDI32_LDFLAGS)" \
546 all
548 dwindows:
549 @make \
550 "CONF_CFLAGS = \
551 $(CIMG_DEBUG_CFLAGS)" \
552 "CONF_LDFLAGS = \
553 $(CIMG_GDI32_LDFLAGS)" \
554 all
556 owindows:
557 @make \
558 "CONF_CFLAGS = \
559 $(CIMG_OPT_CFLAGS)" \
560 "CONF_LDFLAGS = \
561 $(CIMG_GDI32_LDFLAGS)" \
562 "STRIP_EXE=true" \
563 all
565 mwindows:
566 @make \
567 "CONF_CFLAGS = \
568 $(CIMG_NODISPLAY_CFLAGS) \
569 $(CIMG_OPT_CFLAGS)" \
570 "STRIP_EXE=true" \
571 all
573 Mwindows:
574 @make \
575 "CONF_CFLAGS = \
576 $(CIMG_OPT_CFLAGS) \
577 $(CIMG_TIFF_CFLAGS) \
578 $(CIMG_PNG_CFLAGS) \
579 $(CIMG_JPEG_CFLAGS) \
580 $(CIMG_ZLIB_CFLAGS) \
581 $(CIMG_FFTW3_CFLAGS)" \
582 "CONF_LDFLAGS = \
583 $(CIMG_GDI32_LDFLAGS) \
584 $(CIMG_TIFF_LDFLAGS) \
585 $(CIMG_PNG_LDFLAGS) \
586 $(CIMG_JPEG_LDFLAGS) \
587 $(CIMG_ZLIB_LDFLAGS) \
588 $(CIMG_FFTW3_LDFLAGS)" \
589 "STRIP_EXE=true" \
590 all use_jpeg_buffer greycstoration4gimp gmic4gimp
592 #-----------------
593 # End of makefile
594 #-----------------