Skip to content

Instantly share code, notes, and snippets.

View open-tommie's full-sized avatar

tommie open-tommie

  • Tokyo, Japan
View GitHub Profile
@open-tommie
open-tommie / Makefile
Last active December 16, 2015 00:29
同期的な関数からNode.js関数を呼び出す実験の検証プログラムです。 Node.jsとは別のスレッドで同期的な関数を実行し、 スレッド間通信でNode.js関数を呼び出します。 Node.jsメーリングリストから。
CFLAGS=-c -I/usr/local/src/libuv/include \
-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread
ADDON=build/Release/obj.target/addon.node
all: ./main sub.so ${ADDON}
main: main.cc sub.so plugin.h
g++ -o main main.cc sub.so
@open-tommie
open-tommie / Makefile
Last active December 15, 2015 23:48 — forked from shigeki/main.c
CFLAGS=-c -I/usr/local/src/libuv/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread
all: ./worker
worker: main.o
g++ -o worker -L/usr/local/src/libuv main.o -luv -lpthread -lrt -lstdc++
main.o: main.c
g++ $(CFLAGS) main.c
#EOF