mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
Build and install clib2. No gcc support yet.
This commit is contained in:
@@ -445,13 +445,15 @@ def configure(name, *confopts, **kwargs):
|
||||
|
||||
|
||||
@recipe('make', 2)
|
||||
def make(name, target=None, **makevars):
|
||||
def make(name, target=None, makefile=None, **makevars):
|
||||
info('running make "%s"', target)
|
||||
|
||||
with cwd(path.join('{build}', name)):
|
||||
args = ['%s=%s' % item for item in makevars.items()]
|
||||
if target is not None:
|
||||
args = [target] + args
|
||||
if makefile is not None:
|
||||
args = ['-f', makefile] + args
|
||||
execute('make', *args)
|
||||
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ URLS = \
|
||||
('git://github.com/cahirwpz/amigaos-gcc-2.95.3', 'gcc-2.95.3'),
|
||||
('http://downloads.sourceforge.net/project/flex/flex/2.5.4.a/flex-2.5.4a.tar.gz',
|
||||
'flex-2.5.4.tar.gz'),
|
||||
'git://github.com/adtools/clib2',
|
||||
'git://github.com/cahirwpz/libnix',
|
||||
'git://github.com/cahirwpz/fd2sfd',
|
||||
'git://github.com/adtools/sfdc',
|
||||
@@ -105,6 +106,15 @@ def install_libamiga():
|
||||
copytree('{sources}/libamiga/lib', '{target}/lib')
|
||||
|
||||
|
||||
@recipe('clib2-install')
|
||||
def install_clib2():
|
||||
info('installing clib2')
|
||||
|
||||
with cwd('{target}/m68k-amigaos/clib2'):
|
||||
copytree('{build}/clib2/lib', 'lib')
|
||||
copytree('{build}/clib2/include', 'include')
|
||||
|
||||
|
||||
@recipe('vbcc-build')
|
||||
def build_vbcc():
|
||||
copytree('{sources}/vbcc', '{build}/vbcc')
|
||||
@@ -370,6 +380,10 @@ def build():
|
||||
LD='m68k-amigaos-ld')
|
||||
make('libnix', 'install')
|
||||
|
||||
unpack('clib2', work_dir='{build}', top_dir='library')
|
||||
make('clib2', makefile='GNUmakefile.68k')
|
||||
install_clib2()
|
||||
|
||||
copy('{sources}/libnix/sources/headers/stabs.h',
|
||||
'{target}/m68k-amigaos/sys-include')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user