addon.target.mk 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # This file is generated by gyp; do not edit.
  2. TOOLSET := target
  3. TARGET := addon
  4. DEFS_Debug := \
  5. '-DNODE_GYP_MODULE_NAME=addon' \
  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. -fno-rtti \
  29. -fno-exceptions \
  30. -std=gnu++0x
  31. INCS_Debug := \
  32. -I/root/.node-gyp/7.0.0/include/node \
  33. -I/root/.node-gyp/7.0.0/src \
  34. -I/root/.node-gyp/7.0.0/deps/uv/include \
  35. -I/root/.node-gyp/7.0.0/deps/v8/include
  36. DEFS_Release := \
  37. '-DNODE_GYP_MODULE_NAME=addon' \
  38. '-DUSING_UV_SHARED=1' \
  39. '-DUSING_V8_SHARED=1' \
  40. '-DV8_DEPRECATION_WARNINGS=1' \
  41. '-D_LARGEFILE_SOURCE' \
  42. '-D_FILE_OFFSET_BITS=64' \
  43. '-DBUILDING_NODE_EXTENSION'
  44. # Flags passed to all source files.
  45. CFLAGS_Release := \
  46. -fPIC \
  47. -pthread \
  48. -Wall \
  49. -Wextra \
  50. -Wno-unused-parameter \
  51. -m64 \
  52. -O3 \
  53. -fno-omit-frame-pointer
  54. # Flags passed to only C files.
  55. CFLAGS_C_Release :=
  56. # Flags passed to only C++ files.
  57. CFLAGS_CC_Release := \
  58. -fno-rtti \
  59. -fno-exceptions \
  60. -std=gnu++0x
  61. INCS_Release := \
  62. -I/root/.node-gyp/7.0.0/include/node \
  63. -I/root/.node-gyp/7.0.0/src \
  64. -I/root/.node-gyp/7.0.0/deps/uv/include \
  65. -I/root/.node-gyp/7.0.0/deps/v8/include
  66. OBJS := \
  67. $(obj).target/$(TARGET)/src/heapdump.o
  68. # Add to the list of files we specially track dependencies for.
  69. all_deps += $(OBJS)
  70. # CFLAGS et al overrides must be target-local.
  71. # See "Target-specific Variable Values" in the GNU Make manual.
  72. $(OBJS): TOOLSET := $(TOOLSET)
  73. $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
  74. $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
  75. # Suffix rules, putting all outputs into $(obj).
  76. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
  77. @$(call do_cmd,cxx,1)
  78. # Try building from generated source, too.
  79. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
  80. @$(call do_cmd,cxx,1)
  81. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
  82. @$(call do_cmd,cxx,1)
  83. # End of this set of suffix rules
  84. ### Rules for final target.
  85. LDFLAGS_Debug := \
  86. -pthread \
  87. -rdynamic \
  88. -m64
  89. LDFLAGS_Release := \
  90. -pthread \
  91. -rdynamic \
  92. -m64
  93. LIBS :=
  94. $(obj).target/addon.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
  95. $(obj).target/addon.node: LIBS := $(LIBS)
  96. $(obj).target/addon.node: TOOLSET := $(TOOLSET)
  97. $(obj).target/addon.node: $(OBJS) FORCE_DO_CMD
  98. $(call do_cmd,solink_module)
  99. all_deps += $(obj).target/addon.node
  100. # Add target alias
  101. .PHONY: addon
  102. addon: $(builddir)/addon.node
  103. # Copy this to the executable output path.
  104. $(builddir)/addon.node: TOOLSET := $(TOOLSET)
  105. $(builddir)/addon.node: $(obj).target/addon.node FORCE_DO_CMD
  106. $(call do_cmd,copy)
  107. all_deps += $(builddir)/addon.node
  108. # Short alias for building this executable.
  109. .PHONY: addon.node
  110. addon.node: $(obj).target/addon.node $(builddir)/addon.node
  111. # Add executable to "all" target.
  112. .PHONY: all
  113. all: $(builddir)/addon.node