-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJamrules
66 lines (51 loc) · 1.39 KB
/
Jamrules
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
56
57
58
59
60
61
62
63
64
65
66
# FreeType 2 Demos JamRules (c) 2001 David Turner
#
# This file contains the Jam rules needed to build the FreeType 2 Demos.
# It is shared by all Jamfiles and is included only once in the build
# process.
#
# Determine prefix of library file. We must use "libxxxxx" on Unix systems,
# while all other simply use the real name.
#
if $(UNIX)
{
LIBPREFIX ?= lib ;
}
else
{
LIBPREFIX ?= "" ;
}
FT2_TOP ?= [ FDirName $(DOTDOT) freetype2 ] ;
# FT2_INCLUDE contains the location of the public FreeType 2 header files
# it is ../freetype2/include by default
#
FT2_INCLUDE ?= [ FDirName $(FT2_TOP) include ] ;
# FT2_LIB contains the path to the FreeType 2 library object
#
FT2_LIB ?= [ FDirName $(FT2_TOP) objs $(LIBPREFIX)freetype$(SUFLIB) ] ;
# X11_LINKLIBS is only used when compiling the X11 graphics back-end
# this should be generated from a "configure" script on Unix
#
X11_LINKLIBS = -lX11 -L/usr/X11R6/lib ;
# FT2DEMO_TOP contains the location of the FreeType demos directory.
#
FT2DEMO_TOP ?= $(DOT) ;
# Define a new rule used to declare a sub directory of the Nirvana source
# tree.
#
rule FT2DEMO_SubDir
{
if $(FT2DEMO_TOP) = $(DOT)
{
return [ FDirName $(<) ] ;
}
else
{
return [ FDirName $(FT2DEMO_TOP) $(<) ] ;
}
}
# We also set ALL_LOCATE_TARGET in order to place all object and library
# files in "objs".
#
ALL_LOCATE_TARGET ?= [ FT2DEMO_SubDir objs ] ;
# end of Jamrules