-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.master
34 lines (27 loc) · 1008 Bytes
/
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
PATHTOROOT = $(SRCDIR)/Common/OpenFX/Support
include $(PATHTOROOT)/Plugins/Makefile.master
CXXFLAGS += -DOFX_EXTENSIONS_VEGAS -DOFX_EXTENSIONS_NUKE -DOFX_EXTENSIONS_TUTTLE -DOFX_EXTENSIONS_NATRON -DOFX_SUPPORTS_OPENGLRENDER -I$(SRCDIR)/Common/OpenFX-SupportExt
VPATH += $(SRCDIR)/Common/OpenFX-SupportExt
# ImageMagick
ifeq ($(MAGICK),)
MAGICK_FLAGS := ""
else
MAGICK_FLAGS := "."$(MAGICK)
endif
MAGICK_CXXFLAGS = $(shell pkg-config Magick++-7$(MAGICK_FLAGS) --cflags)
MAGICK_LINKFLAGS = $(shell pkg-config Magick++-7$(MAGICK_FLAGS) --libs --static)
# libxml2
XML_CXXFLAGS= $(shell pkg-config libxml-2.0 --cflags)
XML_LINKFLAGS= $(shell pkg-config libxml-2.0 --libs --static)
# curl
CURL_CXXFLAGS += $(shell pkg-config libcurl --cflags)
CURL_LINKFLAGS += $(shell pkg-config libcurl --libs --static)
# MinGW
ifeq ($(MINGW),1)
MAGICK_LINKFLAGS += -lgdi32 -lz -lws2_32 -loleaut32
endif
# FreeBSD
ifeq ($(FREEBSD),1)
CXXFLAGS += -I/usr/local/include -std=c++11
LDFLAGS += -L/usr/local/lib
endif