You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.9 KiB
43 lines
1.9 KiB
6 years ago
|
diff --git a/src/Makefile~ b/src/Makefile
|
||
|
index 4df1c97..4d2659a 100644
|
||
|
--- a/src/Makefile~
|
||
|
+++ b/src/Makefile
|
||
|
@@ -199,7 +199,7 @@ endif
|
||
7 years ago
|
# Enable multi-threading support.
|
||
7 years ago
|
PARALLEL_CFLAGS = -Dgmic_is_parallel
|
||
|
ifneq ($(OS),Windows)
|
||
|
-PARALLEL_LIBS = -lpthread
|
||
6 years ago
|
+#PARALLEL_LIBS = -lpthread
|
||
7 years ago
|
endif
|
||
|
|
||
7 years ago
|
# Enable parallelization in CImg, using OpenMP.
|
||
6 years ago
|
@@ -339,8 +339,8 @@ native:
|
||
6 years ago
|
GMIC_CLI_CFLAGS = $(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $(EIGEN_CFLAGS) $(FFTW_CFLAGS) $(CURL_CFLAGS) $(PNG_CFLAGS) $(JPEG_CFLAGS) $(TIFF_CFLAGS)
|
||
|
GMIC_CLI_LIBS = $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(EIGEN_LIBS) $(FFTW_LIBS) $(CURL_LIBS) $(PNG_LIBS) $(JPEG_LIBS) $(TIFF_LIBS)
|
||
7 years ago
|
ifeq ($(OS),Unix) # Unix.
|
||
|
-GMIC_CLI_CFLAGS += $(OPENMP_CFLAGS) $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS) # $(XSHM_CFLAGS) $(MAGICK_CFLAGS)
|
||
|
-GMIC_CLI_LIBS += $(OPENMP_LIBS) $(X11_LIBS) $(OPENEXR_LIBS) $(OPENCV_LIBS) # $(XSHM_LIBS) # $(MAGICK_LIBS)
|
||
6 years ago
|
+#GMIC_CLI_CFLAGS += $(OPENMP_CFLAGS) $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS) # $(XSHM_CFLAGS) $(MAGICK_CFLAGS)
|
||
|
+#GMIC_CLI_LIBS += $(OPENMP_LIBS) $(X11_LIBS) $(OPENEXR_LIBS) $(OPENCV_LIBS) # $(XSHM_LIBS) # $(MAGICK_LIBS)
|
||
7 years ago
|
else
|
||
|
ifeq ($(OS),Darwin) # MacOSX.
|
||
7 years ago
|
GMIC_CLI_CFLAGS += $(X11_CFLAGS) $(OPENEXR_CFLAGS) $(OPENCV_CFLAGS)
|
||
6 years ago
|
@@ -353,7 +353,7 @@ endif
|
||
7 years ago
|
|
||
|
cli:
|
||
6 years ago
|
$(MAKE) "CFLAGS+=$(GMIC_CLI_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS)" _cli
|
||
7 years ago
|
- $(STRIP) gmic$(EXE)
|
||
6 years ago
|
+ $(STRIP) gmic$(EXE) gmic-gm$(EXE)
|
||
7 years ago
|
|
||
7 years ago
|
debug:
|
||
|
$(MAKE) "CFLAGS+=$(GMIC_CLI_CFLAGS) $(DEBUG_CFLAGS)" "LIBS+=$(GMIC_CLI_LIBS)" _cli
|
||
6 years ago
|
@@ -361,6 +361,8 @@ debug:
|
||
6 years ago
|
_cli: check_versions gmic.cpp gmic.h gmic_stdlib.h CImg.h
|
||
|
$(CXX) -o gmic_cli.o -c gmic.cpp $(CFLAGS)
|
||
6 years ago
|
$(CXX) -o gmic gmic_cli.cpp gmic_cli.o $(CFLAGS) $(LIBS)
|
||
|
+ $(CXX) -o gmic_cli_gm.o -c gmic.cpp $(CFLAGS) $(MAGICK_CFLAGS)
|
||
|
+ $(CXX) -o gmic-gm gmic_cli.cpp gmic_cli_gm.o $(CFLAGS) $(MAGICK_CFLAGS) $(LIBS) $(MAGICK_LIBS)
|
||
6 years ago
|
|
||
|
# CLI (static)
|
||
|
#-------------
|