seqlua
diff Makefile @ 0:47f9b323d68c
Initial commit
author | jbe |
---|---|
date | Wed Aug 20 00:39:10 2014 +0200 (2014-08-20) |
parents | |
children | 144f0bddee2b |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Wed Aug 20 00:39:10 2014 +0200 1.3 @@ -0,0 +1,24 @@ 1.4 +LUA_INCLUDE=/usr/local/include/lua52 1.5 + 1.6 +all:: seqlualib.so seqlua.so seqlua_c_example.so 1.7 + 1.8 +seqlualib.so: seqlualib.o 1.9 + ld -shared -o seqlualib.so seqlualib.o 1.10 + 1.11 +seqlualib.o: seqlualib.c seqlualib.h 1.12 + cc -O2 -c -fpic -I $(LUA_INCLUDE) -o seqlualib.o seqlualib.c 1.13 + 1.14 +seqlua.so: seqlua.o seqlualib.o 1.15 + ld -shared -o seqlua.so seqlua.o seqlualib.o 1.16 + 1.17 +seqlua.o: seqlua.c seqlualib.h 1.18 + cc -O2 -c -fpic -I $(LUA_INCLUDE) -o seqlua.o seqlua.c 1.19 + 1.20 +seqlua_c_example.so: seqlua_c_example.o seqlua.o 1.21 + ld -shared -o seqlua_c_example.so seqlua_c_example.o seqlualib.o 1.22 + 1.23 +seqlua_c_example.o: seqlua_c_example.c seqlualib.h 1.24 + cc -O2 -c -fpic -I $(LUA_INCLUDE) -o seqlua_c_example.o seqlua_c_example.c 1.25 + 1.26 +clean:: 1.27 + rm -f *.o *.so