From 609fb52b670d8ed74584a988b8c63da82d8d523b Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 10 Jul 2018 12:36:54 -0400 Subject: added wolfram link code --- wolfram_link/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 wolfram_link/Makefile (limited to 'wolfram_link/Makefile') diff --git a/wolfram_link/Makefile b/wolfram_link/Makefile new file mode 100644 index 0000000..9d65623 --- /dev/null +++ b/wolfram_link/Makefile @@ -0,0 +1,13 @@ + +CC = clang +WSPREP = /opt/Mathematica/SystemFiles/Links/WSTP/DeveloperKit/Linux-x86-64/CompilerAdditions/wsprep +CFLAGS = -g -Os -O3 -Wall -fno-strict-aliasing -Wstrict-overflow -Wno-missing-field-initializers -flto -fopenmp=libiomp5 -I/usr/lib/gcc/x86_64-linux-gnu/4.8/include/ -march=native -I/opt/Mathematica/SystemFiles/Links/WSTP/DeveloperKit/Linux-x86-64/CompilerAdditions/ -I../lib/ +LDFLAGS = -L/opt/Mathematica/SystemFiles/Links/WSTP/DeveloperKit/Linux-x86-64/CompilerAdditions -lm -lpthread -lrt -lstdc++ -ldl -luuid -l WSTP64i4 + +convex.o: ../lib/convex.c + @${CC} -c -o $@ $< ${CFLAGS} + +convexminorant: convexminorant.tm convex.o + @${WSPREP} $< -o $@.c + @${CC} -o $@ convex.o $@.c ${CFLAGS} ${LDFLAGS} + -- cgit v1.2.3-70-g09d2