Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (24 sloc) 808 Bytes
.PHONY: clean bin all build test
PLAT=`node -e "process.stdout.write(process.platform)"`
VERS=`node -e "process.stdout.write(process.version)"`
ARCH=`node -e "process.stdout.write(process.arch)"`
RELEASE=compiled/${PLAT}/${ARCH}/${VERS}
all:
@echo "Usage: [COMMAND]"
@echo
@echo "Commands:"
@echo
@echo "\tbuild - build system binary"
@echo "\tclean - clear existing build directory"
clean:
rm -rf ./build
build: bin
bin:
mkdir -p ${RELEASE}
# remove --dest-cpu ia32 to compile in x64 on 64bit host
node-waf configure --dest-cpu ia32
node-waf build
cp build/Release/gcinfo.node ${RELEASE}
test: build/Release/gcinfo.node
node -e "require('./index.js').onGC(function(){console.log('GC Event')}); var x = []; setInterval(function(){x.push(new Date())},1)"
build/Release/gcinfo.node: bin
Jump to Line
Something went wrong with that request. Please try again.