Commit 9ea55cac authored by Zixian Cai's avatar Zixian Cai
Browse files

Create soft link to .so file on macOS

parent 7934833a
......@@ -36,12 +36,20 @@ endif
.PHONY: all
all: libs tests
ifeq ($(OS),OSX)
.PHONY: libs
libs: libmurefimpl2start.dylib
.PHONY: libs
endif refimpl2-start.c classpath.h
$(CC) -fPIC -shared $(CFLAGS) -o $@ $< $(LDFLAGS)
ln -s libmurefimpl2start.dylib
../classpath.txt: ../build.sbt
cd .. ; sbt makeClasspathFile
......@@ -60,7 +68,7 @@ test_client2: test_client2.c
.PHONY: clean veryclean
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