2021-02-07 19:44:41 +01:00
|
|
|
diff -uNr gmic-2.9.5/src/Makefile gmic-2.9.5.mod/src/Makefile
|
|
|
|
--- gmic-2.9.5/src/Makefile 2021-02-05 19:46:00.000000000 +0000
|
|
|
|
+++ gmic-2.9.5.mod/src/Makefile 2021-02-07 18:21:18.932681182 +0000
|
|
|
|
@@ -207,7 +207,7 @@
|
2018-05-19 00:55:20 +02:00
|
|
|
# Enable multi-threading support.
|
2017-08-10 02:50:42 +02:00
|
|
|
PARALLEL_CFLAGS = -Dgmic_is_parallel
|
|
|
|
ifneq ($(OS),Windows)
|
|
|
|
-PARALLEL_LIBS = -lpthread
|
2019-05-10 18:39:24 +02:00
|
|
|
+#PARALLEL_LIBS = -lpthread
|
2017-08-10 02:50:42 +02:00
|
|
|
endif
|
|
|
|
|
2018-05-19 00:55:20 +02:00
|
|
|
# Enable parallelization in CImg, using OpenMP.
|
2021-02-07 19:44:41 +01:00
|
|
|
@@ -347,8 +347,8 @@
|
|
|
|
GMIC_CLI_CFLAGS = $(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $(FFTW_CFLAGS) $(CURL_CFLAGS) $(PNG_CFLAGS) $(JPEG_CFLAGS) $(TIFF_CFLAGS)
|
|
|
|
GMIC_CLI_LIBS = $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(FFTW_LIBS) $(CURL_LIBS) $(PNG_LIBS) $(JPEG_LIBS) $(TIFF_LIBS)
|
2020-04-04 03:49:59 +02:00
|
|
|
ifeq ($(OS),Unix) # Unix
|
2019-10-23 10:07:07 +02:00
|
|
|
-GMIC_CLI_CFLAGS += $(OPENMP_CFLAGS) $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS) # $(XSHM_CFLAGS) # $(MAGICK_CFLAGS)
|
2017-08-10 02:50:42 +02:00
|
|
|
-GMIC_CLI_LIBS += $(OPENMP_LIBS) $(X11_LIBS) $(OPENEXR_LIBS) $(OPENCV_LIBS) # $(XSHM_LIBS) # $(MAGICK_LIBS)
|
2019-10-23 10:07:07 +02:00
|
|
|
+#GMIC_CLI_CFLAGS += $(OPENMP_CFLAGS) $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS) # $(XSHM_CFLAGS) # $(MAGICK_CFLAGS)
|
2019-05-10 18:39:24 +02:00
|
|
|
+#GMIC_CLI_LIBS += $(OPENMP_LIBS) $(X11_LIBS) $(OPENEXR_LIBS) $(OPENCV_LIBS) # $(XSHM_LIBS) # $(MAGICK_LIBS)
|
2017-08-10 02:50:42 +02:00
|
|
|
else
|
2020-04-04 03:49:59 +02:00
|
|
|
ifeq ($(OS),Darwin) # MacOSX
|
2018-05-19 00:55:20 +02:00
|
|
|
GMIC_CLI_CFLAGS += $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS)
|
2021-02-07 19:44:41 +01:00
|
|
|
@@ -361,7 +361,7 @@
|
2017-08-10 02:50:42 +02:00
|
|
|
|
|
|
|
cli:
|
2020-04-04 03:49:59 +02:00
|
|
|
$(MAKE) "CFLAGS+=$(GMIC_CLI_CFLAGS) $(OPT_CLI_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS) $(OPT_LIBS)" _cli
|
2017-08-10 02:50:42 +02:00
|
|
|
- $(STRIP) gmic$(EXE)
|
2019-05-10 18:39:24 +02:00
|
|
|
+ $(STRIP) gmic$(EXE) gmic-gm$(EXE)
|
2017-08-10 02:50:42 +02:00
|
|
|
|
2018-05-19 00:55:20 +02:00
|
|
|
debug:
|
|
|
|
$(MAKE) "CFLAGS+=$(GMIC_CLI_CFLAGS) $(DEBUG_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS)" _cli
|
2021-02-07 19:44:41 +01:00
|
|
|
@@ -370,8 +370,12 @@
|
|
|
|
$(MAKE) "CFLAGS+=$(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $(OPENMP_CFLAGS) $(X11_CFLAGS) $(OPENEXR_CFLAGS) -Dcimg_use_half -I/usr/include/OpenEXR -Dgmic_pixel_type=half" \
|
|
|
|
"LIBS+=$(MANDATORY_LIBS) $(PARALLEL_LIBS) $(OPENMP_LIBS) $(X11_LIBS) $(OPENEXR_LIBS)" _cli
|
2020-01-30 20:23:13 +01:00
|
|
|
|
2021-02-07 19:44:41 +01:00
|
|
|
-_cli: gmic_cli.o gmic.cpp gmic.h gmic_stdlib.h CImg.h
|
|
|
|
+_cli: gmic_cli_gm.o gmic_cli.o gmic.cpp gmic.h gmic_stdlib.h CImg.h
|
2019-05-10 18:39:24 +02:00
|
|
|
$(CXX) -o gmic gmic_cli.cpp gmic_cli.o $(CFLAGS) $(LIBS)
|
|
|
|
+ $(CXX) -o gmic-gm gmic_cli.cpp gmic_cli_gm.o $(CFLAGS) $(MAGICK_CFLAGS) $(LIBS) $(MAGICK_LIBS)
|
2021-02-07 19:44:41 +01:00
|
|
|
+
|
|
|
|
+gmic_cli_gm.o: gmic.cpp gmic.h gmic_stdlib.h CImg.h
|
|
|
|
+ $(CXX) -o gmic_cli_gm.o -c gmic.cpp $(CFLAGS) $(MAGICK_CFLAGS)
|
2019-05-07 03:24:02 +02:00
|
|
|
|
2020-01-30 20:23:13 +01:00
|
|
|
gmic_cli.o: gmic.cpp gmic.h gmic_stdlib.h CImg.h
|
|
|
|
$(CXX) -o gmic_cli.o -c gmic.cpp $(CFLAGS)
|