cpp-eventemitter
Version:
A Native Nan version of EventEmitter that allows C++ and wrapped C to emit to javascript listeners as events happen.
17 lines (11 loc) • 367 B
Plain Text
TEST_INPUTS=$(wildcard test_*.cpp)
TESTS=$(patsubst %.cpp,%.testrunner,$(TEST_INPUTS))
CATCHHEADER=$(shell node -e 'require("catch")')/catch/single_include
test: $(TESTS)
[ -f ./$< ] && ./$< -s
alltests: test
npm run jstests
$(TESTS): $(TEST_INPUTS)
g++ -std=c++11 -ggdb -Wall -Wextra -isystem $(CATCHHEADER) -o $@ $< -lpthread
clean:
rm -f $(TESTS) || true