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

Create soft link to .so file on macOS

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