make (1255:944efece387a) make (1554:8f22edff911d)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) Valentin V. Bartenev
4# Copyright (C) NGINX, Inc.
5
6. auto/cc/deps
7
8$echo "creating $NXT_MAKEFILE"

--- 116 unchanged lines hidden (view full) ---

125 $nxt_dep_post
126
127-include $NXT_BUILD_DIR/$nxt_dep
128
129END
130
131done
132
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) Valentin V. Bartenev
4# Copyright (C) NGINX, Inc.
5
6. auto/cc/deps
7
8$echo "creating $NXT_MAKEFILE"

--- 116 unchanged lines hidden (view full) ---

125 $nxt_dep_post
126
127-include $NXT_BUILD_DIR/$nxt_dep
128
129END
130
131done
132
133nxt_src=src/test/nxt_cq_test.c
134nxt_obj=src/test/nxt_ncq_test.o
135nxt_dep=src/test/nxt_ncq_test.dep
136nxt_dep_flags=`nxt_gen_dep_flags`
137nxt_dep_post=`nxt_gen_dep_post`
138cat << END >> $NXT_MAKEFILE
139
140$NXT_BUILD_DIR/$nxt_obj: $nxt_src $NXT_VERSION_H
141 \$(CC) -c \$(CFLAGS) -DNXT_NCQ_TEST=1 \$(NXT_LIB_INCS) $NXT_LIB_AUX_CFLAGS \\
142 -o $NXT_BUILD_DIR/$nxt_obj \\
143 $nxt_dep_flags \\
144 $nxt_src
145 $nxt_dep_post
146
147-include $NXT_BUILD_DIR/$nxt_dep
148
149END
150
151nxt_src=src/test/nxt_cq_test.c
152nxt_obj=src/test/nxt_vbcq_test.o
153nxt_dep=src/test/nxt_vbcq_test.dep
154nxt_dep_flags=`nxt_gen_dep_flags`
155nxt_dep_post=`nxt_gen_dep_post`
156cat << END >> $NXT_MAKEFILE
157
158$NXT_BUILD_DIR/$nxt_obj: $nxt_src $NXT_VERSION_H
159 \$(CC) -c \$(CFLAGS) -DNXT_NCQ_TEST=0 \$(NXT_LIB_INCS) $NXT_LIB_AUX_CFLAGS \\
160 -o $NXT_BUILD_DIR/$nxt_obj \\
161 $nxt_dep_flags \\
162 $nxt_src
163 $nxt_dep_post
164
165-include $NXT_BUILD_DIR/$nxt_dep
166
167END
168
133$echo >> $NXT_MAKEFILE
134
135
136if [ $NXT_TESTS = YES ]; then
137
138 # Test object files list.
139
140 $echo "NXT_TEST_OBJS = \\" >> $NXT_MAKEFILE

--- 5 unchanged lines hidden (view full) ---

146 done
147
148 # Test executables.
149
150 cat << END >> $NXT_MAKEFILE
151
152.PHONY: tests
153tests: $NXT_BUILD_DIR/tests $NXT_BUILD_DIR/utf8_file_name_test \\
169$echo >> $NXT_MAKEFILE
170
171
172if [ $NXT_TESTS = YES ]; then
173
174 # Test object files list.
175
176 $echo "NXT_TEST_OBJS = \\" >> $NXT_MAKEFILE

--- 5 unchanged lines hidden (view full) ---

