|
@ -25,6 +25,10 @@ ifeq ($(platform),linux) |
|
|
LINKFLAGS += -pthread -lrt |
|
|
LINKFLAGS += -pthread -lrt |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(platform),solaris) |
|
|
|
|
|
WANT_SOCKET = 1 |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
ifdef WANT_OPENSSL |
|
|
ifdef WANT_OPENSSL |
|
|
HAVE_OPENSSL = 1 |
|
|
HAVE_OPENSSL = 1 |
|
|
HAVE_CRYPTO = 1 |
|
|
HAVE_CRYPTO = 1 |
|
@ -35,6 +39,10 @@ ifdef WANT_OPENSSL |
|
|
OPENSSL_LINKFLAGS += -lssl -lcrypto |
|
|
OPENSSL_LINKFLAGS += -lssl -lcrypto |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ifdef WANT_SOCKET |
|
|
|
|
|
LINKFLAGS += -lsocket -lnsl |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
ifneq (,$(findstring build/libnode.so,$(MAKEFLAGS))) |
|
|
ifneq (,$(findstring build/libnode.so,$(MAKEFLAGS))) |
|
|
CFLAGS += -shared -fPIC |
|
|
CFLAGS += -shared -fPIC |
|
|
#else
|
|
|
#else
|
|
@ -44,6 +52,7 @@ endif |
|
|
cflags += -pedantic |
|
|
cflags += -pedantic |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
debug_CPPDEFINES = -DDEBUG $(CFLAGS) |
|
|
debug_CPPDEFINES = -DDEBUG $(CFLAGS) |
|
|
debug_CFLAGS = -Wall -O0 -ggdb $(CFLAGS) |
|
|
debug_CFLAGS = -Wall -O0 -ggdb $(CFLAGS) |
|
|
debug_CXXFLAGS = $(debug_CFLAGS) |
|
|
debug_CXXFLAGS = $(debug_CFLAGS) |
|
@ -384,8 +393,9 @@ docclean: |
|
|
|
|
|
|
|
|
clean: |
|
|
clean: |
|
|
-rm -f node node_g $(builddir)/node $(builddir)/node_g |
|
|
-rm -f node node_g $(builddir)/node $(builddir)/node_g |
|
|
-find $(builddir) -name "*.o" -or -name "*.a" \
|
|
|
-find $(builddir) -name "*.o" | xargs rm -f |
|
|
-or -name "*.so" -or -name "*.dylib" | xargs rm -f |
|
|
-find $(builddir) -name "*.so" | xargs rm -f |
|
|
|
|
|
-find $(builddir) -name "*.dylib" | xargs rm -f |
|
|
-find . -name "*.pyc" | xargs rm -f |
|
|
-find . -name "*.pyc" | xargs rm -f |
|
|
|
|
|
|
|
|
distclean: docclean |
|
|
distclean: docclean |
|
|