mirror of
https://github.com/drasko/codezero.git
synced 2026-01-16 12:53:16 +01:00
Add in the task support libraries.
This commit is contained in:
@@ -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' )
|
||||
|
||||
Reference in New Issue
Block a user