Skip to content

Commit 485a13e

Browse files
committed
Fix issues introduced by 8a7eeb3
1 parent d8d27e0 commit 485a13e

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

examples/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ CXX = m68k-amigaos-g++ -g
33
CFLAGS = -Os -Wall -fomit-frame-pointer
44
CXXFLAGS = -Os -Wall -fomit-frame-pointer
55

6-
BINS = hello-ks13 hello-ks20 hello-ks20.clib2 hello-stdio hello-stdio.clib2 \
7-
hello-stdio.nix13 hello-iostream hello-mui test-mmu \
8-
simple.library simple.library_r simple.device
6+
BINS = hello-ks13 hello-ks20 hello-ks20.clib2 \
7+
hello-stdio hello-stdio.clib2 hello-stdio.nix13 \
8+
hello-mui test-mmu \
9+
simple.library simple.library_r simple.device \
10+
hello-iostream
911

1012
all: $(BINS) $(OBJS)
1113

toolchain-m68k

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def install_vbcc_toolchain():
150150
vasm = textfile(
151151
'#!/bin/sh',
152152
'',
153-
'{prefix}/{target}/vasmm68k_mot -I{prefix}/ndk/include "$@"')
153+
'{prefix}/{target}/vasmm68k_mot -I{prefix}/{target}/ndk/include "$@"')
154154
chmod(vasm, 0755)
155155
move(vasm, '{prefix}/bin/vasm')
156156

@@ -172,13 +172,13 @@ def install_vbcc_toolchain():
172172
'{prefix}/{target}/vbcc/lib')
173173
config = textfile(
174174
('-cc={prefix}/{target}/bin/vbccm68k -hunkdebug %s -o= %s %s -O=%ld' +
175-
' -quiet -I{prefix}/{target}/vbcc/include -I{prefix}/ndk/include'),
175+
' -quiet -I{prefix}/{target}/vbcc/include -I{prefix}/{target}/ndk/include'),
176176
('-ccv={prefix}/{target}/bin/vbccm68k -hunkdebug %s -o= %s %s -O=%ld' +
177-
' -I{prefix}/{target}/vbcc/include -I{prefix}/ndk/include'),
177+
' -I{prefix}/{target}/vbcc/include -I{prefix}/{target}/ndk/include'),
178178
('-as={prefix}/{target}/bin/vasmm68k_mot -Fhunk -phxass -opt-fconst' +
179-
' -nowarn=62 -quiet -I{prefix}/ndk/include %s -o %s'),
179+
' -nowarn=62 -quiet -I{prefix}/{target}/ndk/include %s -o %s'),
180180
('-asv={prefix}/{target}/bin/vasmm68k_mot -Fhunk -phxass -opt-fconst' +
181-
' -nowarn=62 -I{prefix}/ndk/include %s -o %s'),
181+
' -nowarn=62 -I{prefix}/{target}/ndk/include %s -o %s'),
182182
'-rm=rm %s',
183183
'-rmv=rm -v %s',
184184
('-ld={prefix}/bin/vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib' +
@@ -464,9 +464,9 @@ def build():
464464
install_clib2()
465465

466466
with env(CC=CC, CXX=CXX, CFLAGS='-g -O2 -Wall', CXXFLAGS='-g -O2 -Wall'):
467-
make('{gcc}', 'cross',
467+
make('{gcc}', 'all-target',
468468
MAKEINFO='makeinfo', CFLAGS_FOR_TARGET='-noixemul')
469-
make('{gcc}', 'install-gcc-cross',
469+
make('{gcc}', 'install-target',
470470
MAKEINFO='makeinfo', CFLAGS_FOR_TARGET='-noixemul')
471471

472472
unpack('ira', top_dir='.', work_dir='{build}')
@@ -563,14 +563,14 @@ def process_sdk(sdk, dirname, files):
563563
sfd = sfd + '.sfd'
564564
info('fd2sfd: "%s" "%s" -> "%s"', fd, protos, sfd)
565565
execute('fd2sfd', '-o', sfd, fd, protos)
566-
copy(sfd, path.join('{prefix}/ndk/lib/sfd', sfd))
566+
copy(sfd, path.join('{prefix}/{target}/ndk/lib/sfd', sfd))
567567
elif kind == 'sfdc':
568568
source = f[1]
569569
basename = re.sub(r'_lib.sfd$', r'', path.basename(source))
570570

571-
proto = path.join('{prefix}/ndk/include/proto', basename + '.h')
572-
inline = path.join('{prefix}/ndk/include/inline', basename + '.h')
573-
lvo = path.join('{prefix}/ndk/include/lvo', basename + '.i')
571+
proto = path.join('{prefix}/{target}/ndk/include/proto', basename + '.h')
572+
inline = path.join('{prefix}/{target}/ndk/include/inline', basename + '.h')
573+
lvo = path.join('{prefix}/{target}/ndk/include/lvo', basename + '.i')
574574

575575
info('sfdc: "%s" -> "%s"', source, proto)
576576
execute('sfdc', '--quiet', '--target=m68k-amigaos', '--mode=proto',
@@ -613,14 +613,14 @@ def process_sdk(sdk, dirname, files):
613613
copy(source, path.join('{prefix}/{target}/guide', name))
614614
elif any(name.endswith(ext) for ext in ['.h', '.i']):
615615
lastdir = path.basename(path.dirname(f[1]))
616-
mkdir(path.join('{prefix}/ndk/include', lastdir))
617-
copy(source, path.join('{prefix}/ndk/include', lastdir, name))
616+
mkdir(path.join('{prefix}/{target}/ndk/include', lastdir))
617+
copy(source, path.join('{prefix}/{target}/ndk/include', lastdir, name))
618618
elif name.endswith('.fd'):
619-
mkdir('{prefix}/ndk/lib/fd')
620-
copy(source, path.join('{prefix}/ndk/lib/fd', name))
619+
mkdir('{prefix}/{target}/ndk/lib/fd')
620+
copy(source, path.join('{prefix}/{target}/ndk/lib/fd', name))
621621
elif name.endswith('.sfd'):
622-
mkdir('{prefix}/ndk/lib/sfd')
623-
copy(source, path.join('{prefix}/ndk/lib/sfd', name))
622+
mkdir('{prefix}/{target}/ndk/lib/sfd')
623+
copy(source, path.join('{prefix}/{target}/ndk/lib/sfd', name))
624624

625625

626626
def install_sdk(*names):

0 commit comments

Comments
 (0)