6a159e360fc03b39e3356a06b19cb99d7866d265
[reactos.git] / Makefile
1 # Well-known targets:
2 #
3 # all (default target)
4 # This target builds all of ReactOS.
5 #
6 # module
7 # These targets builds a single module. Replace module with the name of
8 # the module you want to build.
9 #
10 # bootcd
11 # This target builds an ISO (ReactOS.iso) from which ReactOS can be booted
12 # and installed.
13 #
14 # livecd
15 # This target builds an ISO (ReactOS-Live.iso) from which ReactOS can be
16 # booted, but not installed.
17 #
18 # install
19 # This target installs all of ReactOS to a location specified by the
20 # ROS_INSTALL environment variable.
21 #
22 # module_install
23 # These targets installs a single module to a location specified by the
24 # ROS_INSTALL environment variable. Replace module with the name of the
25 # module you want to install.
26 #
27 # clean
28 # This target cleans (deletes) all files that are generated when building
29 # ReactOS.
30 #
31 # module_clean
32 # These targets cleans (deletes) files that are generated when building a
33 # single module. Replace module with the name of the module you want to
34 # clean.
35 #
36 # depends
37 # This target does a complete dependency check of the ReactOS codebase.
38 # This can require several minutes to complete. If you only need to check
39 # dependencies for a single or few modules then you can use the
40 # module_depends targets instead. This target can also repair a damaged or
41 # missing makefile-${ROS_ARCH}.auto if needed.
42 #
43 # module_depends
44 # These targets do a dependency check of individual modules. Replace module
45 # with the name of the module for which you want to check dependencies.
46 # This is faster than the depends target which does a complete dependency
47 # check of the ReactOS codebase.
48 #
49 #
50 # Accepted environment variables:
51 #
52 # ROS_ARCH
53 # This variable specifies the name of the architecture to build ReactOS for.
54 # The variable defaults to i386.
55 #
56 # ROS_PREFIX
57 # This variable specifies the prefix of the MinGW installation. On Windows
58 # a prefix is usually not needed, but on linux it is usually "mingw32". If
59 # not present and no executable named "gcc" can be found, then the prefix is
60 # assumed to be "mingw32". If your gcc is named i386-mingw32-gcc then set
61 # ROS_PREFIX to i386-mingw32. Don't include the dash (-) before gcc.
62 #
63 # ROS_INTERMEDIATE
64 # This variable controls where to put intermediate files. Intermediate
65 # files are generated files that are needed to generate the final
66 # output files. Examples of intermediate files include *.o, *.a, and
67 # *.coff. N.B. Don't put a path separator at the end. The variable
68 # defaults to .\obj-{ROS_ARCH}.
69 #
70 # ROS_OUTPUT
71 # This variable controls where to put output files. Output files are
72 # generated files that makes up the result of the build process.
73 # Examples of output files include *.exe, *.dll, and *.sys. N.B. Don't
74 # put a path separator at the end. The variable defaults to .\output-{ROS_ARCH}.
75 #
76 # ROS_CDOUTPUT
77 # This variable controls the name of the ReactOS directory on cdrom.
78 # The variable defaults to reactos.
79 # Warning: setting this value may lead to a not bootable/installable cdrom.
80 #
81 # ROS_TEMPORARY
82 # This variable controls where to put temporary files. Temporary files
83 # are (usually small) generated files that are needed to generate the
84 # intermediate or final output files. Examples of temporary files include
85 # *.rci (preprocessed .rc files for wrc), *.tmp, and *.exp. N.B. Don't put
86 # a path separator at the end. The variable defaults to {ROS_INTERMEDIATE}
87 # directory.
88 #
89 # ROS_INSTALL
90 # This variable controls where to install output files to when using
91 # 'make install'. N.B. Don't put a path separator at the end. The variable
92 # defaults to .\{ROS_CDOUTPUT}.
93 #
94 # ROS_BUILDMAP
95 # This variable controls if map files are to be generated for executable
96 # output files. Map files have the extension .map. The value can be either
97 # full (to build map files with assembly code), yes (to build map files
98 # without source code) or no (to not build any map files). The variable
99 # defaults to no.
100 #
101 # ROS_BUILDNOSTRIP
102 # This variable controls if non-symbol-stripped versions are to be built
103 # of executable output files. Non-symbol-stripped executable output files
104 # have .nostrip added to the filename just before the extension. The value
105 # can be either yes (to build non-symbol-stripped versions of executable
106 # output files) or no (to not build non-symbol-stripped versions of
107 # executable output files). The variable defaults to no.
108 #
109 # ROS_LEAN_AND_MEAN
110 # This variable controls if all binaries should be stripped out of useless
111 # data added by GCC/LD as well as of RSYM symbol data. Output binary size
112 # will go from 80 to 40MB, memory usage from 58 to 38MB and the install CD
113 # from 18 to 13MB. The variable defaults to no.
114 #
115 # ROS_GENERATE_RSYM
116 # This variable controls generation of RSYM symbol data. The value can be
117 # either yes (to generate symbol data) or no. The variable defaults to yes.
118 #
119 # ROS_RBUILDFLAGS
120 # Pass parameters to rbuild.
121 # -v Be verbose.
122 # -c Clean as you go. Delete generated files as soon as they are not needed anymore.
123 # -dd Disable automatic dependencies.
124 # -da Enable automatic dependencies.
125 # -df Enable full dependencies.
126 # -dm{module} Check only automatic dependencies for this module.
127 # -hd Disable precompiled headers.
128 # -mi Let make handle creation of install directories. Rbuild will not generate the directories.
129 # -ps Generate proxy makefiles in source tree instead of the output tree.
130 # -ud Disable compilation units.
131 # -r Input XML
132 #
133 # ROS_AUTOMAKE
134 # Alternate name of makefile-${ROS_ARCH}.auto
135 #
136 # ROS_BUILDENGINE
137 # The Build engine to be used. The variable defaults to rbuild (RBUILD_TARGET)
138 #
139
140 # check for versions of make that don't have features we need...
141 # the function "eval" is only available in 3.80+, which happens to be the minimum
142 # version that has the features we use...
143 # THIS CHECK IS BORROWED FROM THE "GMSL" PROJECT, AND IS COVERED BY THE GPL LICENSE
144 # YOU CAN FIND OUT MORE ABOUT GMSL - A VERY COOL PROJECT - AT:
145 # http://gmsl.sourceforge.net/
146
147 __gmsl_have_eval :=
148 __gmsl_ignore := $(eval __gmsl_have_eval := T)
149
150 ifndef __gmsl_have_eval
151 $(error ReactOS's makefiles use GNU Make 3.80+ features, you have $(MAKE_VERSION), you MUST UPGRADE in order to build ReactOS - Sorry)
152 endif
153 # END of code borrowed from GMSL ( http://gmsl.sourceforge.net/ )
154
155 define NL
156
157
158 endef
159
160 .PHONY: all
161 .PHONY: clean
162 .PHONY: world
163 .PHONY: universe
164
165 ifneq ($(ROS_ARCH),)
166 ARCH := $(ROS_ARCH)
167 else
168 ARCH := i386
169 endif
170
171 ifeq ($(ROS_AUTOMAKE),)
172 ifeq ($(ARCH),i386)
173 ROS_AUTOMAKE=makefile.auto
174 else
175 ROS_AUTOMAKE=makefile-$(ARCH).auto
176 endif
177 endif
178
179 all: $(ROS_AUTOMAKE)
180
181
182 .SUFFIXES:
183
184 ifeq ($(HOST),)
185 ifeq ($(word 1,$(shell gcc -dumpmachine)),mingw32)
186 ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
187 export OSTYPE = msys
188 HOST=mingw32-linux
189 HOST_CFLAGS+=-fshort-wchar
190 HOST_CPPFLAGS+=-fshort-wchar
191 else
192 HOST=mingw32-windows
193 endif
194 else
195 HOST=mingw32-linux
196 HOST_CFLAGS+=-fshort-wchar
197 HOST_CPPFLAGS+=-fshort-wchar
198 endif
199 endif
200
201 # Default to half-verbose mode
202 ifeq ($(VERBOSE),no)
203 Q = @
204 HALFVERBOSEECHO = no
205 BUILDNO_QUIET = -q
206 else
207 ifeq ($(VERBOSE),full)
208 Q =
209 HALFVERBOSEECHO = no
210 BUILDNO_QUIET =
211 else
212 Q = @
213 HALFVERBOSEECHO = yes
214 BUILDNO_QUIET = -q
215 endif
216 endif
217 ifeq ($(HOST),mingw32-linux)
218 QUOTE = "
219 else
220 QUOTE =
221 endif
222 ifeq ($(HALFVERBOSEECHO),yes)
223 ECHO_CP =@echo $(QUOTE)[COPY] $@$(QUOTE)
224 ECHO_MKDIR =@echo $(QUOTE)[MKDIR] $@$(QUOTE)
225 ECHO_BUILDNO =@echo $(QUOTE)[BUILDNO] $@$(QUOTE)
226 ECHO_INVOKE =@echo $(QUOTE)[INVOKE] $<$(QUOTE)
227 ECHO_PCH =@echo $(QUOTE)[PCH] $@$(QUOTE)
228 ECHO_CPP =@echo $(QUOTE)[CPP] $@$(QUOTE)
229 ECHO_CC =@echo $(QUOTE)[CC] $<$(QUOTE)
230 ECHO_HOSTCC =@echo $(QUOTE)[HOST-CC] $<$(QUOTE)
231 ECHO_CL =@echo $(QUOTE)[CL] $<$(QUOTE)
232 ECHO_AS =@echo $(QUOTE)[AS] $<$(QUOTE)
233 ECHO_NASM =@echo $(QUOTE)[NASM] $<$(QUOTE)
234 ECHO_AR =@echo $(QUOTE)[AR] $@$(QUOTE)
235 ECHO_HOSTAR =@echo $(QUOTE)[HOST-AR] $@$(QUOTE)
236 ECHO_WINEBLD =@echo $(QUOTE)[WINEBLD] $@$(QUOTE)
237 ECHO_WRC =@echo $(QUOTE)[WRC] $@$(QUOTE)
238 ECHO_RC =@echo $(QUOTE)[RC] $@$(QUOTE)
239 ECHO_CVTRES =@echo $(QUOTE)[CVTRES] $@$(QUOTE)
240 ECHO_WIDL =@echo $(QUOTE)[WIDL] $@$(QUOTE)
241 ECHO_BIN2RES =@echo $(QUOTE)[BIN2RES] $<$(QUOTE)
242 ECHO_IMPLIB =@echo $(QUOTE)[IMPLIB] $@$(QUOTE)
243 ECHO_LD =@echo $(QUOTE)[LD] $@$(QUOTE)
244 ECHO_HOSTLD =@echo $(QUOTE)[HOST-LD] $@$(QUOTE)
245 ECHO_LINK =@echo $(QUOTE)[LINK] $@$(QUOTE)
246 ECHO_NM =@echo $(QUOTE)[NM] $@$(QUOTE)
247 ECHO_OBJDUMP =@echo $(QUOTE)[OBJDUMP] $@$(QUOTE)
248 ECHO_RBUILD =@echo $(QUOTE)[RBUILD] $@$(QUOTE)
249 ECHO_RSYM =@echo $(QUOTE)[RSYM] $@$(QUOTE)
250 ECHO_PEFIXUP =@echo $(QUOTE)[PEFIXUP] $@$(QUOTE)
251 ECHO_WMC =@echo $(QUOTE)[WMC] $@$(QUOTE)
252 ECHO_NCI =@echo $(QUOTE)[NCI] $@$(QUOTE)
253 ECHO_CABMAN =@echo $(QUOTE)[CABMAN] $<$(QUOTE)
254 ECHO_CDMAKE =@echo $(QUOTE)[CDMAKE] $@$(QUOTE)
255 ECHO_MKHIVE =@echo $(QUOTE)[MKHIVE] $@$(QUOTE)
256 ECHO_REGTESTS=@echo $(QUOTE)[REGTESTS] $@$(QUOTE)
257 ECHO_TEST =@echo $(QUOTE)[TEST] $@$(QUOTE)
258 ECHO_GENDIB =@echo $(QUOTE)[GENDIB] $@$(QUOTE)
259 ECHO_STRIP =@echo $(QUOTE)[STRIP] $@$(QUOTE)
260 ECHO_RGENSTAT=@echo $(QUOTE)[RGENSTAT] $@$(QUOTE)
261 ECHO_DEPENDS =@echo $(QUOTE)[DEPENDS] $<$(QUOTE)
262 ECHO_RSP =@echo $(QUOTE)[RSP] $@$(QUOTE)
263 else
264 ECHO_CP =
265 ECHO_MKDIR =
266 ECHO_BUILDNO =
267 ECHO_INVOKE =
268 ECHO_PCH =
269 ECHO_CPP =
270 ECHO_CC =
271 ECHO_HOSTCC =
272 ECHO_AS =
273 ECHO_NASM =
274 ECHO_AR =
275 ECHO_HOSTAR =
276 ECHO_WINEBLD =
277 ECHO_WRC =
278 ECHO_RC =
279 ECHO_CVTRES =
280 ECHO_WIDL =
281 ECHO_BIN2RES =
282 ECHO_IMPLIB =
283 ECHO_LD =
284 ECHO_HOSTLD =
285 ECHO_NM =
286 ECHO_OBJDUMP =
287 ECHO_RBUILD =
288 ECHO_RSYM =
289 ECHO_WMC =
290 ECHO_NCI =
291 ECHO_CABMAN =
292 ECHO_CDMAKE =
293 ECHO_MKHIVE =
294 ECHO_REGTESTS=
295 ECHO_TEST =
296 ECHO_GENDIB =
297 ECHO_STRIP =
298 ECHO_RGENSTAT=
299 ECHO_DEPENDS =
300 ECHO_RSP =
301 endif
302
303 # Set host compiler/linker
304 ifeq ($(HOST_CC),)
305 HOST_CC = gcc
306 endif
307 ifeq ($(HOST_CPP),)
308 HOST_CPP = g++
309 endif
310 host_gcc = $(Q)$(HOST_CC)
311 host_gpp = $(Q)$(HOST_CPP)
312 host_ld = $(Q)ld
313 host_ar = $(Q)ar
314 host_objcopy = $(Q)objcopy
315
316 # Set target compiler/linker
317 ifneq ($(ROS_PREFIX),)
318 PREFIX_ := $(ROS_PREFIX)-
319 else
320 ifeq ($(HOST),mingw32-linux)
321 PREFIX_ := mingw32-
322 else
323 PREFIX_ :=
324 endif
325 endif
326 ifeq ($(TARGET_CC),)
327 TARGET_CC = $(PREFIX_)gcc
328 endif
329 ifeq ($(TARGET_CPP),)
330 TARGET_CPP = $(PREFIX_)g++
331 endif
332 gcc = $(Q)$(TARGET_CC)
333 gpp = $(Q)$(TARGET_CPP)
334 gas = $(Q)$(TARGET_CC) -x assembler-with-cpp
335 ld = $(Q)$(PREFIX_)ld
336 nm = $(Q)$(PREFIX_)nm
337 objdump = $(Q)$(PREFIX_)objdump
338 ar = $(Q)$(PREFIX_)ar
339 objcopy = $(Q)$(PREFIX_)objcopy
340 dlltool = $(Q)$(PREFIX_)dlltool
341 strip = $(Q)$(PREFIX_)strip
342 windres = $(Q)$(PREFIX_)windres
343
344 # Set utilities
345 ifeq ($(OSTYPE),msys)
346 HOST=mingw32-linux
347 endif
348 ifeq ($(HOST),mingw32-linux)
349 ifeq ($(OSTYPE),msys)
350 export EXEPOSTFIX = .exe
351 else
352 export EXEPOSTFIX =
353 endif
354 export SEP = /
355 mkdir = -$(Q)mkdir -p
356 rm = $(Q)rm -f
357 cp = $(Q)cp
358 NUL = /dev/null
359 else # mingw32-windows
360 export EXEPOSTFIX = .exe
361 ROS_EMPTY =
362 export SEP = \$(ROS_EMPTY)
363 mkdir = -$(Q)mkdir
364 rm = $(Q)del /f /q
365 cp = $(Q)copy /y
366 NUL = NUL
367 endif
368
369 ifneq ($(ROS_INTERMEDIATE),)
370 INTERMEDIATE := $(ROS_INTERMEDIATE)
371 else
372 INTERMEDIATE := obj-$(ARCH)
373 endif
374 INTERMEDIATE_ := $(INTERMEDIATE)$(SEP)
375
376 ifneq ($(ROS_OUTPUT),)
377 OUTPUT := $(ROS_OUTPUT)
378 else
379 OUTPUT := output-$(ARCH)
380 endif
381 OUTPUT_ := $(OUTPUT)$(SEP)
382
383 ifneq ($(ROS_CDOUTPUT),)
384 CDOUTPUT := $(ROS_CDOUTPUT)
385 else
386 CDOUTPUT := reactos
387 endif
388 CDOUTPUT_ := $(CDOUTPUT)$(SEP)
389
390 ifneq ($(ROS_TEMPORARY),)
391 TEMPORARY := $(ROS_TEMPORARY)
392 else
393 TEMPORARY := $(INTERMEDIATE)
394 endif
395 TEMPORARY_ := $(TEMPORARY)$(SEP)
396
397 ifneq ($(ROS_INSTALL),)
398 INSTALL := $(ROS_INSTALL)
399 else
400 INSTALL := $(CDOUTPUT)
401 endif
402 INSTALL_ := $(INSTALL)$(SEP)
403
404 RBUILD_FLAGS := -rReactOS-$(ARCH).rbuild -DARCH=$(ARCH)
405
406 $(INTERMEDIATE):
407 $(ECHO_MKDIR)
408 ${mkdir} $@
409
410 ifneq ($(INTERMEDIATE),$(OUTPUT))
411 $(OUTPUT):
412 $(ECHO_MKDIR)
413 ${mkdir} $@
414 endif
415
416 ifneq ($(TEMPORARY),$(INTERMEDIATE))
417 ifneq ($(TEMPORARY),$(OUTPUT))
418 $(TEMPORARY):
419 $(ECHO_MKDIR)
420 ${mkdir} $@
421 endif
422 endif
423
424 BUILDNO_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)buildno.h
425
426 include lib/lib.mak
427 include tools/tools.mak
428 -include $(ROS_AUTOMAKE)
429
430 PREAUTO := \
431 $(BIN2C_TARGET) \
432 $(BIN2RES_TARGET) \
433 $(BUILDNO_H) \
434 $(GENDIB_DIB_FILES) \
435 $(NCI_SERVICE_FILES)
436
437 ifeq ($(ARCH),powerpc)
438 PREAUTO += $(OFW_INTERFACE_SERVICE_FILES) $(PPCMMU_TARGETS)
439 endif
440
441 ifeq ($(ROS_BUILDENGINE),)
442 ROS_BUILDENGINE=$(RBUILD_TARGET)
443 endif
444
445 $(ROS_AUTOMAKE): $(ROS_BUILDENGINE) $(XMLBUILDFILES) | $(PREAUTO)
446 ${mkdir} $(OUTPUT_)media$(SEP)inf 2>$(NUL)
447 $(ECHO_RBUILD)
448 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw
449
450 world: all bootcd livecd
451
452 universe:
453 $(MAKE) KDBG=1 DBG=1 \
454 ROS_AUTOMAKE=makefile-$(ARCH)-kd.auto \
455 ROS_INSTALL=reactos-$(ARCH)-kd \
456 ROS_INTERMEDIATE=obj-$(ARCH)-kd \
457 ROS_OUTPUT=output-$(ARCH)-kd \
458 world
459 $(MAKE) KDBG=0 DBG=1 \
460 ROS_AUTOMAKE=makefile-$(ARCH)-d.auto \
461 ROS_INSTALL=reactos-$(ARCH)-d \
462 ROS_INTERMEDIATE=obj-$(ARCH)-d \
463 ROS_OUTPUT=output-$(ARCH)-d \
464 world
465 $(MAKE) KDBG=0 DBG=0 \
466 ROS_AUTOMAKE=makefile-$(ARCH)-r.auto \
467 ROS_INSTALL=reactos-$(ARCH)-r \
468 ROS_INTERMEDIATE=obj-$(ARCH)-r \
469 ROS_OUTPUT=output-$(ARCH)-r \
470 world
471
472 .PHONY: rgenstat
473 rgenstat: $(RGENSTAT_TARGET)
474 $(ECHO_RGENSTAT)
475 $(Q)$(RGENSTAT_TARGET) apistatus.lst apistatus.xml
476
477 .PHONY: cb
478 cb: $(ROS_BUILDENGINE)
479 $(ECHO_RBUILD)
480 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) cb
481
482 .PHONY: msbuild
483 msbuild: $(ROS_BUILDENGINE)
484 $(ECHO_RBUILD)
485 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msbuild
486
487 .PHONY: msbuild_clean
488 msbuild_clean: $(ROS_BUILDENGINE)
489 $(ECHO_RBUILD)
490 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msbuild
491
492 .PHONY: depmap
493 depmap: $(ROS_BUILDENGINE)
494 $(ECHO_RBUILD)
495 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) depmap
496
497 .PHONY: vreport
498 vreport:$(ROS_BUILDENGINE)
499 $(ECHO_RBUILD)
500 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) vreport
501
502 .PHONY: msvc
503 msvc: $(ROS_BUILDENGINE)
504 $(ECHO_RBUILD)
505 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msvc
506
507 .PHONY: msvc6
508 msvc6: $(ROS_BUILDENGINE)
509 $(ECHO_RBUILD)
510 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs6.00 -voversionconfiguration msvc
511
512 .PHONY: msvc7
513 msvc7: $(ROS_BUILDENGINE)
514 $(ECHO_RBUILD)
515 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -voversionconfiguration msvc
516
517 .PHONY: msvc71
518 msvc71: $(ROS_BUILDENGINE)
519 $(ECHO_RBUILD)
520 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -voversionconfiguration msvc
521
522 .PHONY: msvc8
523 msvc8: $(ROS_BUILDENGINE)
524 $(ECHO_RBUILD)
525 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -voversionconfiguration msvc
526
527 .PHONY: msvc9
528 msvc9: $(ROS_BUILDENGINE)
529 $(ECHO_RBUILD)
530 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs9.00 -voversionconfiguration msvc
531
532 .PHONY: msvc10
533 msvc10: $(ROS_BUILDENGINE)
534 $(ECHO_RBUILD)
535 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs10.00 -voversionconfiguration msvc
536
537 .PHONY: msvc6_clean
538 msvc6_clean: $(ROS_BUILDENGINE)
539 $(ECHO_RBUILD)
540 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00 -voversionconfiguration msvc
541
542 .PHONY: msvc7_clean
543 msvc7_clean: $(ROS_BUILDENGINE)
544 $(ECHO_RBUILD)
545 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00 -voversionconfiguration msvc
546
547 .PHONY: msvc71_clean
548 msvc71_clean: $(ROS_BUILDENGINE)
549 $(ECHO_RBUILD)
550 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10 -voversionconfiguration msvc
551
552 .PHONY: msvc8_clean
553 msvc8_clean: $(ROS_BUILDENGINE)
554 $(ECHO_RBUILD)
555 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.00 -voversionconfiguration msvc
556
557 .PHONY: msvc9_clean
558 msvc9_clean: $(ROS_BUILDENGINE)
559 $(ECHO_RBUILD)
560 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs9.00 -voversionconfiguration msvc
561
562 .PHONY: msvc10_clean
563 msvc10_clean: $(ROS_BUILDENGINE)
564 $(ECHO_RBUILD)
565 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs10.00 -voversionconfiguration msvc
566
567 .PHONY: msvc_clean
568 msvc_clean: $(ROS_BUILDENGINE)
569 $(ECHO_RBUILD)
570 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msvc
571
572 .PHONY: msvc_clean_all
573 msvc_clean_all: $(ROS_BUILDENGINE)
574 $(ECHO_RBUILD)
575 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00 -voversionconfiguration msvc
576 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00 -voversionconfiguration msvc
577 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10 -voversionconfiguration msvc
578 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.10 -voversionconfiguration msvc
579
580 .PHONY: msvc7_install_debug
581 msvc7_install_debug: $(ROS_BUILDENGINE)
582 $(ECHO_RBUILD)
583 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcdebug -voversionconfiguration msvc
584
585 .PHONY: msvc7_install_release
586 msvc7_install_release: $(ROS_BUILDENGINE)
587 $(ECHO_RBUILD)
588 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcrelease -voversionconfiguration msvc
589
590 .PHONY: msvc7_install_speed
591 msvc7_install_speed: $(ROS_BUILDENGINE)
592 $(ECHO_RBUILD)
593 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcspeed -voversionconfiguration msvc
594
595 .PHONY: msvc71_install_debug
596 msvc71_install_debug: $(ROS_BUILDENGINE)
597 $(ECHO_RBUILD)
598 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcdebug -voversionconfiguration msvc
599
600 .PHONY: msvc71_install_release
601 msvc71_install_release: $(ROS_BUILDENGINE)
602 $(ECHO_RBUILD)
603 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcrelease -voversionconfiguration msvc
604
605
606 .PHONY: msvc71_install_speed
607 msvc71_install_speed: $(ROS_BUILDENGINE)
608 $(ECHO_RBUILD)
609 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcspeed -voversionconfiguration msvc
610
611 .PHONY: msvc8_install_debug
612 msvc8_install_debug: $(ROS_BUILDENGINE)
613 $(ECHO_RBUILD)
614 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcdebug -voversionconfiguration msvc
615
616 .PHONY: msvc8_install_release
617 msvc8_install_release: $(ROS_BUILDENGINE)
618 $(ECHO_RBUILD)
619 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcrelease -voversionconfiguration msvc
620
621 .PHONY: msvc8_install_speed
622 msvc8_install_speed: $(ROS_BUILDENGINE)
623 $(ECHO_RBUILD)
624 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcspeed -voversionconfiguration msvc
625
626 .PHONY: makefile_auto_clean
627 makefile_auto_clean:
628 -@$(rm) $(ROS_AUTOMAKE) $(PREAUTO) 2>$(NUL)
629
630 .PHONY: clean
631 clean: makefile_auto_clean
632
633 .PHONY: depends
634 depends: $(ROS_BUILDENGINE)
635 $(ECHO_RBUILD)
636 $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw