forked from c-koi/zart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.fast
55 lines (47 loc) · 2.14 KB
/
Makefile.fast
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- mode: makefile -*-
#
# +------------------------------------------------------------------+
# | Warning |
# | |
# | This Makefile is only for testing purpose during development. |
# | It is aimed at quickly building an UNOPTIMIZED version of gmic. |
# | It is thus not suitable for building a release of ZArt. For |
# | this you should use the classical qmake/make pair of commands. |
# +------------------------------------------------------------------+
#
JOBS=1
#
# Build is in debug mode by default.
#
ifeq ($(strip $(RELEASE)),1)
CONFIG=release
OPT_CFLAGS=""
else
CONFIG=debug
OPT_CFLAGS="-g"
endif
QMAKE=qmake-qt5
.PHONY: all clean
all: zart
clean:
rm -rf .obj .moc .ui .qrc ../gmic/src/libgmic.o
zart: zart.pro .obj/gmic.o
$(QMAKE) CONFIG+=$(CONFIG) || $(QMAKE) CONFIG+=$(CONFIG)
+$(MAKE) -j $(JOBS)
.obj/gmic.o: ../gmic/src/gmic.h ../gmic/src/gmic.cpp
@echo "/------------------------------------------------------------------\\"
@echo "| Warning |"
@echo "| |"
@echo "| This Makefile is only for testing purpose during development. |"
@echo "| It is aimed at quickly building an UNOPTIMIZED version of gmic. |"
@echo "| It is thus not suitable for building a release of ZArt. For |"
@echo "| this you should use the classical qmake/make pair of commands. |"
@echo "\\------------------------------------------------------------------/"
@echo
@echo "/------------------------------------------------------------------\\"
@echo " Compiling in "$(CONFIG)" mode"
@echo "\\------------------------------------------------------------------/"
-test ! -d .obj && mkdir .obj
-test -e ../gmic/src/libgmic.o && ( strings ../gmic/src/libgmic.o | grep -q png_write_image ) && rm -f ../gmic/src/libgmic.o
+$(MAKE) -C ../gmic/src X11_CFLAGS="" JPEG_CFLAGS="" TIFF_CFLAGS="" PNG_CFLAGS="" CURL_CFLAGS="" OPT_CFLAGS="$(OPT_CFLAGS)" lib
cp ../gmic/src/libgmic.o .obj/gmic.o