SubDir TOP ; UseAutoconf ; Package license.txt readme.txt ; #### Library #### SubDir TOP shared_lib sources ; 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) ; #ExternalLibs strefloplib : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL IRCCLIENT ; ExternalLibs strefloplib : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL ; IncludeDir strefloplib : $(LIB_STREFLOP_INCLUDE_DIRS) ; #### Library #### SubDir TOP shared_lib sources ; LIB_DIRS = platform/common platform/sdl platform/posix util graphics graphics/gl sound sound/openal xml glew lua streflop streflop/libm_flt32_source ; LIB_INCLUDE_DIRS = ../include/$(LIB_DIRS) ; for i in $(LIB_DIRS) { LIB_SOURCES += [ Wildcard $(i) : *.c *.cpp *.h ] ; } Library glestlib : $(LIB_SOURCES) ; LinkWith glestlib : strefloplib ; ExternalLibs glestlib : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL ; 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) ; LinkWith glest.bin : glestlib strefloplib ; ExternalLibs glest.bin : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL X11 ; 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) ; LinkWith glest_editor : glestlib strefloplib ; ExternalLibs glest_editor : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL WX CURL ; IncludeDir glest_editor : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_MAP_DIRS) ; } ### Viewer ### if $(WX_AVAILABLE) = "yes" { SubDir TOP g3d_viewer ; GLEST_VIEWER_DIRS = . ; for i in $(GLEST_VIEWER_DIRS) { GLEST_VIEWER_SOURCES += [ Wildcard $(i) : *.cpp *.h ] ; } Application glest_g3dviewer : $(GLEST_VIEWER_SOURCES) ../glest_game/graphics/unit_particle_type.cpp ../glest_game/graphics/particle_type.cpp ; LinkWith glest_g3dviewer : glestlib strefloplib ; ExternalLibs glest_g3dviewer : SDL GL GLU XERCES VORBIS VORBISFILE OGG OPENAL LUA JPEG PNG CURL WX X11 ; IncludeDir glest_g3dviewer : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_VIEWER_DIRS) ../glest_game/graphics ../glest_game/global ../glest_game/sound ../glest_game/game ; } ### 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) ; LinkWith glest_configurator : glestlib strefloplib ; ExternalLibs glest_configurator : SDL GL GLU XERCES WX CURL ; IncludeDir glest_configurator : ../shared_lib/include/$(LIB_INCLUDE_DIRS) $(GLEST_CONFIG_DIRS) ;