aboutsummaryrefslogtreecommitdiff
path: root/embedding_example/Makefile
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-08-04 14:41:22 +0800
committerDeterminant <[email protected]>2015-08-04 14:41:22 +0800
commit462d1982f299c8be4ae9a746e6ae7d04c04faa33 (patch)
treed2230feda37d972989bb573fbe11f7ea6b4ac279 /embedding_example/Makefile
parent5b16335a903551ffef4fafa88d67146b9131a74e (diff)
add embedding_example
Diffstat (limited to 'embedding_example/Makefile')
-rw-r--r--embedding_example/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/embedding_example/Makefile b/embedding_example/Makefile
new file mode 100644
index 0000000..e4ee314
--- /dev/null
+++ b/embedding_example/Makefile
@@ -0,0 +1,9 @@
+CFLAG += -I ../install/include/luajit-2.0/ -I ../install/include/nerv/
+LDFLAG += -L../install/lib/ -lluajit-5.1 -Wl,-rpath=../install/lib/ -lluaT -lnervcore
+GCC := gcc
+
+main: main.o
+ $(GCC) -o $@ $< $(LDFLAG)
+
+main.o: main.c
+ $(GCC) $(CFLAG) -o $@ $< -c