182 done
183
184 # Test executables.
185
186 cat << END >> $NXT_MAKEFILE
187
188.PHONY: tests
189tests: $NXT_BUILD_DIR/tests $NXT_BUILD_DIR/utf8_file_name_test \\
190 $NXT_BUILD_DIR/ncq_test \\
191 $NXT_BUILD_DIR/vbcq_test \\
154 $NXT_BUILD_DIR/unit_app_test $NXT_BUILD_DIR/unit_websocket_chat \\
155 $NXT_BUILD_DIR/unit_websocket_echo
156
157$NXT_BUILD_DIR/tests: \$(NXT_TEST_OBJS) \\
158 $NXT_BUILD_DIR/$NXT_LIB_STATIC
159 \$(NXT_EXEC_LINK) -o $NXT_BUILD_DIR/tests \\
160 \$(CFLAGS) \$(NXT_TEST_OBJS) \\
161 $NXT_BUILD_DIR/$NXT_LIB_STATIC \\
162 $NXT_LD_OPT $NXT_LIBM $NXT_LIBS $NXT_LIB_AUX_LIBS
163
164$NXT_BUILD_DIR/utf8_file_name_test: $NXT_LIB_UTF8_FILE_NAME_TEST_SRCS \\
165 $NXT_BUILD_DIR/$NXT_LIB_STATIC
166 \$(CC) \$(CFLAGS) \$(NXT_LIB_INCS) $NXT_LIB_AUX_CFLAGS \\
167 -o $NXT_BUILD_DIR/utf8_file_name_test \\
168 $NXT_LIB_UTF8_FILE_NAME_TEST_SRCS \\
169 $NXT_BUILD_DIR/$NXT_LIB_STATIC \\
170 $NXT_LD_OPT $NXT_LIBM $NXT_LIBS $NXT_LIB_AUX_LIBS
171
192 $NXT_BUILD_DIR/unit_app_test $NXT_BUILD_DIR/unit_websocket_chat \\
193 $NXT_BUILD_DIR/unit_websocket_echo
194
195$NXT_BUILD_DIR/tests: \$(NXT_TEST_OBJS) \\
196 $NXT_BUILD_DIR/$NXT_LIB_STATIC
197 \$(NXT_EXEC_LINK) -o $NXT_BUILD_DIR/tests \\
198 \$(CFLAGS) \$(NXT_TEST_OBJS) \\
199 $NXT_BUILD_DIR/$NXT_LIB_STATIC \\
200 $NXT_LD_OPT $NXT_LIBM $NXT_LIBS $NXT_LIB_AUX_LIBS
201
202$NXT_BUILD_DIR/utf8_file_name_test: $NXT_LIB_UTF8_FILE_NAME_TEST_SRCS \\
203 $NXT_BUILD_DIR/$NXT_LIB_STATIC
204 \$(CC) \$(CFLAGS) \$(NXT_LIB_INCS) $NXT_LIB_AUX_CFLAGS \\
205 -o $NXT_BUILD_DIR/utf8_file_name_test \\
206 $NXT_LIB_UTF8_FILE_NAME_TEST_SRCS \\
207 $NXT_BUILD_DIR/$NXT_LIB_STATIC \\
208 $NXT_LD_OPT $NXT_LIBM $NXT_LIBS $NXT_LIB_AUX_LIBS
209
210$NXT_BUILD_DIR/ncq_test: $NXT_BUILD_DIR/src/test/nxt_ncq_test.o \\
211 $NXT_BUILD_DIR/$NXT_LIB_STATIC
212 \$(NXT_EXEC_LINK) -o $NXT_BUILD_DIR/ncq_test \\
213 \$(CFLAGS) $NXT_BUILD_DIR/src/test/nxt_ncq_test.o \\
214 $NXT_BUILD_DIR/$NXT_LIB_STATIC \\
215 $NXT_LD_OPT $NXT_LIBM $NXT_LIBS $NXT_LIB_AUX_LIBS
216
217$NXT_BUILD_DIR/vbcq_test: $NXT_BUILD_DIR/src/test/nxt_vbcq_test.o \\
218 $NXT_BUILD_DIR/$NXT_LIB_STATIC
219 \$(NXT_EXEC_LINK) -o $NXT_BUILD_DIR/vbcq_test \\
220 \$(CFLAGS) $NXT_BUILD_DIR/src/test/nxt_vbcq_test.o \\
221 $NXT_BUILD_DIR/$NXT_LIB_STATIC \\
222 $NXT_LD_OPT $NXT_LIBM $NXT_LIBS $NXT_LIB_AUX_LIBS
223
172$NXT_BUILD_DIR/unit_app_test: $NXT_BUILD_DIR/src/test/nxt_unit_app_test.o \\
173 $NXT_BUILD_DIR/$NXT_LIB_UNIT_STATIC
174 \$(NXT_EXEC_LINK) -o $NXT_BUILD_DIR/unit_app_test \\
175 \$(CFLAGS) $NXT_BUILD_DIR/src/test/nxt_unit_app_test.o \\
176 $NXT_BUILD_DIR/$NXT_LIB_UNIT_STATIC \\
177 $NXT_LD_OPT $NXT_LIBM $NXT_LIBS $NXT_LIB_AUX_LIBS
178
179$NXT_BUILD_DIR/unit_websocket_chat: \\

--- 182 unchanged lines hidden ---
224$NXT_BUILD_DIR/unit_app_test: $NXT_BUILD_DIR/src/test/nxt_unit_app_test.o \\
225 $NXT_BUILD_DIR/$NXT_LIB_UNIT_STATIC
226 \$(NXT_EXEC_LINK) -o $NXT_BUILD_DIR/unit_app_test \\
227 \$(CFLAGS) $NXT_BUILD_DIR/src/test/nxt_unit_app_test.o \\
228 $NXT_BUILD_DIR/$NXT_LIB_UNIT_STATIC \\
229 $NXT_LD_OPT $NXT_LIBM $NXT_LIBS $NXT_LIB_AUX_LIBS
230
231$NXT_BUILD_DIR/unit_websocket_chat: \\

--- 182 unchanged lines hidden ---