WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

refimpl2-config 1003 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python

from __future__ import print_function  # compatible with python2

import sys
import os
import os.path

whereami = os.path.dirname(os.path.realpath(__file__))

args = sys.argv[1:]

if len(args) == 0 or "--help" in args or "-h" in args:
    print("""USAGE:
    
cc `refimpl2-config --istart --cflags --libs` -o the_output your-c-program-that-starts-mu.c

cc `refimpl2-config --cflags` -fPIC -shared -o theclient.so your-c-program-loaded-by-the-jvm.c

    --istart    Your C program will start the JVM and create the Mu instance.

    --cflags    If present, this script will print compiler flags.
    --libs      If present, this script will print linker flags.
""")

if '--istart' in args:
    if '--cflags' in args:
        print("-I {} ".format(whereami), end="")
    if '--libs' in args:
        print("-L {} -l murefimpl2start ".format(whereami), end="")
else:
    if '--cflags' in args:
        print("-I {} ".format(whereami), end="")
    if '--libs' in args:
        pass