Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 570 Bytes
NODE_WAF ?= node-waf
NODE_SRC_DIR ?= $(HOME)/src/node
CFLAGS ?= -g -Wall
CXXFLAGS ?= -g -Wall
# We need to build position-independent code regardless of platform
CFLAGS += -fPIC
CXXFLAGS += -fPIC
# These variables are respected by waf if we export them
export CFLAGS CXXFLAGS
all: magic
#build libs then clean up - for NPM
makelibs: magic cleanbuild
# Build Magic
magic:
cd src && \
$(NODE_WAF) configure build && \
cp -f ../build/default/magicBindings.node ../lib
cleanbuild:
rm -rf build src/.lock-wscript
clean: cleanbuild
rm -f lib/whBindings.node
Something went wrong with that request. Please try again.