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.

Commit da406bfd authored by Timm Allman's avatar Timm Allman
Browse files

fix issues that cause mu_refimpl2_new and mu_refimpl2_new_ex to return NULL always (hopefully)

parent d2922b2e
CFLAGS += -std=gnu11
ifndef JAVA_HOME
$(error JAVA_HOME is required. Invoke with 'make JAVA_HOME=/path/to/java/home')
endif
CFLAGS += -I $(JAVA_HOME)/include
CFLAGS += -std=gnu11 -g -I $(JAVA_HOME)/include
ifndef OS
uname := $(shell uname)
ifeq ($(uname),Darwin)
OS = OSX
else
ifeq ($(uname),Linux)
else ifeq ($(uname),Linux)
OS = LINUX
else
$(error Unrecognized operating system $(uname). I currently only worked on OSX and Linux.)
endif
endif
endif
ifeq ($(OS),OSX)
CFLAGS += -I $(JAVA_HOME)/include/darwin
LDFLAGS += -L $(JAVA_HOME)/jre/lib/server -l jvm -rpath $(JAVA_HOME)/jre/lib/server -install_name '@rpath/libmurefimpl2start.so'
endif
ifeq ($(OS),LINUX)
else ifeq ($(OS),LINUX)
CFLAGS += -I $(JAVA_HOME)/include/linux
LDFLAGS += -Wl,--no-as-needed -L $(JAVA_HOME)/jre/lib/amd64/server -l jvm -Wl,-rpath,$(JAVA_HOME)/jre/lib/amd64/server
endif
.PHONY: all
all: libs tests
......@@ -56,10 +49,8 @@ test_client2: test_client2.c libmurefimpl2start.so
$(CC) `./refimpl2-config --istart --cflags --libs` -o $@ $<
.PHONY: clean veryclean
clean:
rm *.so test_client test_client2
rm -f *.so test_client test_client2
veryclean:
rm *.so test_client test_client2 classpath.txt classpath.h
rm ../classpath.txt
veryclean: clean
rm -f classpath.txt classpath.h ../classpath.txt
......@@ -37,7 +37,3 @@ if '--istart' in args:
else:
if '--cflags' in args:
print("-I {} ".format(whereami), end="")
\ No newline at end of file
if '--libs' in args:
pass
......@@ -21,7 +21,7 @@ const char *gc_conf =
"vmLog=DEBUG\n"
;
const char *boot_image_name = "test_client2_bootimg.mu";
char *boot_image_name = "test_client2_bootimg.mu";
int *muerrno;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment