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
.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