Skip to content

Commit

Permalink
fix build and make bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhundt committed Nov 9, 2012
1 parent e9b4475 commit 2606a58
Show file tree
Hide file tree
Showing 5 changed files with 455 additions and 470 deletions.
12 changes: 3 additions & 9 deletions Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ SRCDIR=./src
BLDDIR=./build BLDDIR=./build
LPEGDIR=./deps/lpeg LPEGDIR=./deps/lpeg
LUADIR=./deps/luajit LUADIR=./deps/luajit
LUVDIR=./deps/luv
LIBDIR=./lib LIBDIR=./lib
BINDIR=${BLDDIR}/bin BINDIR=${BLDDIR}/bin


OS_NAME=$(shell uname -s) OS_NAME=$(shell uname -s)
MH_NAME=$(shell uname -m) MH_NAME=$(shell uname -m)


CFLAGS=-O2 -Wall CFLAGS=-O2 -Wall
LDFLAGS=-lluv -lluajit -lstdc++ -lm -ldl -lpthread LDFLAGS=-lluajit -lstdc++ -lm -ldl -lpthread


ifeq (${OS_NAME}, Darwin) ifeq (${OS_NAME}, Darwin)
ifeq (${MH_NAME}, x86_64) ifeq (${MH_NAME}, x86_64)
Expand All @@ -21,8 +20,8 @@ CFLAGS+=-Wl,-E -fomit-frame-pointer -fno-stack-protector
LDFLAGS+=-lrt LDFLAGS+=-lrt
endif endif


INCS=-I${LUVDIR}/src -I${LUADIR}/src -L${LUADIR}/src -L${LUVDIR}/src -I${LUVDIR}/src/zmq/include -I${LUVDIR}/src/uv/include INCS=-I${LUADIR}/src -L${LUADIR}/src
DEPS=${LUADIR}/src/libluajit.a ${LIBDIR}/lpeg.so ${LIBDIR}/luv.so DEPS=${LUADIR}/src/libluajit.a ${LIBDIR}/lpeg.so


all: ${BINDIR}/lupa all: ${BINDIR}/lupa


Expand All @@ -39,11 +38,6 @@ ${LIBDIR}/lpeg.so:
${MAKE} -C ${LPEGDIR} ${MAKE} -C ${LPEGDIR}
cp ${LPEGDIR}/lpeg.so ${LIBDIR}/lpeg.so cp ${LPEGDIR}/lpeg.so ${LIBDIR}/lpeg.so


${LIBDIR}/luv.so:
git submodule update --init ${LUVDIR}
${MAKE} -C ${LUVDIR}
cp ${LUVDIR}/src/luv.so ${LIBDIR}/luv.so

clean: clean:
rm -rf ${BLDDIR} rm -rf ${BLDDIR}
rm -f ./lib/*.so rm -f ./lib/*.so
Expand Down
Binary file modified lib/lupa/core.lua
Binary file not shown.
Loading

0 comments on commit 2606a58

Please sign in to comment.