binding.target.mk 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. # This file is generated by gyp; do not edit.
  2. TOOLSET := target
  3. TARGET := binding
  4. DEFS_Debug := \
  5. '-DNODE_GYP_MODULE_NAME=binding' \
  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. '-DV8_ENABLE_CHECKS'
  15. # Flags passed to all source files.
  16. CFLAGS_Debug := \
  17. -fPIC \
  18. -pthread \
  19. -Wall \
  20. -Wextra \
  21. -Wno-unused-parameter \
  22. -m64 \
  23. -g \
  24. -O0
  25. # Flags passed to only C files.
  26. CFLAGS_C_Debug :=
  27. # Flags passed to only C++ files.
  28. CFLAGS_CC_Debug := \
  29. -fno-rtti \
  30. -fno-exceptions \
  31. -std=gnu++0x \
  32. -std=c++0x
  33. INCS_Debug := \
  34. -I/home/bach/.node-gyp/9.3.0/include/node \
  35. -I/home/bach/.node-gyp/9.3.0/src \
  36. -I/home/bach/.node-gyp/9.3.0/deps/uv/include \
  37. -I/home/bach/.node-gyp/9.3.0/deps/v8/include \
  38. -I$(srcdir)/../nan \
  39. -I$(srcdir)/src/libsass/include
  40. DEFS_Release := \
  41. '-DNODE_GYP_MODULE_NAME=binding' \
  42. '-DUSING_UV_SHARED=1' \
  43. '-DUSING_V8_SHARED=1' \
  44. '-DV8_DEPRECATION_WARNINGS=1' \
  45. '-D_LARGEFILE_SOURCE' \
  46. '-D_FILE_OFFSET_BITS=64' \
  47. '-DBUILDING_NODE_EXTENSION'
  48. # Flags passed to all source files.
  49. CFLAGS_Release := \
  50. -fPIC \
  51. -pthread \
  52. -Wall \
  53. -Wextra \
  54. -Wno-unused-parameter \
  55. -m64 \
  56. -O3 \
  57. -fno-omit-frame-pointer
  58. # Flags passed to only C files.
  59. CFLAGS_C_Release :=
  60. # Flags passed to only C++ files.
  61. CFLAGS_CC_Release := \
  62. -fno-rtti \
  63. -fno-exceptions \
  64. -std=gnu++0x \
  65. -std=c++0x
  66. INCS_Release := \
  67. -I/home/bach/.node-gyp/9.3.0/include/node \
  68. -I/home/bach/.node-gyp/9.3.0/src \
  69. -I/home/bach/.node-gyp/9.3.0/deps/uv/include \
  70. -I/home/bach/.node-gyp/9.3.0/deps/v8/include \
  71. -I$(srcdir)/../nan \
  72. -I$(srcdir)/src/libsass/include
  73. OBJS := \
  74. $(obj).target/$(TARGET)/src/binding.o \
  75. $(obj).target/$(TARGET)/src/create_string.o \
  76. $(obj).target/$(TARGET)/src/custom_function_bridge.o \
  77. $(obj).target/$(TARGET)/src/custom_importer_bridge.o \
  78. $(obj).target/$(TARGET)/src/sass_context_wrapper.o \
  79. $(obj).target/$(TARGET)/src/sass_types/boolean.o \
  80. $(obj).target/$(TARGET)/src/sass_types/color.o \
  81. $(obj).target/$(TARGET)/src/sass_types/error.o \
  82. $(obj).target/$(TARGET)/src/sass_types/factory.o \
  83. $(obj).target/$(TARGET)/src/sass_types/list.o \
  84. $(obj).target/$(TARGET)/src/sass_types/map.o \
  85. $(obj).target/$(TARGET)/src/sass_types/null.o \
  86. $(obj).target/$(TARGET)/src/sass_types/number.o \
  87. $(obj).target/$(TARGET)/src/sass_types/string.o
  88. # Add to the list of files we specially track dependencies for.
  89. all_deps += $(OBJS)
  90. # Make sure our dependencies are built before any of us.
  91. $(OBJS): | $(builddir)/sass.a $(obj).target/src/sass.a
  92. # CFLAGS et al overrides must be target-local.
  93. # See "Target-specific Variable Values" in the GNU Make manual.
  94. $(OBJS): TOOLSET := $(TOOLSET)
  95. $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
  96. $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
  97. # Suffix rules, putting all outputs into $(obj).
  98. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
  99. @$(call do_cmd,cxx,1)
  100. # Try building from generated source, too.
  101. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
  102. @$(call do_cmd,cxx,1)
  103. $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
  104. @$(call do_cmd,cxx,1)
  105. # End of this set of suffix rules
  106. ### Rules for final target.
  107. LDFLAGS_Debug := \
  108. -pthread \
  109. -rdynamic \
  110. -m64
  111. LDFLAGS_Release := \
  112. -pthread \
  113. -rdynamic \
  114. -m64
  115. LIBS :=
  116. $(obj).target/binding.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
  117. $(obj).target/binding.node: LIBS := $(LIBS)
  118. $(obj).target/binding.node: TOOLSET := $(TOOLSET)
  119. $(obj).target/binding.node: $(OBJS) $(obj).target/src/sass.a FORCE_DO_CMD
  120. $(call do_cmd,solink_module)
  121. all_deps += $(obj).target/binding.node
  122. # Add target alias
  123. .PHONY: binding
  124. binding: $(builddir)/binding.node
  125. # Copy this to the executable output path.
  126. $(builddir)/binding.node: TOOLSET := $(TOOLSET)
  127. $(builddir)/binding.node: $(obj).target/binding.node FORCE_DO_CMD
  128. $(call do_cmd,copy)
  129. all_deps += $(builddir)/binding.node
  130. # Short alias for building this executable.
  131. .PHONY: binding.node
  132. binding.node: $(obj).target/binding.node $(builddir)/binding.node
  133. # Add executable to "all" target.
  134. .PHONY: all
  135. all: $(builddir)/binding.node