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