2
# --------------------------------------------------------------------
6
# --------------------------------------------------------------------
8
# Include and linking options for libraries
10
# We just query "pkg-config" for the correct flags. If this doesn't
11
# work on your system, enter the correct linker flags and directories
16
FREETYPE_CFLAGS ?= $(shell pkg-config --cflags freetype2)
17
FREETYPE_LIBS ?= $(shell pkg-config --libs freetype2)
18
CAIRO_CFLAGS ?= $(shell pkg-config --cflags cairo)
19
CAIRO_LIBS ?= $(shell pkg-config --libs cairo)
21
LUA_CFLAGS ?= $(shell pkg-config --cflags lua5.1)
22
LUA_LIBS ?= $(shell pkg-config --libs lua5.1)
23
QT_CFLAGS ?= $(shell pkg-config --cflags QtGui QtCore)
24
QT_LIBS ?= $(shell pkg-config --libs QtGui QtCore)
26
# MOC is the Qt meta-object compiler. On Debian/Ubuntu, it is
27
# installed as "moc-qt4" to resolve the name conflict with Qt3's
28
# "moc". If that is not right for your system (i.e. "moc-qt4" does
29
# not exist), change it to "moc".
35
# Settings for Mac OS 10.6
38
LUA_CFLAGS = $(shell pkg-config --cflags lua)
39
LUA_LIBS = $(shell pkg-config --libs lua)
40
QT_CFLAGS = -I/Library/Frameworks/QtCore.framework/Versions/4/Headers \
41
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
42
QT_LIBS = -F/Library/Frameworks -L/Library/Frameworks \
43
-framework QtCore -framework ApplicationServices \
44
-framework QtGui -framework AppKit -framework Cocoa -lz -lm
48
# --------------------------------------------------------------------
50
# The C++ compiler (only g++ is properly tested)
54
# Special compilation flags for compiling shared libraries
55
# 64-bit Linux requires shared libraries to be compiled with -fPIC
56
# (and it doesn't hurt on 32bit Linux)
59
# --------------------------------------------------------------------
65
# IPEPREFIX is the global prefix for the Ipe directory structure, which
66
# you can override individually for any of the specific directories.
67
# You could choose "/usr/local" or "/opt/ipe-7.0", or
68
# even "/usr", or "$(HOME)/ipe-7.0" if you have to install in your home
71
# If you are installing Ipe in a networked environment, keep in mind
72
# that executables, ipelets, and Ipe library are machine-dependent,
73
# while the documentation and fonts can be shared.
75
#IPEPREFIX := /usr/local
77
#IPEPREFIX := /opt/ipe7
79
ifeq "$(IPEPREFIX)" ""
80
$(error You need to specify IPEPREFIX!)
83
# Where Ipe executables will be installed ('ipe', 'ipetoipe' etc)
84
IPEBINDIR = $(IPEPREFIX)/bin
86
# Where the Ipe libraries will be installed ('libipe.so' etc.)
87
IPELIBDIR = $(IPEPREFIX)/lib
89
# Where the header files for Ipelib will be installed:
90
IPEHEADERDIR = $(IPEPREFIX)/include
92
# Where Ipelets will be installed:
93
IPELETDIR = $(IPEPREFIX)/lib/ipe/$(IPEVERS)/ipelets
95
# List of paths where Ipe will search for Ipelets:
96
# (Individual paths are separated by ";" on both Windows and Unix!)
97
IPELETPATH = $(IPELETDIR)
99
# Where Lua code will be installed
100
# (This is the part of the Ipe program written in the Lua language)
101
IPELUADIR = $(IPEPREFIX)/share/ipe/$(IPEVERS)/lua
103
# List of patterns where Ipe will search for Lua code:
104
# (Individual paths are separated by ";" on both Windows and Unix!)
105
IPELUAPATH = $(IPELUADIR)/?.lua
107
# Directory where Ipe will look for style files
108
# (standard Ipe styles will also be installed here)
110
IPESTYLES = $(IPEPREFIX)/share/ipe/$(IPEVERS)/styles
112
# IPEICONDIR contains the icons used in the Ipe user interface
114
IPEICONDIR = $(IPEPREFIX)/share/ipe/$(IPEVERS)/icons
116
# IPEDOCDIR contains the Ipe documentation (mostly html files)
118
IPEDOCDIR = $(IPEPREFIX)/share/ipe/$(IPEVERS)/doc
120
# The Ipe manual pages are installed into IPEMANDIR
122
IPEMANDIR = $(IPEPREFIX)/share/man/man1
124
# The full path to the Ipe fontmap
126
IPEFONTMAP = $(IPEPREFIX)/share/ipe/$(IPEVERS)/fontmap.xml
128
# --------------------------------------------------------------------