From 5bc8785326340317564c494d0befad1e292502d1 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Mon, 5 Nov 2018 02:34:24 +0100 Subject: [PATCH] Correct include paths, deprecate Node.js 9 --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8a55c23..e4934bc 100644 --- a/Makefile +++ b/Makefile @@ -8,21 +8,19 @@ CPP_OSX := -stdlib=libc++ $(C_OSX) default: make targets - NODE=targets/node-v9.2.0 ABI=59 make `(uname -s)` NODE=targets/node-v10.0.0 ABI=64 make `(uname -s)` NODE=targets/node-v11.1.0 ABI=67 make `(uname -s)` for f in dist/*.node; do chmod +x $$f; done targets: mkdir targets - curl https://nodejs.org/dist/v9.2.0/node-v9.2.0-headers.tar.gz | tar xz -C targets curl https://nodejs.org/dist/v10.0.0/node-v10.0.0-headers.tar.gz | tar xz -C targets curl https://nodejs.org/dist/v11.1.0/node-v11.1.0-headers.tar.gz | tar xz -C targets Linux: - gcc $(C_SHARED) + gcc $(C_SHARED) -I $$NODE/include/node g++ $(CPP_SHARED) -I $$NODE/include/node g++ -flto -O3 *.o -std=c++17 -shared -static-libstdc++ -static-libgcc -s -o dist/uws_linux_$$ABI.node Darwin: - gcc $(C_OSX) $(C_SHARED) + gcc $(C_OSX) $(C_SHARED) -I $$NODE/include/node g++ $(CPP_OSX) $(CPP_SHARED) -I $$NODE/include/node g++ $(CPP_OSX) -flto -O3 *.o -std=c++17 -shared -undefined dynamic_lookup -o dist/uws_darwin_$$ABI.node .PHONY: clean