GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

Commit 2431390e authored by Zixian Cai's avatar Zixian Cai

Merge branch 'makefile_mac' into 'master'

Create soft link to .so file on macOS

See merge request !5
parents 7934833a 9ea55cac
......@@ -36,12 +36,20 @@ endif
.PHONY: all
all: libs tests
ifeq ($(OS),OSX)
.PHONY: libs
libs: libmurefimpl2start.so libmurefimpl2start.dylib
else
.PHONY: libs
libs: libmurefimpl2start.so
endif
libmurefimpl2start.so: refimpl2-start.c classpath.h
$(CC) -fPIC -shared $(CFLAGS) -o $@ $< $(LDFLAGS)
libmurefimpl2start.dylib:
ln -s libmurefimpl2start.so libmurefimpl2start.dylib
../classpath.txt: ../build.sbt
cd .. ; sbt makeClasspathFile
......@@ -60,7 +68,7 @@ test_client2: test_client2.c libmurefimpl2start.so
.PHONY: clean veryclean
clean:
rm -f *.so test_client test_client2
rm -f *.so test_client test_client2 *.dylib
veryclean: clean
rm -f classpath.txt classpath.h ../classpath.txt
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