SubInclude TOP src squirrel ;
SubInclude TOP src scripting ;
-sources =
- [ Wildcard *.cpp *.h ]
- [ Wildcard audio : *.cpp *.h ]
- [ Wildcard badguy : *.cpp *.h ]
- [ Wildcard control : *.cpp *.h ]
- [ Wildcard gui : *.cpp *.h ]
- [ Wildcard lisp : *.cpp *.h ]
- [ Wildcard math : *.cpp *.h ]
- [ Wildcard object : *.cpp *.h ]
- [ Wildcard physfs : *.cpp *.h ]
- [ Wildcard sprite : *.cpp *.h ]
- [ Wildcard tinygettext : *.cpp *.h ]
- [ Wildcard trigger : *.cpp *.h ]
- [ Wildcard video : *.cpp *.h ]
-;
+#------------------------
+# SuperTux ARCHIVE FILES:
+#------------------------
+# the following keeps the .o files after an archive file (.a) is created
+NOARUPDATE = true ;
+
+for i in audio badguy control gui lisp math object physfs sprite
+ tinygettext trigger video worldmap
+{
+ sources = [ Wildcard $(i) : *.cpp *.hpp ] ;
+ Library $(i) : $(sources) : noinstall ;
+ TRANSLATABLE_SOURCES += [ SearchSource $(sources) ] ;
+}
+
+ExternalLibs audio badguy control gui lisp math object physfs sprite
+ tinygettext trigger video worldmap
+ : SDL SDLIMAGE GL OPENAL VORBIS VORBISFILE OGG ICONV PHYSFS BINRELOC ;
+IncludeDir audio badguy control gui lisp math object physfs sprite
+ tinygettext trigger video worldmap
+ : squirrel/include squirrel ;
+
+#----------------------
+# SuperTux Application:
+#----------------------
+sources = [ Wildcard *.cpp *.hpp ] ;
TRANSLATABLE_SOURCES += [ SearchSource $(sources) ] ;
Application supertux : $(sources) $(wrapper_objects) ;
C++Flags supertux : -DAPPDATADIR='\"$(appdatadir)\"' ;
LinkWith supertux : squirrel ;
-ExternalLibs supertux : SDL SDLMIXER SDLIMAGE GL ICONV PHYSFS BINRELOC ;
+ExternalLibs supertux : SDL SDLIMAGE GL OPENAL VORBIS VORBISFILE OGG ICONV PHYSFS BINRELOC ;
Help supertux : "Build the supertux executable" ;
-IncludeDir supertux : squirrel/include ;
+IncludeDir supertux : squirrel/include squirrel ;
+LinkWithWholeArchive supertux : audio badguy control gui lisp math object physfs sprite
+ tinygettext trigger video worldmap ;