Add in the task support libraries.

This commit is contained in:
Russel Winder
2009-08-02 13:46:07 +01:00
parent 26b3ea58a6
commit e7820903d9
4 changed files with 142 additions and 17 deletions

View File

@@ -20,8 +20,14 @@
Import ( 'environment' )
e = environment.Clone ( )
e.Append ( CPPPATH = [ '#' + 'tasks/libposix/include' , 'include/libl4/arch' ] )
e.Append ( CPPPATH = [ 'include' ] )
library = e.StaticLibrary ( 'l4' , Glob ( 'src/*.c' ) + Glob ( 'src/' + environment['ARCH'] + '/*.[cS]' ) )
# TODO: There are errors in this code that -Werror gives problems with.
e['CCFLAGS'] = [ '-g' , '-nostdlib' , '-Wall' , '-ffreestanding' , '-std=gnu99' ]
objects = e.StaticObject ( Glob ( 'src/*.c' ) + Glob ( 'src/' + e['ARCH'] + '/*.[cS]' ) )
Depends ( objects , e['configFiles'] )
library = e.StaticLibrary ( 'l4' , objects )
Return ( 'library' )