uws.target.mk 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. # This file is generated by gyp; do not edit.
  2. TOOLSET := target
  3. TARGET := uws
  4. DEFS_Debug := \
  5. '-DNODE_GYP_MODULE_NAME=uws' \
  6. '-DUSING_UV_SHARED=1' \
  7. '-DUSING_V8_SHARED=1' \
  8. '-DV8_DEPRECATION_WARNINGS=1' \
  9. '-D_LARGEFILE_SOURCE' \
  10. '-D_FILE_OFFSET_BITS=64' \
  11. '-DBUILDING_NODE_EXTENSION' \
  12. '-DDEBUG' \
  13. '-D_DEBUG'
  14. # Flags passed to all source files.
  15. CFLAGS_Debug := \
  16. -fPIC \
  17. -pthread \
  18. -Wall \
  19. -Wextra \
  20. -Wno-unused-parameter \
  21. -m64 \
  22. -g \
  23. -O0
  24. # Flags passed to only C files.
  25. CFLAGS_C_Debug :=
  26. # Flags passed to only C++ files.
  27. CFLAGS_CC_Debug := \
  28. -std=c++11 \
  29. -DUSE_LIBUV
  30. INCS_Debug := \
  31. -I/root/.node-gyp/7.0.0/include/node \
  32. -I/root/.node-gyp/7.0.0/src \
  33. -I/root/.node-gyp/7.0.0/deps/uv/include \
  34. -I/root/.node-gyp/7.0.0/deps/v8/include
  35. DEFS_Release := \
  36. '-DNODE_GYP_MODULE_NAME=uws' \
  37. '-DUSING_UV_SHARED=1' \
  38. '-DUSING_V8_SHARED=1' \
  39. '-DV8_DEPRECATION_WARNINGS=1' \
  40. '-D_LARGEFILE_SOURCE' \
  41. '-D_FILE_OFFSET_BITS=64' \
  42. '-DBUILDING_NODE_EXTENSION'
  43. # Flags passed to all source files.
  44. CFLAGS_Release := \
  45. -fPIC \
  46. -pthread \
  47. -Wall \
  48. -Wextra \
  49. -Wno-unused-parameter \
  50. -m64 \
  51. -O3
  52. # Flags passed to only C files.
  53. CFLAGS_C_Release :=
  54. # Flags passed to only C++ files.
  55. CFLAGS_CC_Release := \
  56. -std=c++11 \
  57. -DUSE_LIBUV
  58. INCS_Release := \
  59. -I/root/.node-gyp/7.0.0/include/node \
  60. -I/root/.node-gyp/7.0.0/src \
  61. -I/root/.node-gyp/7.0.0/deps/uv/include \
  62. -I/root/.node-gyp/7.0.0/deps/v8/include
  63. OBJS := \
  64. $(obj).target/$(TARGET)/src/Extensions.o \
  65. $(obj).target/$(TARGET)/src/Group.o \
  66. $(obj).target/$(TARGET)/src/Networking.o \
  67. $(obj).target/$(TARGET)/src/Hub.o \
  68. $(obj).target/$(TARGET)/src/Node.o \
  69. $(obj).target/$(TARGET)/src/WebSocket.o \
  70. $(obj).target/$(TARGET)/src/HTTPSocket.o \
  71. $(obj).target/$(TARGET)/src/Socket.o \
  72. $(obj).target/$(TARGET)/src/addon.o
  73. # Add to the list of files we specially track dependencies for.
  74. all_deps += $(OBJS)
  75. # CFLAGS et al overrides must be target-local.
  76. # See "Target-specific Variable Values" in the GNU Make manual.
  77. $(OBJS): TOOLSET := $(TOOLSET)
  78. $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
  79. $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
  80. # Suffix rules, putting all outputs into $(obj).
  81. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
  82. @$(call do_cmd,cxx,1)
  83. # Try building from generated source, too.
  84. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
  85. @$(call do_cmd,cxx,1)
  86. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
  87. @$(call do_cmd,cxx,1)
  88. # End of this set of suffix rules
  89. ### Rules for final target.
  90. LDFLAGS_Debug := \
  91. -pthread \
  92. -m64 \
  93. -s
  94. LDFLAGS_Release := \
  95. -pthread \
  96. -m64 \
  97. -s
  98. LIBS :=
  99. $(obj).target/uws.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
  100. $(obj).target/uws.node: LIBS := $(LIBS)
  101. $(obj).target/uws.node: TOOLSET := $(TOOLSET)
  102. $(obj).target/uws.node: $(OBJS) FORCE_DO_CMD
  103. $(call do_cmd,solink_module)
  104. all_deps += $(obj).target/uws.node
  105. # Add target alias
  106. .PHONY: uws
  107. uws: $(builddir)/uws.node
  108. # Copy this to the executable output path.
  109. $(builddir)/uws.node: TOOLSET := $(TOOLSET)
  110. $(builddir)/uws.node: $(obj).target/uws.node FORCE_DO_CMD
  111. $(call do_cmd,copy)
  112. all_deps += $(builddir)/uws.node
  113. # Short alias for building this executable.
  114. .PHONY: uws.node
  115. uws.node: $(obj).target/uws.node $(builddir)/uws.node
  116. # Add executable to "all" target.
  117. .PHONY: all
  118. all: $(builddir)/uws.node