aboutsummaryrefslogblamecommitdiff
path: root/embedding_example/Makefile
blob: 3420b30e4760649c5f2cf97505b8bcaf7e1f5631 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                                                     





                                   




                                   
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)

main.o: main.c
	$(GCC) $(CFLAG) -o $@ $< -c