"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Makefile" between
gmic_3.0.1.tar.gz and gmic_3.0.2.tar.gz

About: G’MIC (GREY’s Magic for Image Computing) is a framework for image processing. It provides several different user interfaces to convert/manipulate/filter/ visualize generic image datasets (usable standalone or as plug-in for GIMP and Krita).

Makefile  (gmic_3.0.1):Makefile  (gmic_3.0.2)
skipping to change at line 163 skipping to change at line 163
#-------------------------------------------------------- #--------------------------------------------------------
# Define compilation flags to se for each enable feature. # Define compilation flags to se for each enable feature.
#-------------------------------------------------------- #--------------------------------------------------------
# Flags set to describe a 'prerelease' version. # Flags set to describe a 'prerelease' version.
NO_PRERELEASE = $(shell date +%y%m%d) NO_PRERELEASE = $(shell date +%y%m%d)
NO_PRERELEASE_CFLAGS = -Dgmic_prerelease="\\\"$(PRERELEASE)\\\"" NO_PRERELEASE_CFLAGS = -Dgmic_prerelease="\\\"$(PRERELEASE)\\\""
# Minimal set of flags mandatory to compile G'MIC. # Minimal set of flags mandatory to compile G'MIC.
MANDATORY_CFLAGS = -Dgmic_build -Dcimg_date=\\\"\\\" -Dcimg_time=\\\"\\\" -Dcimg _use_zlib -I. $(shell pkg-config --cflags zlib || echo -I$(USR)/$(INCLUDE)) $(PR ERELEASE_CFLAGS) $(EXTRA_CFLAGS) MANDATORY_CFLAGS = -Dcimg_date=\\\"\\\" -Dcimg_time=\\\"\\\" -Dcimg_use_zlib -I. $(shell pkg-config --cflags zlib || echo -I$(USR)/$(INCLUDE)) $(PRERELEASE_CFLA GS) $(EXTRA_CFLAGS)
MANDATORY_LIBS = $(shell pkg-config --libs zlib || echo -lz) $(EXTRA_LIBS) MANDATORY_LIBS = $(shell pkg-config --libs zlib || echo -lz) $(EXTRA_LIBS)
ifndef NO_SRIPDLIB ifndef NO_SRIPDLIB
MANDATORY_CFLAGS += -std=c++11 -pedantic MANDATORY_CFLAGS += -std=c++11 -pedantic
endif endif
MANDATORY_LIBS += -L. -L$(USR)/$(LIB) -Wl,-rpath,. MANDATORY_LIBS += -L. -L$(USR)/$(LIB) -Wl,-rpath,.
ifdef IS_GCC ifdef IS_GCC
MANDATORY_CFLAGS += -Wall -Wextra -Wfatal-errors -Werror=unknown-pragmas -Werror =unused-label MANDATORY_CFLAGS += -Wall -Wextra -Wfatal-errors -Werror=unknown-pragmas -Werror =unused-label
GCC_VER_GTEQ5 = $(shell expr `$(CXX) -dumpversion | cut -f1 -d.` \>= 5) GCC_VER_GTEQ5 = $(shell expr `$(CXX) -dumpversion | cut -f1 -d.` \>= 5)
ifeq ($(GCC_VER_GTEQ5),1) ifeq ($(GCC_VER_GTEQ5),1)
skipping to change at line 193 skipping to change at line 193
endif endif
endif endif
ifeq ($(OS),Windows) ifeq ($(OS),Windows)
MANDATORY_LIBS += -Wl,--stack,16777216 MANDATORY_LIBS += -Wl,--stack,16777216
endif endif
# Enable optimizations for 'cli'. # Enable optimizations for 'cli'.
FLTO = -flto FLTO = -flto
OPT_CFLAGS = OPT_CFLAGS =
ifdef IS_GCC ifdef IS_GCC
OPT_CFLAGS += -Ofast -mtune=generic $(FLTO) OPT_CFLAGS += -Ofast -mtune=generic # $(FLTO)
OPT_LIBS = $(FLTO) OPT_LIBS = # $(FLTO)
endif endif
ifdef icpc ifdef icpc
OPT_CFLAGS += -fast OPT_CFLAGS += -fast
endif endif
# Enable multi-threading support. # Enable multi-threading support.
PARALLEL_CFLAGS = -Dgmic_is_parallel PARALLEL_CFLAGS = -Dgmic_is_parallel
ifneq ($(OS),Windows) ifneq ($(OS),Windows)
PARALLEL_LIBS = -lpthread PARALLEL_LIBS = -lpthread
endif endif
skipping to change at line 378 skipping to change at line 378
$(CXX) -shared -std=c++11 -pedantic -o libgmic.so.$(VERSION) libgmic.o $( LIBS) $(CXX) -shared -std=c++11 -pedantic -o libgmic.so.$(VERSION) libgmic.o $( LIBS)
else else
$(CXX) -shared -std=c++11 -pedantic -Wl,-soname,libgmic.so.$(VERSION1) -o libgmic.so.$(VERSION) libgmic.o $(LIBS) $(CXX) -shared -std=c++11 -pedantic -Wl,-soname,libgmic.so.$(VERSION1) -o libgmic.so.$(VERSION) libgmic.o $(LIBS)
endif endif
ifneq ($(OS),Windows) ifneq ($(OS),Windows)
ln -fs libgmic.so.$(VERSION) libgmic.so.$(VERSION1) ln -fs libgmic.so.$(VERSION) libgmic.so.$(VERSION1)
ln -fs libgmic.so.$(VERSION1) libgmic.so ln -fs libgmic.so.$(VERSION1) libgmic.so
endif endif
libgmic.o: gmic.cpp gmic.h gmic_stdlib.h CImg.h libgmic.o: gmic.cpp gmic.h gmic_stdlib.h CImg.h
$(CXX) -o libgmic.o -c gmic.cpp $(PIC) $(CFLAGS) $(CXX) -o libgmic.o -c gmic.cpp -Dgmic_core $(PIC) $(CFLAGS)
use_libgmic : use_libgmic.cpp use_libgmic : use_libgmic.cpp
$(CXX) -o use_libgmic use_libgmic.cpp -std=c++11 -pedantic -lgmic $(LIBS) $(CXX) -o use_libgmic use_libgmic.cpp -std=c++11 -pedantic -lgmic $(LIBS)
# CLI. # CLI.
#----- #-----
cli: cli:
$(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_STD_LIBS ) $(OPT_LIBS) -lgmic" _lib _cli $(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) $(OPT_CFLAGS)" "LIBS+=gmic.o $(GMIC_S TD_LIBS) $(OPT_LIBS)" gmic.o _cli
$(STRIP) gmic$(EXE) $(STRIP) gmic$(EXE)
dev: dev:
$(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS)" "LIBS+=gmic.o $(GMIC_STD_LIBS)" gmic .o _cli $(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS)" "LIBS+=gmic.o $(GMIC_STD_LIBS)" gmic .o _cli
debug: debug:
$(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) $(DEBUG_CFLAGS)" "LIBS+=gmic.o $(GMIC _STD_LIBS)" gmic.o _cli $(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) $(DEBUG_CFLAGS)" "LIBS+=gmic.o $(GMIC _STD_LIBS)" gmic.o _cli
valgrind: valgrind:
$(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) -g" "LIBS+=gmic.o $(GMIC_STD_LIBS)" g mic.o _cli $(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) -g" "LIBS+=gmic.o $(GMIC_STD_LIBS)" g mic.o _cli
opencv: opencv:
$(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) $(OPT_CFLAGS) $(OPENCV_CFLAGS)" "LIBS +=gmic.o $(GMIC_STD_LIBS) $(OPT_LIBS) $(OPENCV_LIBS)" gmic.o _cli $(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) $(OPT_CFLAGS) $(OPENCV_CFLAGS)" "LIBS +=gmic.o $(GMIC_STD_LIBS) $(OPT_LIBS) $(OPENCV_LIBS)" gmic.o _cli
half: half:
$(MAKE) "CFLAGS+=$(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $ (OPENMP_CFLAGS) $(X11_CFLAGS) $(OPENEXR_CFLAGS) -Dcimg_use_half -I/usr/include/O penEXR -Dgmic_pixel_type=half" \ $(MAKE) "CFLAGS+=$(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $ (OPENMP_CFLAGS) $(X11_CFLAGS) $(OPENEXR_CFLAGS) -Dcimg_use_half -I/usr/include/O penEXR -Dgmic_pixel_type=half" \
"LIBS+=gmic.o $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(OPENMP_LIBS) $ (X11_LIBS) $(OPENEXR_LIBS)" gmic.o _cli "LIBS+=gmic.o $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(OPENMP_LIBS) $ (X11_LIBS) $(OPENEXR_LIBS)" gmic.o _cli
_cli: gmic$(EXE) _cli: gmic$(EXE)
gmic$(EXE): gmic_cli.cpp gmic.h CImg.h gmic$(EXE): gmic_cli.cpp gmic.cpp gmic.h CImg.h
$(CXX) -o gmic$(EXE) gmic_cli.cpp $(CFLAGS) $(LIBS) $(CXX) -o gmic$(EXE) gmic_cli.cpp $(CFLAGS) $(LIBS)
gmic.o: gmic.cpp gmic.h gmic_stdlib.h CImg.h gmic.o: gmic.cpp gmic.h gmic_stdlib.h CImg.h
$(CXX) -o gmic.o -c gmic.cpp $(CFLAGS) $(CXX) -o gmic.o -c gmic.cpp -Dgmic_core $(CFLAGS)
# CLI (shared).
#--------------
cli_shared:
$(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_STD_LIBS
) $(OPT_LIBS) -lgmic" _lib _cli
$(STRIP) gmic$(EXE)
# CLI (static). # CLI (static).
#-------------- #--------------
GMIC_STATIC_CLI_PATH = $(USR)/$(LIB)/x86_64-linux-gnu GMIC_STATIC_CLI_PATH = $(USR)/$(LIB)/x86_64-linux-gnu
GMIC_STATIC_CLI_EXTRA = GMIC_STATIC_CLI_EXTRA =
GMIC_STATIC_CLI_CFLAGS = $(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $(ZLIB_CFLAGS) $(FFTW_CFLAGS) $(PNG_CFLAGS) $(JPEG_CFLAGS) -Dcimg_display=0 GMIC_STATIC_CLI_CFLAGS = $(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $(ZLIB_CFLAGS) $(FFTW_CFLAGS) $(PNG_CFLAGS) $(JPEG_CFLAGS) -Dcimg_display=0
GMIC_STATIC_CLI_LIBS = $(PARALLEL_LIBS) \ GMIC_STATIC_CLI_LIBS = $(PARALLEL_LIBS) \
$(GMIC_STATIC_CLI_PATH)/libpng.a \ $(GMIC_STATIC_CLI_PATH)/libpng.a \
$(GMIC_STATIC_CLI_PATH)/libjpeg.a \ $(GMIC_STATIC_CLI_PATH)/libjpeg.a \
$(GMIC_STATIC_CLI_PATH)/libz.a \ $(GMIC_STATIC_CLI_PATH)/libz.a \
$(GMIC_STATIC_CLI_PATH)/libfftw3.a $(GMIC_STATIC_CLI_PATH )/libfftw3_threads.a \ $(GMIC_STATIC_CLI_PATH)/libfftw3.a $(GMIC_STATIC_CLI_PATH )/libfftw3_threads.a \
$(GMIC_STATIC_CLI_EXTRA) $(GMIC_STATIC_CLI_EXTRA)
static: cli_static:
$(MAKE) "CFLAGS+=$(GMIC_STATIC_CLI_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_S TATIC_CLI_LIBS) $(OPT_LIBS)" _cli $(MAKE) "CFLAGS+=$(GMIC_STATIC_CLI_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_S TATIC_CLI_LIBS) $(OPT_LIBS)" _cli
$(STRIP) gmic$(EXE) $(STRIP) gmic$(EXE)
# libcgmic (standard). # libcgmic.
#--------------------- #----------
libc: libc:
$(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_STD_LIBS ) $(OPT_LIBS)" _lib _libc $(MAKE) "CFLAGS+=$(GMIC_STD_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_STD_LIBS ) $(OPT_LIBS)" _lib _libc
_libc: libcgmic_files libcgmic.so use_libcgmic _libc: libcgmic_files libcgmic.so use_libcgmic
libcgmic_files: libcgmic_files:
@echo "> Retrieve G'MIC libcgmic files..." @echo "> Retrieve G'MIC libcgmic files..."
@if [ ! -f gmic_libc.cpp ]; then \ @if [ ! -f gmic_libc.cpp ]; then \
if [ -d ../../gmic-community/libcgmic ]; then \ if [ -d ../../gmic-community/libcgmic ]; then \
ln -fs ../../gmic-community/libcgmic/gmic_libc.cpp .; \ ln -fs ../../gmic-community/libcgmic/gmic_libc.cpp .; \
skipping to change at line 458 skipping to change at line 464
fi; \ fi; \
fi fi
@echo " done!" @echo " done!"
libcgmic.so: libcgmic.o libcgmic.so: libcgmic.o
ar rcs libcgmic.a libcgmic.o ar rcs libcgmic.a libcgmic.o
ifeq ($(OS),Darwin) ifeq ($(OS),Darwin)
$(CXX) -shared -o libcgmic.so.$(VERSION) libcgmic.o libgmic.o $(LIBS) $(CXX) -shared -o libcgmic.so.$(VERSION) libcgmic.o libgmic.o $(LIBS)
else else
ifeq ($(OS),Windows) ifeq ($(OS),Windows)
$(CXX) -shared -o libcgmic.dll libcgmic.o libgmic.o -Wl,--output-def,libc gmic.def,--out-implib,libcgmic.a $(LIBS) $(CXX) -shared -o libcgmic-$(VERSION1).dll libcgmic.o libgmic.o -Wl,--out put-def,libcgmic.def,--out-implib,libcgmic.a $(LIBS)
else else
$(CXX) -shared -Wl,-soname,libcgmic.so.$(VERSION1) -o libcgmic.so.$(VERSI ON) libcgmic.o libgmic.o $(LIBS) $(CXX) -shared -Wl,-soname,libcgmic.so.$(VERSION1) -o libcgmic.so.$(VERSI ON) libcgmic.o libgmic.o $(LIBS)
endif endif
endif endif
ifneq ($(OS),Windows) ifneq ($(OS),Windows)
ln -fs libcgmic.so.$(VERSION) libcgmic.so.$(VERSION1) ln -fs libcgmic.so.$(VERSION) libcgmic.so.$(VERSION1)
ln -fs libcgmic.so.$(VERSION1) libcgmic.so ln -fs libcgmic.so.$(VERSION1) libcgmic.so
endif endif
libcgmic.o: gmic.cpp gmic.h gmic_stdlib.h CImg.h libcgmic.o: gmic_libc.cpp CImg.h gmic_libc.h gmic.h
$(CXX) -o libcgmic.o -c gmic_libc.cpp $(PIC) $(CFLAGS) $(CXX) -o libcgmic.o -c gmic_libc.cpp $(PIC) $(CFLAGS)
use_libcgmic: use_libcgmic.c use_libcgmic: use_libcgmic.c gmic_libc.h
$(CC) -std=c99 -o use_libcgmic use_libcgmic.c -lcgmic $(LIBS) $(CC) -std=c99 -o use_libcgmic use_libcgmic.c -lcgmic $(LIBS)
# libcgmic (static). # libcgmic (static).
#------------------- #-------------------
GMIC_LIBC_STATIC_CFLAGS = $(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $(FFTW_CFLAGS) $(PNG_CFLAGS) $(JPEG_CFLAGS) # $(CURL_CFLAGS) $(TIFF_CFLAGS) GMIC_LIBC_STATIC_CFLAGS = $(MANDATORY_CFLAGS) $(ABORT_CFLAGS) $(PARALLEL_CFLAGS) $(FFTW_CFLAGS) $(PNG_CFLAGS) $(JPEG_CFLAGS)
ifeq ($(OS),Window) ifeq ($(OS),Window)
GMIC_LIBC_STATIC_LIBS = -Bstatic -lpthread GMIC_LIBC_STATIC_LIBS = -Bstatic -lpthread
endif endif
GMIC_LIBC_STATIC_LIBS += $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(FFTW_LIBS) $(PNG_L IBS) $(JPEG_LIBS) # $(CURL_LIBS) $(TIFF_LIBS) GMIC_LIBC_STATIC_LIBS += $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(FFTW_LIBS) $(PNG_L IBS) $(JPEG_LIBS)
ifeq ($(OS),Unix) # Unix. ifeq ($(OS),Unix) # Unix.
GMIC_LIBC_STATIC_CFLAGS += $(OPENMP_CFLAGS) $(X11_CFLAGS) GMIC_LIBC_STATIC_CFLAGS += $(OPENMP_CFLAGS) $(X11_CFLAGS)
GMIC_LIBC_STATIC_LIBS += $(OPENMP_LIBS) $(X11_LIBS) GMIC_LIBC_STATIC_LIBS += $(OPENMP_LIBS) $(X11_LIBS)
else else
ifeq ($(OS),Darwin) # MacOSX. ifeq ($(OS),Darwin) # MacOSX.
GMIC_LIBC_STATIC_CFLAGS += $(X11_CFLAGS) GMIC_LIBC_STATIC_CFLAGS += $(X11_CFLAGS)
GMIC_LIBC_STATIC_LIBS += $(X11_LIBS) GMIC_LIBC_STATIC_LIBS += $(X11_LIBS)
else # Windows. else # Windows.
GMIC_LIBC_STATIC_CFLAGS += $(OPENMP_CFLAGS) $(GDI32_CFLAGS) GMIC_LIBC_STATIC_CFLAGS += $(OPENMP_CFLAGS) $(GDI32_CFLAGS)
GMIC_LIBC_STATIC_LIBS += $(OPENMP_LIBS) $(GDI32_LIBS) GMIC_LIBC_STATIC_LIBS += $(OPENMP_LIBS) $(GDI32_LIBS)
endif endif
endif endif
libcstatic: libc_static:
$(MAKE) "CFLAGS+=$(GMIC_LIBC_STATIC_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_ ifeq ($(OS),Windows)
LIBC_STATIC_LIBS) $(OPT_LIBS)" _lib _libcstatic rm libgmic.o
endif
$(MAKE) "CFLAGS+=$(GMIC_LIBC_STATIC_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMIC_
LIBC_STATIC_LIBS) $(OPT_LIBS)" _lib _libc_static
_libcstatic: libcgmic_files libcgmicstatic.so use_libcgmicstatic _libc_static: libcgmic_files libcgmic_static.so use_libcgmic_static
libcgmicstatic.so: libcgmicstatic.o libcgmic_static.so: libcgmic_static.o
ar rcs libcgmicstatic.a libcgmicstatic.o ar rcs libcgmic_static.a libcgmic_static.o
ifeq ($(OS),Darwin) ifeq ($(OS),Darwin)
$(CXX) -shared -static -o libcgmicstatic.so.$(VERSION) libcgmicstatic.o l ibgmic.o $(PIC) $(CFLAGS) $(LIBS) $(CXX) -shared -static -o libcgmic_static.so.$(VERSION) libcgmic_static.o libgmic.o $(PIC) $(CFLAGS) $(LIBS)
else else
ifeq ($(OS),Windows) ifeq ($(OS),Windows)
$(CXX) -shared -static -o libcgmicstatic.dll libcgmicstatic.o libgmic.o $ (PIC) -Wl,--output-def,libcgmicstatic.def,--out-implib,libcgmicstatic.a $(CFLAGS ) $(LIBS) $(CXX) -shared -static -o libcgmic_static-$(VERSION1).dll libcgmic_static .o libgmic.o $(PIC) -Wl,--output-def,libcgmic_static.def,--out-implib,libcgmic_s tatic.a $(CFLAGS) $(LIBS)
else else
$(CXX) -shared -Wl,-soname,libcgmicstatic.so.$(VERSION1) -o libcgmicstati c.so libcgmicstatic.o libgmic.o $(PIC) $(CFLAGS) $(LIBS) $(CXX) -shared -Wl,-soname,libcgmic_static.so.$(VERSION1) -o libcgmic_sta tic.so libcgmic_static.o libgmic.o $(PIC) $(CFLAGS) $(LIBS)
endif endif
endif endif
ifneq ($(OS),Windows) ifneq ($(OS),Windows)
ln -fs libcgmicstatic.so.$(VERSION) libcgmicstatic.so.$(VERSION1) ln -fs libcgmic_static.so.$(VERSION) libcgmic_static.so.$(VERSION1)
ln -fs libcgmicstatic.so.$(VERSION1) libcgmicstatic.so ln -fs libcgmic_static.so.$(VERSION1) libcgmic_static.so
endif endif
libcgmicstatic.o: gmic.cpp gmic.h gmic_stdlib.h CImg.h libcgmic_static.o: gmic_libc.cpp CImg.h gmic_libc.h gmic.h
$(CXX) -o libcgmicstatic.o -c gmic_libc.cpp $(PIC) $(CFLAGS) $(CXX) -o libcgmic_static.o -c gmic_libc.cpp $(PIC) $(CFLAGS)
use_libcgmicstatic: use_libcgmic.c use_libcgmic_static: use_libcgmic.c gmic_libc.h
$(CC) -std=c99 -o use_libcgmic_static use_libcgmic.c -lcgmicstatic $(LIBS $(CC) -std=c99 -o use_libcgmic_static use_libcgmic.c -lcgmic_static $(LIB
) S)
# G'MIC Online. # G'MIC Online.
#-------------- #--------------
GMICOL_LIB_PATH = /usr/lib/x86_64-linux-gnu/ GMICOL_LIB_PATH = /usr/lib/x86_64-linux-gnu/
GMICOL_CFLAGS = $(MANDATORY_CFLAGS) $(PARALLEL_CFLAGS) $(FFTW_CFLAGS) $(PNG_CFLA GS) $(JPEG_CFLAGS) $(ZLIB_CFLAGS) -Dcimg_display=0 # $(OPENMP_CFLAGS) GMICOL_CFLAGS = $(MANDATORY_CFLAGS) $(PARALLEL_CFLAGS) $(FFTW_CFLAGS) $(PNG_CFLA GS) $(JPEG_CFLAGS) $(ZLIB_CFLAGS) -Dcimg_display=0 # $(OPENMP_CFLAGS)
GMICOL_LIBS = $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(PNG_LIBS) $(JPEG_LIBS) $(ZLIB _LIBS) $(GMICOL_LIB_PATH)/libfftw3.a $(GMICOL_LIB_PATH)/libfftw3_threads.a # $(O PENMP_LIBS) GMICOL_LIBS = $(MANDATORY_LIBS) $(PARALLEL_LIBS) $(PNG_LIBS) $(JPEG_LIBS) $(ZLIB _LIBS) $(GMICOL_LIB_PATH)/libfftw3.a $(GMICOL_LIB_PATH)/libfftw3_threads.a # $(O PENMP_LIBS)
gmicol: gmicol:
$(MAKE) "CFLAGS+=$(GMICOL_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMICOL_LIBS) $( OPT_LIBS)" _cli $(MAKE) "CFLAGS+=$(GMICOL_CFLAGS) $(OPT_CFLAGS)" "LIBS+=$(GMICOL_LIBS) $( OPT_LIBS)" _cli
$(STRIP) gmic$(EXE) $(STRIP) gmic$(EXE)
# G'MIC-Qt. # G'MIC-Qt.
#---------- #----------
gimp: gmic_qt_files CImg.h gmic_stdlib_community.h gimp: gmic_qt_files CImg.h gmic_stdlib_community.h
cd ../gmic-qt && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) PRERELEAS E=$(PRERELEASE) GMIC_DYNAMIC_LINKING=on HOST=gimp gmic_qt.pro && $(MAKE) cd ../gmic-qt && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) PRERELEAS E=$(PRERELEASE) GMIC_DYNAMIC_LINKING=off HOST=gimp gmic_qt.pro && $(MAKE)
@echo "Executable 'gmic_gimp_qt' has been successfully compiled in '../gm ic-qt/'." @echo "Executable 'gmic_gimp_qt' has been successfully compiled in '../gm ic-qt/'."
gmic_qt: gmic_qt_files CImg.h gmic_stdlib_community.h gmic_qt: gmic_qt_files CImg.h gmic_stdlib_community.h
cd ../gmic-qt && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) PRERELEAS E=$(PRERELEASE) GMIC_DYNAMIC_LINKING=on HOST=none gmic_qt.pro && $(MAKE) cd ../gmic-qt && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) PRERELEAS E=$(PRERELEASE) GMIC_DYNAMIC_LINKING=off HOST=none gmic_qt.pro && $(MAKE)
@echo "Executable 'gmic_qt' has been successfully compiled in '../gmic-qt /'." @echo "Executable 'gmic_qt' has been successfully compiled in '../gmic-qt /'."
gmic_qt_files: gmic_qt_files:
@if [ ! -d ../gmic-qt ]; then \ @if [ ! -d ../gmic-qt ]; then \
if [ ! -d ../../gmic-qt ]; then \ if [ ! -d ../../gmic-qt ]; then \
echo "**"; \ echo "**"; \
echo "** Warning: folder 'gmic-qt' was not found !"; \ echo "** Warning: folder 'gmic-qt' was not found !"; \
echo "** It is mandatory to compile the G'MIC plug-in for GIMP ('gmic _gimp_qt'),"; \ echo "** It is mandatory to compile the G'MIC plug-in for GIMP ('gmic _gimp_qt'),"; \
echo "** as well as the standalone Qt-based interface 'gmic_qt'."; \ echo "** as well as the standalone Qt-based interface 'gmic_qt'."; \
echo "** Trying to retrieve it, with: $$ cd ../../ && git clone http s://github.com/c-koi/gmic-qt.git"; \ echo "** Trying to retrieve it, with: $$ cd ../../ && git clone http s://github.com/c-koi/gmic-qt.git"; \
skipping to change at line 563 skipping to change at line 572
echo "**"; \ echo "**"; \
else \ else \
echo "**"; \ echo "**"; \
echo "** Fatal error: Failed to retrieve folder 'gmic-qt', compila tion will probably ends shortly !"; \ echo "** Fatal error: Failed to retrieve folder 'gmic-qt', compila tion will probably ends shortly !"; \
echo "**"; \ echo "**"; \
fi; \ fi; \
fi; \ fi; \
if [ -d ../../gmic-qt ]; then ln -fs ../gmic-qt ..; fi \ if [ -d ../../gmic-qt ]; then ln -fs ../gmic-qt ..; fi \
fi fi
# G'MIC-Qt (shared).
#-------------------
gimp_shared: gmic_qt_files CImg.h gmic_stdlib_community.h
cd ../gmic-qt && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) PRERELEAS
E=$(PRERELEASE) GMIC_DYNAMIC_LINKING=on HOST=gimp gmic_qt.pro && $(MAKE)
@echo "Executable 'gmic_gimp_qt' has been successfully compiled in '../gm
ic-qt/'."
gmic_qt_shared: gmic_qt_files CImg.h gmic_stdlib_community.h
cd ../gmic-qt && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) PRERELEAS
E=$(PRERELEASE) GMIC_DYNAMIC_LINKING=on HOST=none gmic_qt.pro && $(MAKE)
@echo "Executable 'gmic_qt' has been successfully compiled in '../gmic-qt
/'."
# ZArt. # ZArt.
#------ #------
zart: zart_files CImg.h gmic_stdlib.h zart: zart_files CImg.h gmic_stdlib.h
ifeq ($(OS),Darwin) ifeq ($(OS),Darwin)
cd ../zart && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) zart.pro && $(MAKE) && $(STRIP) zart.app/Contents/MacOS/zart cd ../zart && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) zart.pro && $(MAKE) && $(STRIP) zart.app/Contents/MacOS/zart
else else
cd ../zart && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) zart.pro && $(MAKE) && $(STRIP) zart cd ../zart && $(QMAKE) CONFIG+=release GMIC_PATH=$(SRC_PATH) zart.pro && $(MAKE) && $(STRIP) zart
endif endif
@echo "Executable 'zart' has been successfully compiled in '../zart/'." @echo "Executable 'zart' has been successfully compiled in '../zart/'."
 End of changes. 25 change blocks. 
33 lines changed or deleted 57 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)