File: Jamfile

package info (click to toggle)
glest 3.2.2-2
  • links: PTS, VCS
  • area: contrib
  • in suites: squeeze
  • size: 2,800 kB
  • ctags: 6,581
  • sloc: cpp: 32,575; sh: 8,341; makefile: 63
file content (75 lines) | stat: -rw-r--r-- 1,421 bytes parent folder | download
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
SubDir TOP ;

UseAutoconf ;

Package license.txt readme.txt ;

#### Library ####
SubDir TOP shared_lib sources ;

LIB_DIRS =
	platform/sdl
	platform/posix
	util
	graphics
	graphics/gl
	sound
	sound/openal
	xml
	glew
	lua
;
LIB_INCLUDE_DIRS = ../include/$(LIB_DIRS) ;

for i in $(LIB_DIRS) {
  LIB_SOURCES += [ Wildcard $(i) : *.c *.cpp *.h ] ;
}

Library glestlib : $(LIB_SOURCES) ;
ExternalLibs glestlib : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA ;
IncludeDir glestlib : $(LIB_INCLUDE_DIRS) ;

#### Game ####
SubDir TOP glest_game ;

GLEST_DIRS = 
	.
	ai
	facilities
	game
	global
	graphics
	gui
	main
	menu
	network
	sound
	type_instances
	types
	world
;

for i in $(GLEST_DIRS) {
  GLEST_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ;
}

Application glest : $(GLEST_SOURCES) ;
LinkWith glest : glestlib ;
ExternalLibs glest : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA ;
IncludeDir glest : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_DIRS) ;

#### Editor ####
if $(WX_AVAILABLE) = "yes" {
  SubDir TOP glest_map_editor ;

  GLEST_MAP_DIRS = . ;
  for i in $(GLEST_DIRS) {
    GLEST_MAP_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ;
  }

  Application glest_editor : $(GLEST_MAP_SOURCES) ;
  LinkWith glest_editor : glestlib ;
  ExternalLibs glest_editor : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL WX ;
  IncludeDir glest_editor : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_MAP_DIRS) ;
}