node_expat.target.mk 3.6 KB

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