forked from garglk/garglk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jamfile
108 lines (97 loc) · 2.5 KB
/
Jamfile
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#
# Include all the sub-projects
# Then make install rules to copy exe files into bin
#
SubDir TOP ;
SubInclude TOP garglk ;
SubInclude TOP terps ;
SubInclude TOP tads ;
SubInclude TOP support ;
# If SYSTEM is set, use values for a system wide install
if $(SYSTEM)
{
BINDIR = /usr/local/libexec/gargoyle ;
APPDIR = /usr/local/libexec/gargoyle ;
LIBDIR = /usr/local/lib/gargoyle ;
DESTDIR = / ;
EXEMODE = 755 ;
FILEMODE = 755 ;
}
# Otherwise use _BINDIR, _APPDIR, and _LIBDIR
# to populate BINDIR, APPDIR, and LIBDIR with
# values supplied on the command line (if any)
else
{
if $(DESTDIR)
{ ITOP = [ FDirName $(DESTDIR) ] ; }
else
{ ITOP = [ FDirName $(TOP) build dist ] ; }
BINDIR = [ FPrependRoot $(ITOP) : $(_BINDIR) ] ;
APPDIR = [ FPrependRoot $(ITOP) : $(_APPDIR) ] ;
LIBDIR = [ FPrependRoot $(ITOP) : $(_LIBDIR) ] ;
}
for APP in $(APPS)
{
LinkLibraries $(APP) : libgarglkmain ;
if $(STATIC)
{
if $(USEBABEL)
{
LinkLibraries $(APP) : libgarglk babel_static ;
}
else
{
LinkLibraries $(APP) : libgarglk ;
}
}
else
{
SharedLinkLibraries $(APP) : libgarglk ;
}
InstallBin $(APPDIR) : $(APP)$(SUFEXE) ;
}
if $(OS) = MINGW
{
# support binaries
SEARCH_SOURCE +=
[ FDirName $(TOP) support freetype ]
[ FDirName $(TOP) support libjpeg ]
[ FDirName $(TOP) support libpng ]
[ FDirName $(TOP) support zlib ]
;
InstallLib $(LIBDIR) : freetype6.dll ;
InstallLib $(LIBDIR) : libjpeg-8.dll ;
InstallLib $(LIBDIR) : libpng14-14.dll ;
InstallLib $(LIBDIR) : zlib1.dll ;
}
if $(OS) = MINGW && $(USESDL) = yes
{
SharedLinkLibrariesOnSharedLibrary libgarglk : SDL_sound ;
SEARCH_SOURCE += [ FDirName $(TOP) support sdl ] ;
InstallLib $(LIBDIR) : SDL_sound.dll ;
InstallLib $(LIBDIR) : SDL_mixer.dll ;
InstallLib $(LIBDIR) : SDL.dll ;
InstallLib $(LIBDIR) : smpeg.dll ;
InstallLib $(LIBDIR) : libogg-0.dll ;
InstallLib $(LIBDIR) : libvorbis-0.dll ;
InstallLib $(LIBDIR) : libvorbisfile-3.dll ;
InstallLib $(LIBDIR) : mikmod.dll ;
}
if $(STATIC)
{
if $(USEBABEL)
{
LinkLibraries gargoyle : libgarglk babel_static ;
}
else
{
LinkLibraries gargoyle : libgarglk ;
}
InstallBin $(BINDIR) : gargoyle$(SUFEXE) ;
}
else
{
SharedLinkLibraries gargoyle : libgarglk ;
InstallBin $(BINDIR) : gargoyle$(SUFEXE) ;
InstallLib $(LIBDIR) : libgarglk$(SUFDLL) ;
}