2010-03-13 11:39:22 +01:00
|
|
|
SubDir TOP ;
|
|
|
|
|
|
|
|
UseAutoconf ;
|
|
|
|
|
|
|
|
Package license.txt readme.txt ;
|
|
|
|
|
2010-09-14 02:43:09 +02:00
|
|
|
#ALWAYS getSVNVersion : @getSVNVersion_action ;
|
|
|
|
|
|
|
|
rule getSVNVersion {
|
|
|
|
echo 'hi' ;
|
|
|
|
}
|
|
|
|
|
|
|
|
actions getSVNVersion_action
|
|
|
|
{
|
|
|
|
# echo '"'`svnversion`'"' >sources/glest_game/facilities/svn_version_tmp.h
|
|
|
|
echo '"'`svnversion`'"' ;
|
|
|
|
echo 'hi' ;
|
|
|
|
# if diff -N svn_version_tmp.hpp src/svn_version.hpp >/dev/null; then
|
|
|
|
# rm svn_version_tmp.hpp
|
|
|
|
# else
|
|
|
|
# mv svn_version_tmp.hpp src/svn_version.hpp
|
|
|
|
# fi
|
|
|
|
}
|
|
|
|
|
|
|
|
ALWAYS getSVNVersion ;
|
|
|
|
|
2010-09-16 21:02:55 +02:00
|
|
|
#### Library ####
|
2010-05-01 22:14:25 +02:00
|
|
|
|
2010-03-13 11:39:22 +01:00
|
|
|
SubDir TOP shared_lib sources ;
|
|
|
|
|
2010-04-24 05:57:38 +02:00
|
|
|
LIB_STREFLOP_DIRS =
|
|
|
|
streflop/libm/flt-32
|
|
|
|
streflop/libm/headers
|
|
|
|
;
|
|
|
|
|
|
|
|
LIB_STREFLOP_INCLUDE_DIRS = ../include/$(LIB_STREFLOP_DIRS) ;
|
|
|
|
|
|
|
|
for i in $(LIB_STREFLOP_DIRS) {
|
|
|
|
LIB_STREFLOP_SOURCES += [ Wildcard $(i) : *.c *.cpp *.h ] ;
|
|
|
|
}
|
|
|
|
|
|
|
|
Library strefloplib : $(LIB_STREFLOP_SOURCES) ;
|
2010-06-25 00:51:38 +02:00
|
|
|
#ExternalLibs strefloplib : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL IRCCLIENT ;
|
2010-05-11 07:39:00 +02:00
|
|
|
ExternalLibs strefloplib : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL ;
|
2010-04-24 05:57:38 +02:00
|
|
|
IncludeDir strefloplib : $(LIB_STREFLOP_INCLUDE_DIRS) ;
|
|
|
|
|
|
|
|
#### Library ####
|
|
|
|
SubDir TOP shared_lib sources ;
|
|
|
|
|
2010-03-13 11:39:22 +01:00
|
|
|
LIB_DIRS =
|
2010-04-30 20:16:54 +02:00
|
|
|
platform/common
|
2010-03-13 11:39:22 +01:00
|
|
|
platform/sdl
|
|
|
|
platform/posix
|
2010-09-16 17:15:42 +02:00
|
|
|
platform/unix
|
2010-03-13 11:39:22 +01:00
|
|
|
util
|
|
|
|
graphics
|
|
|
|
graphics/gl
|
|
|
|
sound
|
|
|
|
sound/openal
|
|
|
|
xml
|
2010-09-14 02:43:09 +02:00
|
|
|
map
|
2010-03-13 11:39:22 +01:00
|
|
|
glew
|
|
|
|
lua
|
2010-04-24 05:57:38 +02:00
|
|
|
streflop
|
|
|
|
streflop/libm_flt32_source
|
2010-03-13 11:39:22 +01:00
|
|
|
;
|
2010-04-24 05:57:38 +02:00
|
|
|
|
2010-03-13 11:39:22 +01:00
|
|
|
LIB_INCLUDE_DIRS = ../include/$(LIB_DIRS) ;
|
|
|
|
|
|
|
|
for i in $(LIB_DIRS) {
|
|
|
|
LIB_SOURCES += [ Wildcard $(i) : *.c *.cpp *.h ] ;
|
|
|
|
}
|
|
|
|
|
2010-04-24 05:57:38 +02:00
|
|
|
Library glestlib : $(LIB_SOURCES) ;
|
|
|
|
LinkWith glestlib : strefloplib ;
|
2010-05-11 07:39:00 +02:00
|
|
|
ExternalLibs glestlib : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL ;
|
2010-03-13 11:39:22 +01:00
|
|
|
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.bin : $(GLEST_SOURCES) ;
|
2010-04-24 05:57:38 +02:00
|
|
|
LinkWith glest.bin : glestlib strefloplib ;
|
2010-06-25 00:51:38 +02:00
|
|
|
ExternalLibs glest.bin : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL X11 ;
|
2010-03-13 11:39:22 +01:00
|
|
|
IncludeDir glest.bin : ../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) ;
|
2010-04-24 05:57:38 +02:00
|
|
|
LinkWith glest_editor : glestlib strefloplib ;
|
2010-05-11 07:39:00 +02:00
|
|
|
ExternalLibs glest_editor : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL WX CURL ;
|
2010-03-13 11:39:22 +01:00
|
|
|
IncludeDir glest_editor : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_MAP_DIRS) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
### Viewer ###
|
2010-03-13 23:00:01 +01:00
|
|
|
if $(WX_AVAILABLE) = "yes" {
|
2010-03-13 11:39:22 +01:00
|
|
|
SubDir TOP g3d_viewer ;
|
|
|
|
|
2010-05-25 20:06:42 +02:00
|
|
|
GLEST_VIEWER_DIRS =
|
|
|
|
.
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
for i in $(GLEST_VIEWER_DIRS) {
|
2010-03-13 11:39:22 +01:00
|
|
|
GLEST_VIEWER_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ;
|
|
|
|
}
|
|
|
|
|
2010-06-24 12:52:58 +02:00
|
|
|
Application glest_g3dviewer : $(GLEST_VIEWER_SOURCES) ../glest_game/graphics/unit_particle_type.cpp ../glest_game/graphics/particle_type.cpp ;
|
2010-04-24 05:57:38 +02:00
|
|
|
LinkWith glest_g3dviewer : glestlib strefloplib ;
|
2010-06-25 00:51:38 +02:00
|
|
|
ExternalLibs glest_g3dviewer : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL WX X11 ;
|
2010-05-25 20:06:42 +02:00
|
|
|
IncludeDir glest_g3dviewer : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_VIEWER_DIRS) ../glest_game/graphics ../glest_game/global ../glest_game/sound ../glest_game/game ;
|
2010-03-13 23:00:01 +01:00
|
|
|
}
|
2010-03-13 11:39:22 +01:00
|
|
|
|
|
|
|
### Configurator ###
|
|
|
|
SubDir TOP configurator ;
|
|
|
|
|
|
|
|
GLEST_CONFIG_DIRS = . ;
|
|
|
|
for i in $(GLEST_DIRS) {
|
|
|
|
GLEST_CONFIG_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ;
|
|
|
|
}
|
|
|
|
|
|
|
|
Application glest_configurator : $(GLEST_CONFIG_SOURCES) ;
|
2010-04-24 05:57:38 +02:00
|
|
|
LinkWith glest_configurator : glestlib strefloplib ;
|
2010-05-11 07:39:00 +02:00
|
|
|
ExternalLibs glest_configurator : SDL GL GLU XERCES WX CURL ;
|
2010-03-13 11:39:22 +01:00
|
|
|
IncludeDir glest_configurator : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_CONFIG_DIRS) ;
|
|
|
|
|