memwatch.target.mk 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # This file is generated by gyp; do not edit.
  2. TOOLSET := target
  3. TARGET := memwatch
  4. DEFS_Debug := \
  5. '-DNODE_GYP_MODULE_NAME=memwatch' \
  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=memwatch' \
  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/heapdiff.o \
  68. $(obj).target/$(TARGET)/src/init.o \
  69. $(obj).target/$(TARGET)/src/memwatch.o \
  70. $(obj).target/$(TARGET)/src/util.o
  71. # Add to the list of files we specially track dependencies for.
  72. all_deps += $(OBJS)
  73. # CFLAGS et al overrides must be target-local.
  74. # See "Target-specific Variable Values" in the GNU Make manual.
  75. $(OBJS): TOOLSET := $(TOOLSET)
  76. $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
  77. $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
  78. # Suffix rules, putting all outputs into $(obj).
  79. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
  80. @$(call do_cmd,cxx,1)
  81. # Try building from generated source, too.
  82. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
  83. @$(call do_cmd,cxx,1)
  84. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
  85. @$(call do_cmd,cxx,1)
  86. # End of this set of suffix rules
  87. ### Rules for final target.
  88. LDFLAGS_Debug := \
  89. -pthread \
  90. -rdynamic \
  91. -m64
  92. LDFLAGS_Release := \
  93. -pthread \
  94. -rdynamic \
  95. -m64
  96. LIBS :=
  97. $(obj).target/memwatch.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
  98. $(obj).target/memwatch.node: LIBS := $(LIBS)
  99. $(obj).target/memwatch.node: TOOLSET := $(TOOLSET)
  100. $(obj).target/memwatch.node: $(OBJS) FORCE_DO_CMD
  101. $(call do_cmd,solink_module)
  102. all_deps += $(obj).target/memwatch.node
  103. # Add target alias
  104. .PHONY: memwatch
  105. memwatch: $(builddir)/memwatch.node
  106. # Copy this to the executable output path.
  107. $(builddir)/memwatch.node: TOOLSET := $(TOOLSET)
  108. $(builddir)/memwatch.node: $(obj).target/memwatch.node FORCE_DO_CMD
  109. $(call do_cmd,copy)
  110. all_deps += $(builddir)/memwatch.node
  111. # Short alias for building this executable.
  112. .PHONY: memwatch.node
  113. memwatch.node: $(obj).target/memwatch.node $(builddir)/memwatch.node
  114. # Add executable to "all" target.
  115. .PHONY: all
  116. all: $(builddir)/memwatch.node