mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
20 lines
426 B
Python
20 lines
426 B
Python
# -*- mode: python; coding: utf-8; -*-
|
|
#
|
|
# Codezero -- a microkernel for embedded systems.
|
|
#
|
|
# Copyright © 2009 B Labs Ltd
|
|
#
|
|
|
|
Import('env')
|
|
|
|
arch = 'arm'
|
|
e = env.Clone()
|
|
#e.Append(CPPPATH = ['include', '#libs/c/include', '#libs/c/include/arch/' + arch])
|
|
e.Append(CPPPATH = ['include'])
|
|
e.Append(CCFLAGS = '-nostdinc')
|
|
|
|
objects = e.StaticObject(Glob('src/*.c'))
|
|
library = e.StaticLibrary('elf', objects)
|
|
|
|
Return('library')
|