summaryrefslogtreecommitdiff
path: root/support/ltsm/Makefile
diff options
context:
space:
mode:
authorlijia <[email protected]>2018-10-24 09:36:45 +0800
committerlijia <[email protected]>2018-10-24 09:36:45 +0800
commit86a43b4d325ddc850fa9dc4711670880f35b11e8 (patch)
tree8356a056ac9bfb8cf14fcf57f113dd306b4277d1 /support/ltsm/Makefile
create new project.
Diffstat (limited to 'support/ltsm/Makefile')
-rw-r--r--support/ltsm/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/support/ltsm/Makefile b/support/ltsm/Makefile
new file mode 100644
index 0000000..1cb32b7
--- /dev/null
+++ b/support/ltsm/Makefile
@@ -0,0 +1,14 @@
+all:test_ltsm.so libltsm.a
+
+libltsm.a:ltsm.o
+ ar -r $@ $^;
+ cp $@ ../../lib
+
+test_ltsm.so:test_ltsm.o ltsm.o
+ gcc -fPIC -shared -o $@ $^ -I/opt/MESA/include/MESA
+
+test_ltsm.o:test_ltsm.c
+ gcc -fPIC -c -D__USE_MISC -D_BSD_SOURCE -o $@ $^ -I/opt/MESA/include/MESA
+
+ltsm.o:ltsm.c
+ gcc -fPIC -c -D__USE_MISC -D_BSD_SOURCE -o $@ $^ -I/opt/MESA/include/MESA