SubDir TOP ;

UseAutoconf ;

Package license.txt readme.txt ;

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

LIB_DIRS = platform/sdl util graphics graphics/gl sound sound/openal xml glew ;
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 ;
IncludeDir glestlib : $(LIB_INCLUDE_DIRS) ;

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

Application glest : [ Wildcard *.cpp *.h ] ;
LinkWith glest : glestlib ;
ExternalLibs glest : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL ;
IncludeDir glest : ../shared_lib/include/$(LIB_INCLUDE_DIRS) ;

