-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.master
47 lines (42 loc) · 1.4 KB
/
Makefile.master
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
PATHTOROOT = ../OpenFX/Support
ifeq ($(MINGW),1)
include ../Makefile.mingw
else
include $(PATHTOROOT)/Plugins/Makefile.master
endif
CXXFLAGS += -DOFX_EXTENSIONS_VEGAS -DOFX_EXTENSIONS_NUKE -DOFX_EXTENSIONS_TUTTLE -DOFX_EXTENSIONS_NATRON -I../SupportExt
VPATH += ../SupportExt
# Fontconfig
FONTCONFIG_CXXFLAGS = `pkg-config --cflags freetype2 fontconfig`
FONTCONFIG_LINKFLAGS = `pkg-config --libs freetype2 fontconfig`
ifeq ($(STATIC),1)
ifeq ($(MINGW),1)
FONTCONFIG_LINKFLAGS += -lfontconfig -lfreetype -lexpat -lpng -lz
endif
endif
# Magick++
ifeq ($(MAGICK),GraphicsMagick)
# Only for testing, GM don't support fontconfig so MagickText will not work.
MAGICK_CXXFLAGS = `GraphicsMagick++-config --cppflags --cxxflags`
MAGICK_LINKFLAGS = `GraphicsMagick++-config --ldflags --libs`
else
MAGICK_CXXFLAGS = `Magick++-config --cppflags --cxxflags`
MAGICK_LINKFLAGS = `Magick++-config --ldflags --libs`
ifeq ($(STATIC),1)
ifeq ($(OPENCL),1)
MAGICK_LINKFLAGS += -lXext -lXt -lSM -lICE -lX11
endif
endif
endif
ifeq ($(MINGW),1)
MAGICK_LINKFLAGS += -lgdi32
endif
ifeq ($(STATIC),1)
MAGICK_LINKFLAGS += -lgomp -lm -lpthread
ifeq ($(MINGW),1)
MAGICK_LINKFLAGS += -lfontconfig -lfreetype -lexpat -lpng -lz
endif
endif
# Gmic
GMIC_CXXFLAGS = -I. -ICImg -Dgmic_gimp -Dcimg_display=0 -Dgmic_build -Igmic/src -Dcimg_use_zlib -Dcimg_use_fftw3 -Dcimg_use_png
GMIC_LINKFLAGS = -lz -lfftw3 -lpng