aboutsummaryrefslogtreecommitdiff
path: root/embedding_example/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'embedding_example/Makefile')
-rw-r--r--embedding_example/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/embedding_example/Makefile b/embedding_example/Makefile
index e4ee314..3420b30 100644
--- a/embedding_example/Makefile
+++ b/embedding_example/Makefile
@@ -2,6 +2,12 @@ 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
+.PHONY: FORCE
+
+FORCE: ../install/bin/luarocks
+ echo "#!/bin/bash" > run.sh
+ $< path >> run.sh
+ echo "./main" >> run.sh
main: main.o
$(GCC) -o $@ $< $(LDFLAG)