# Commands to create marx_sluser.so # # Files needed: marx_sluser.c and '.h # # ---- Make it on the Mac (OS X 10.3.9 etc.) # 1/4/07 # # (Needed to run "ranlib *.a" in the ./marx...dist/lib/ dir.) # (Copied this template from the slhist Makefile...) gcc -bundle -flat_namespace -undefined suppress -g -O2 -fno-common \ -I/usr/local/include -I$MARX_DIST_DIR/include \ marx_sluser.c -o marx_sluser.so \ -L/usr/local/lib -L$MARX_DIST_DIR/lib -lslang -ljdmath -lm # ----- At MIT for linux do this: # 8/31/06 setenv CXC /nfs/cxc/a1/$ARCH setenv MARX /nfs/cxc/a1/src/marx/marx-dist-devel gcc -g -shared -fPIC marx_sluser.c -o marx_sluser.so \ -Wl,-R$CXC/lib:$MARX/lib/$ARCH \ -I$CXC/include -I$MARX/include \ -L$CXC/lib -L$MARX/lib/$ARCH -lslang -ljdmath -lm # - - - -