Lines 1-5
Link Here
|
1 |
--- examples/Makefile.orig 2019-03-10 13:46:23 UTC |
1 |
--- examples/Makefile.orig 2019-04-10 13:19:43 UTC |
2 |
+++ examples/Makefile |
2 |
+++ examples/Makefile |
|
|
3 |
@@ -1,6 +1,6 @@ |
4 |
# |
5 |
# File : Makefile |
6 |
-# ( Makefile for GNU 'make' utility ) |
7 |
+# ( Makefile for GNU 'ggmake' utility ) |
8 |
# |
9 |
# Description : Makefile for compiling CImg-based code on Unix. |
10 |
# This file is a part of the CImg Library project. |
3 |
@@ -89,7 +89,7 @@ VERSION2 = $(shell grep 'cimg_version\ ' ../CImg.h | t |
11 |
@@ -89,7 +89,7 @@ VERSION2 = $(shell grep 'cimg_version\ ' ../CImg.h | t |
4 |
VERSION3 = $(shell grep 'cimg_version\ ' ../CImg.h | tail -c2 | head -c1) |
12 |
VERSION3 = $(shell grep 'cimg_version\ ' ../CImg.h | tail -c2 | head -c1) |
5 |
SVERSION=$(VERSION1).$(VERSION2).$(VERSION3) |
13 |
SVERSION=$(VERSION1).$(VERSION2).$(VERSION3) |
Lines 30-36
Link Here
|
30 |
endif |
38 |
endif |
31 |
ifdef IS_ICPC |
39 |
ifdef IS_ICPC |
32 |
OPT_CFLAGS = -fast |
40 |
OPT_CFLAGS = -fast |
33 |
@@ -222,7 +222,7 @@ JPEG_LIBS = -ljpeg |
41 |
@@ -165,9 +165,9 @@ endif |
|
|
42 |
|
43 |
# Flags to enable OpenCV support. |
44 |
OPENCV_DEFINE = -Dcimg_use_opencv |
45 |
-OPENCV_INCDIR = $(shell pkg-config opencv --cflags || echo -I/usr/include/opencv) -I/usr/include/opencv |
46 |
+OPENCV_INCDIR = $(shell pkg-config opencv3 --cflags || echo -I/usr/include/opencv) -I/usr/include/opencv |
47 |
OPENCV_CFLAGS = $(OPENCV_DEFINE) $(OPENCV_INCDIR) |
48 |
-OPENCV_LIBS = $(shell pkg-config opencv --libs || echo -lopencv_core -lopencv_highgui) |
49 |
+OPENCV_LIBS = $(shell pkg-config opencv3 --libs || echo -lopencv_core -lopencv_highgui) |
50 |
|
51 |
# Flags used to disable display capablities of CImg |
52 |
NODISPLAY_CFLAGS = -Dcimg_display=0 |
53 |
@@ -217,7 +217,7 @@ JPEG_LIBS = -ljpeg |
34 |
TIFF_DEFINE = -Dcimg_use_tiff |
54 |
TIFF_DEFINE = -Dcimg_use_tiff |
35 |
TIFF_INCDIR = |
55 |
TIFF_INCDIR = |
36 |
TIFF_CFLAGS = $(TIFF_DEFINE) $(TIFF_INCDIR) |
56 |
TIFF_CFLAGS = $(TIFF_DEFINE) $(TIFF_INCDIR) |
Lines 39-45
Link Here
|
39 |
|
59 |
|
40 |
# Flags to enable native support for MINC2 image files, using the MINC2 library. |
60 |
# Flags to enable native support for MINC2 image files, using the MINC2 library. |
41 |
# ( http://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_Users_Guide ) |
61 |
# ( http://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_Users_Guide ) |
42 |
@@ -234,16 +234,16 @@ MINC2_LIBS = -lminc_io -lvolume_io2 -lminc2 -lnetcdf - |
62 |
@@ -229,14 +229,14 @@ MINC2_LIBS = -lminc_io -lvolume_io2 -lminc2 -lnetcdf - |
43 |
# Flags to enable native support for EXR image files, using the OpenEXR library. |
63 |
# Flags to enable native support for EXR image files, using the OpenEXR library. |
44 |
# ( http://www.openexr.com/ ) |
64 |
# ( http://www.openexr.com/ ) |
45 |
OPENEXR_DEFINE = -Dcimg_use_openexr |
65 |
OPENEXR_DEFINE = -Dcimg_use_openexr |
Lines 50-77
Link Here
|
50 |
|
70 |
|
51 |
# Flags to enable native support for various video files, using the FFMPEG library. |
71 |
# Flags to enable native support for various video files, using the FFMPEG library. |
52 |
# ( http://www.ffmpeg.org/ ) |
72 |
# ( http://www.ffmpeg.org/ ) |
53 |
-FFMPEG_DEFINE = -Dcimg_use_ffmpeg -D__STDC_CONSTANT_MACROS |
73 |
FFMPEG_DEFINE = -Dcimg_use_ffmpeg -D__STDC_CONSTANT_MACROS |
54 |
-FFMPEG_INCDIR = -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/libswscale -I/usr/include/ffmpeg |
74 |
-FFMPEG_INCDIR = -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/libswscale -I/usr/include/ffmpeg |
55 |
-FFMPEG_CFLAGS = $(FFMPEG_DEFINE) $(FFMPEG_INCDIR) |
|
|
56 |
-FFMPEG_LIBS = -lavcodec -lavformat -lswscale |
57 |
+#FFMPEG_DEFINE = -Dcimg_use_ffmpeg -D__STDC_CONSTANT_MACROS |
58 |
+FFMPEG_INCDIR = -I$(LOCALBASE)/include/libavcodec -I$(LOCALBASE)/include/libavformat -I$(LOCALBASE)/include/libswscale -I$(LOCALBASE)/include/ffmpeg |
75 |
+FFMPEG_INCDIR = -I$(LOCALBASE)/include/libavcodec -I$(LOCALBASE)/include/libavformat -I$(LOCALBASE)/include/libswscale -I$(LOCALBASE)/include/ffmpeg |
59 |
+#FFMPEG_CFLAGS = $(FFMPEG_DEFINE) $(FFMPEG_INCDIR) |
76 |
FFMPEG_CFLAGS = $(FFMPEG_DEFINE) $(FFMPEG_INCDIR) |
60 |
+#FFMPEG_LIBS = -lavcodec -lavformat -lswscale |
77 |
FFMPEG_LIBS = -lavcodec -lavformat -lswscale |
61 |
|
78 |
|
62 |
# Flags to enable native support for compressed .cimgz files, using the Zlib library. |
79 |
@@ -277,12 +277,12 @@ endif |
63 |
# ( http://www.zlib.net/ ) |
80 |
LAPACK_DEFINE = -Dcimg_use_lapack |
64 |
@@ -279,15 +279,15 @@ endif |
|
|
65 |
|
66 |
# Flags to enable the use of LAPACK routines for matrix computation |
67 |
# ( http://www.netlib.org/lapack/ ) |
68 |
-LAPACK_DEFINE = -Dcimg_use_lapack |
69 |
+#LAPACK_DEFINE = -Dcimg_use_lapack |
70 |
LAPACK_INCDIR = |
81 |
LAPACK_INCDIR = |
71 |
-LAPACK_CFLAGS = $(LAPACK_DEFINE) $(LAPACK_INCDIR) |
82 |
LAPACK_CFLAGS = $(LAPACK_DEFINE) $(LAPACK_INCDIR) |
72 |
-LAPACK_LIBS = -lblas -llapack |
83 |
-LAPACK_LIBS = -lblas -llapack |
73 |
+#LAPACK_CFLAGS = $(LAPACK_DEFINE) $(LAPACK_INCDIR) |
84 |
+LAPACK_LIBS = -L/usr/local/lib -L/usr/local/lib -lblas -llapack |
74 |
+#LAPACK_LIBS = -lblas -llapack |
|
|
75 |
|
85 |
|
76 |
# Flags to enable the use of the Board library |
86 |
# Flags to enable the use of the Board library |
77 |
# ( https://github.com/c-koi/libboard ) |
87 |
# ( https://github.com/c-koi/libboard ) |
Lines 81-87
Link Here
|
81 |
BOARD_CFLAGS = $(BOARD_DEFINE) $(BOARD_INCDIR) |
91 |
BOARD_CFLAGS = $(BOARD_DEFINE) $(BOARD_INCDIR) |
82 |
BOARD_LIBS = -lboard |
92 |
BOARD_LIBS = -lboard |
83 |
|
93 |
|
84 |
@@ -366,6 +366,7 @@ $(X11_LIBS) \ |
94 |
@@ -336,7 +336,7 @@ menu: |
|
|
95 |
@echo " > clean : Clean generated files." |
96 |
@echo |
97 |
@echo "Choose your option :" |
98 |
- @read CHOICE; echo; $(MAKE) $$CHOICE; echo; echo "> Next time, you can bypass the menu by typing directly 'make $$CHOICE'"; echo; |
99 |
+ @read CHOICE; echo; $(MAKE) $$CHOICE; echo; echo "> Next time, you can bypass the menu by typing directly 'ggmake $$CHOICE'"; echo; |
100 |
|
101 |
all: $(FILES) |
102 |
|
103 |
@@ -361,6 +361,7 @@ $(X11_LIBS) \ |
85 |
$(TIFF_LIBS) \ |
104 |
$(TIFF_LIBS) \ |
86 |
$(LAPACK_LIBS) \ |
105 |
$(LAPACK_LIBS) \ |
87 |
$(XSHM_LIBS)" \ |
106 |
$(XSHM_LIBS)" \ |
Lines 89-95
Link Here
|
89 |
all $(EXTRA_FILES) |
108 |
all $(EXTRA_FILES) |
90 |
|
109 |
|
91 |
# Linux/BSD/Mac OSX targets, with X11 display. |
110 |
# Linux/BSD/Mac OSX targets, with X11 display. |
92 |
@@ -458,8 +459,11 @@ $(ZLIB_CFLAGS) \ |
111 |
@@ -453,8 +454,11 @@ $(ZLIB_CFLAGS) \ |
93 |
$(CURL_CFLAGS) \ |
112 |
$(CURL_CFLAGS) \ |
94 |
$(OPENCV_CFLAGS) \ |
113 |
$(OPENCV_CFLAGS) \ |
95 |
$(MAGICK_CFLAGS) \ |
114 |
$(MAGICK_CFLAGS) \ |
Lines 101-107
Link Here
|
101 |
$(X11_LIBS) \ |
120 |
$(X11_LIBS) \ |
102 |
$(XSHM_LIBS) \ |
121 |
$(XSHM_LIBS) \ |
103 |
$(XRANDR_LIBS) \ |
122 |
$(XRANDR_LIBS) \ |
104 |
@@ -471,6 +475,8 @@ $(ZLIB_LIBS) \ |
123 |
@@ -466,6 +470,8 @@ $(ZLIB_LIBS) \ |
105 |
$(CURL_LIBS) \ |
124 |
$(CURL_LIBS) \ |
106 |
$(OPENCV_LIBS) \ |
125 |
$(OPENCV_LIBS) \ |
107 |
$(MAGICK_LIBS) \ |
126 |
$(MAGICK_LIBS) \ |
Lines 110-112
Link Here
|
110 |
$(FFTW3_LIBS)" \ |
129 |
$(FFTW3_LIBS)" \ |
111 |
"STRIP_EXE=true" \ |
130 |
"STRIP_EXE=true" \ |
112 |
all $(EXTRA_FILES) |
131 |
all $(EXTRA_FILES) |
|
|
132 |
@@ -679,4 +685,4 @@ $(FFTW3_LIBS)" \ |
133 |
"STRIP_EXE=true" \ |
134 |
all $(EXTRA_FILES) |
135 |
|
136 |
-# End of makefile |
137 |
+# End of ggmakefile |