Changeset f40d52b in buchla-68k


Ignore:
Timestamp:
06/30/2017 02:56:44 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
6ec258e
Parents:
cbc2fcf
Message:

Create static libraries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hatari/rem.py

    rcbc2fcf rf40d52b  
    259259            send_alnum(c)
    260260
    261         time.sleep(0.1)
     261        time.sleep(0.075)
    262262
    263263def run_command(command):
     
    270270    print("Waiting for completion")
    271271    while not os.path.exists(sig_path):
    272         time.sleep(0.5)
     272        time.sleep(0.25)
    273273
    274274    os.unlink(sig_path)
     
    295295    send_line("")
    296296
     297def archive_one(arch, base):
     298    print("Adding {}.o to {}".format(base, arch))
     299    run_command("cp d:\\out\\{}.o {}.o".format(base, base))
     300    run_command("ar68 r {} {}.o".format(arch, base))
     301    run_command("rm {}.o".format(base))
     302    send_line("")
     303
     304def archive(arch, mod):
     305    print("Creating {}".format(arch))
     306
     307    for path in mod:
     308        (dir, file) = path.split("/")
     309        (base, ext) = file.split(".")
     310        archive_one(arch, base)
     311
     312    run_command("cp {} d:\\out\\{}".format(arch, arch))
     313    run_command("rm {}".format(arch))
     314    send_line("")
     315
    297316print("Waiting for Hatari to connect to {}.".format(lis_path))
    298317hatari_connect()
     
    323342        else:
    324343            raise Exception("file {} with invalid extension {}".format(file, ext))
     344
     345archive("prolog.a", mod_prolog)
     346archive("iolib.a", mod_iolib)
     347archive("libcio.a", mod_libcio)
     348archive("libsm.a", mod_libsm)
     349archive("lib700.a", mod_lib700)
     350archive("vlib.a", mod_vlib)
Note: See TracChangeset for help on using the changeset viewer.