diff options
author | Rob Kendrick (monotony) <rjek@rjek.com> | 2012-01-22 12:47:04 +0900 |
---|---|---|
committer | Rob Kendrick (monotony) <rjek@rjek.com> | 2012-01-22 12:47:04 +0900 |
commit | 4bb5072c48499befa3458f46e22609eacb440e96 (patch) | |
tree | 35f9bb0cc355ca3b77be1613dd25499c45aa2290 /Makefile | |
parent | 3e6b0e1d8a6eddc2f833dd1cfcd431a82db42cc2 (diff) | |
download | luxio-4bb5072c48499befa3458f46e22609eacb440e96.tar.gz |
Change luxio_read binding to work with Lua 5.1
Add flags-ORing utility function
Add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..428ded0 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +LUA52_INC := -I /home/rjek/include/ +LUA52_LIB := -L /home/rjek/lib/ -llua + +LUA51_INC = $(shell pkg-config --cflags lua5.1) +LUA51_LIB = $(shell pkg-config --libs lua5.1) + +CFLAGS ?= -O2 -Wall -fPIC +CC ?= gcc + +all: + @echo make targets: lua5.1 lua5.2 clean + +clean: + $(RM) *.so *.o + +lua5.1: luxio-5.1.o + $(CC) -shared -o luxio.so $(LUA51_LIB) $^ + +lua5.2: luxio-5.2.o + $(CC) -shared -o luxio.so $(LUA52_LIB) $^ + +luxio-5.1.o: luxio.c + $(CC) $(CFLAGS) $(LUA51_INC) -c $^ -o $@ + +luxio-5.2.o: luxio.c + $(CC) $(CFLAGS) $(LUA52_INC) -c $^ -o $@ |