As described in documentation, default TEMPORARY variable to current directory (...
[reactos.git] / reactos / 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 the current
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_RBUILDFLAGS
116 # Pass parameters to rbuild.
117 # -v Be verbose.
118 # -c Clean as you go. Delete generated files as soon as they are not needed anymore.
119 # -dd Disable automatic dependencies.
120 # -dm{module} Check only automatic dependencies for this module.
121 # -mi Let make handle creation of install directories. Rbuild will not generate the directories.
122 # -ps Generate proxy makefiles in source tree instead of the output tree.
123 # -ud Disable compilation units.
124 # -r Input XML
125 #
126 # ROS_AUTOMAKE
127 # Alternate name of makefile.auto
128 #
129
130 # check for versions of make that don't have features we need...
131 # the function "eval" is only available in 3.80+, which happens to be the minimum
132 # version that has the features we use...
133 # THIS CHECK IS BORROWED FROM THE "GMSL" PROJECT, AND IS COVERED BY THE GPL LICENSE
134 # YOU CAN FIND OUT MORE ABOUT GMSL - A VERY COOL PROJECT - AT:
135 # http://gmsl.sourceforge.net/
136
137 __gmsl_have_eval :=
138 __gmsl_ignore := $(eval __gmsl_have_eval := T)
139
140 ifndef __gmsl_have_eval
141 $(error ReactOS's makefiles use GNU Make 3.80+ features, you have $(MAKE_VERSION), you MUST UPGRADE in order to build ReactOS - Sorry)
142 endif
143 # END of code borrowed from GMSL ( http://gmsl.sourceforge.net/ )
144
145 .PHONY: all
146 .PHONY: clean
147 .PHONY: world
148 .PHONY: universe
149
150 ifneq ($(ROS_ARCH),)
151 ARCH := $(ROS_ARCH)
152 else
153 ARCH := i386
154 endif
155
156 ifeq ($(ROS_AUTOMAKE),)
157 ROS_AUTOMAKE=makefile.auto
158 endif
159
160 all: $(ROS_AUTOMAKE)
161
162
163 .SUFFIXES:
164
165 ifeq ($(HOST),)
166 ifeq ($(word 1,$(shell gcc -dumpmachine)),mingw32)
167 ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
168 export OSTYPE = msys
169 HOST=mingw32-linux
170 HOST_CFLAGS+=-fshort-wchar
171 HOST_CPPFLAGS+=-fshort-wchar
172 else
173 HOST=mingw32-windows
174 endif
175 else
176 HOST=mingw32-linux
177 HOST_CFLAGS+=-fshort-wchar
178 HOST_CPPFLAGS+=-fshort-wchar
179 endif
180 endif
181
182 # Default to half-verbose mode
183 ifeq ($(VERBOSE),no)
184 Q = @
185 HALFVERBOSEECHO = no
186 BUILDNO_QUIET = -q
187 else
188 ifeq ($(VERBOSE),full)
189 Q =
190 HALFVERBOSEECHO = no
191 BUILDNO_QUIET =
192 else
193 Q = @
194 HALFVERBOSEECHO = yes
195 BUILDNO_QUIET = -q
196 endif
197 endif
198 ifeq ($(HOST),mingw32-linux)
199 QUOTE = "
200 else
201 QUOTE =
202 endif
203 ifeq ($(HALFVERBOSEECHO),yes)
204 ECHO_CP =@echo $(QUOTE)[COPY] $@$(QUOTE)
205 ECHO_MKDIR =@echo $(QUOTE)[MKDIR] $@$(QUOTE)
206 ECHO_BUILDNO =@echo $(QUOTE)[BUILDNO] $@$(QUOTE)
207 ECHO_INVOKE =@echo $(QUOTE)[INVOKE] $<$(QUOTE)
208 ECHO_PCH =@echo $(QUOTE)[PCH] $@$(QUOTE)
209 ECHO_CC =@echo $(QUOTE)[CC] $<$(QUOTE)
210 ECHO_GAS =@echo $(QUOTE)[GAS] $<$(QUOTE)
211 ECHO_NASM =@echo $(QUOTE)[NASM] $<$(QUOTE)
212 ECHO_AR =@echo $(QUOTE)[AR] $@$(QUOTE)
213 ECHO_WINEBLD =@echo $(QUOTE)[WINEBLD] $@$(QUOTE)
214 ECHO_WRC =@echo $(QUOTE)[WRC] $@$(QUOTE)
215 ECHO_WIDL =@echo $(QUOTE)[WIDL] $@$(QUOTE)
216 ECHO_BIN2RES =@echo $(QUOTE)[BIN2RES] $<$(QUOTE)
217 ECHO_DLLTOOL =@echo $(QUOTE)[DLLTOOL] $@$(QUOTE)
218 ECHO_LD =@echo $(QUOTE)[LD] $@$(QUOTE)
219 ECHO_NM =@echo $(QUOTE)[NM] $@$(QUOTE)
220 ECHO_OBJDUMP =@echo $(QUOTE)[OBJDUMP] $@$(QUOTE)
221 ECHO_RBUILD =@echo $(QUOTE)[RBUILD] $@$(QUOTE)
222 ECHO_RSYM =@echo $(QUOTE)[RSYM] $@$(QUOTE)
223 ECHO_WMC =@echo $(QUOTE)[WMC] $@$(QUOTE)
224 ECHO_NCI =@echo $(QUOTE)[NCI] $@$(QUOTE)
225 ECHO_CABMAN =@echo $(QUOTE)[CABMAN] $<$(QUOTE)
226 ECHO_CDMAKE =@echo $(QUOTE)[CDMAKE] $@$(QUOTE)
227 ECHO_MKHIVE =@echo $(QUOTE)[MKHIVE] $@$(QUOTE)
228 ECHO_REGTESTS=@echo $(QUOTE)[REGTESTS] $@$(QUOTE)
229 ECHO_TEST =@echo $(QUOTE)[TEST] $@$(QUOTE)
230 ECHO_GENDIB =@echo $(QUOTE)[GENDIB] $@$(QUOTE)
231 ECHO_STRIP =@echo $(QUOTE)[STRIP] $@$(QUOTE)
232 else
233 ECHO_CP =
234 ECHO_MKDIR =
235 ECHO_BUILDNO =
236 ECHO_INVOKE =
237 ECHO_PCH =
238 ECHO_CC =
239 ECHO_GAS =
240 ECHO_NASM =
241 ECHO_AR =
242 ECHO_WINEBLD =
243 ECHO_WRC =
244 ECHO_WIDL =
245 ECHO_BIN2RES =
246 ECHO_DLLTOOL =
247 ECHO_LD =
248 ECHO_NM =
249 ECHO_OBJDUMP =
250 ECHO_RBUILD =
251 ECHO_RSYM =
252 ECHO_WMC =
253 ECHO_NCI =
254 ECHO_CABMAN =
255 ECHO_CDMAKE =
256 ECHO_MKHIVE =
257 ECHO_REGTESTS=
258 ECHO_TEST =
259 ECHO_GENDIB =
260 ECHO_STRIP =
261 endif
262
263
264 host_gcc = $(Q)gcc
265 host_gpp = $(Q)g++
266 host_ld = $(Q)ld
267 host_ar = $(Q)ar
268 host_objcopy = $(Q)objcopy
269 ifeq ($(HOST),mingw32-linux)
270 export EXEPREFIX = ./
271 ifeq ($(OSTYPE),msys)
272 export EXEPOSTFIX = .exe
273 else
274 export EXEPOSTFIX =
275 endif
276 export SEP = /
277 mkdir = -$(Q)mkdir -p
278 gcc = $(Q)$(PREFIX)-gcc
279 gpp = $(Q)$(PREFIX)-g++
280 ld = $(Q)$(PREFIX)-ld
281 nm = $(Q)$(PREFIX)-nm
282 objdump = $(Q)$(PREFIX)-objdump
283 ar = $(Q)$(PREFIX)-ar
284 objcopy = $(Q)$(PREFIX)-objcopy
285 dlltool = $(Q)$(PREFIX)-dlltool
286 strip = $(Q)$(PREFIX)-strip
287 windres = $(Q)$(PREFIX)-windres
288 rm = $(Q)rm -f
289 cp = $(Q)cp
290 NUL = /dev/null
291 else # mingw32-windows
292 ifeq ($(OSTYPE),msys)
293 HOST=mingw32-linux
294 export EXEPREFIX = ./
295 export EXEPOSTFIX = .exe
296 export SEP = /
297 mkdir = -$(Q)mkdir -p
298 rm = $(Q)rm -f
299 cp = $(Q)cp
300 NUL = /dev/null
301 else
302 export EXEPREFIX =
303 export EXEPOSTFIX = .exe
304 ROS_EMPTY =
305 export SEP = \$(ROS_EMPTY)
306 mkdir = -$(Q)mkdir
307 rm = $(Q)del /f /q
308 cp = $(Q)copy /y
309 NUL = NUL
310 endif
311 ifeq ($(ROS_PREFIX),)
312 gcc = $(Q)gcc
313 gpp = $(Q)g++
314 ld = $(Q)ld
315 nm = $(Q)nm
316 objdump = $(Q)objdump
317 ar = $(Q)ar
318 objcopy = $(Q)objcopy
319 dlltool = $(Q)dlltool
320 strip = $(Q)strip
321 windres = $(Q)windres
322 else
323 gcc = $(Q)$(ROS_PREFIX)-gcc
324 gpp = $(Q)$(ROS_PREFIX)-g++
325 ld = $(Q)$(ROS_PREFIX)-ld
326 nm = $(Q)$(ROS_PREFIX)-nm
327 objdump = $(Q)$(ROS_PREFIX)-objdump
328 ar = $(Q)$(ROS_PREFIX)-ar
329 objcopy = $(Q)$(ROS_PREFIX)-objcopy
330 dlltool = $(Q)$(ROS_PREFIX)-dlltool
331 strip = $(Q)$(ROS_PREFIX)-strip
332 windres = $(Q)$(ROS_PREFIX)-windres
333 endif
334 endif
335
336 ifneq ($(ROS_INTERMEDIATE),)
337 INTERMEDIATE := $(ROS_INTERMEDIATE)
338 else
339 INTERMEDIATE := obj-$(ARCH)
340 endif
341 INTERMEDIATE_ := $(INTERMEDIATE)$(SEP)
342
343 ifneq ($(ROS_OUTPUT),)
344 OUTPUT := $(ROS_OUTPUT)
345 else
346 OUTPUT := output-$(ARCH)
347 endif
348 OUTPUT_ := $(OUTPUT)$(SEP)
349
350 ifneq ($(ROS_CDOUTPUT),)
351 CDOUTPUT := $(ROS_CDOUTPUT)
352 else
353 CDOUTPUT := reactos
354 endif
355 CDOUTPUT_ := $(CDOUTPUT)$(SEP)
356
357 ifneq ($(ROS_TEMPORARY),)
358 TEMPORARY := $(ROS_TEMPORARY)
359 else
360 TEMPORARY := .
361 endif
362 TEMPORARY_ := $(TEMPORARY)$(SEP)
363
364 ifneq ($(ROS_INSTALL),)
365 INSTALL := $(ROS_INSTALL)
366 else
367 INSTALL := $(CDOUTPUT)
368 endif
369 INSTALL_ := $(INSTALL)$(SEP)
370
371 RBUILD_FLAGS := -rReactOS-$(ARCH).rbuild -DARCH=$(ARCH)
372
373 $(INTERMEDIATE):
374 ${mkdir} $@
375
376 ifneq ($(INTERMEDIATE),$(OUTPUT))
377 $(OUTPUT):
378 ${mkdir} $@
379 endif
380
381
382 NTOSKRNL_MC = ntoskrnl$(SEP)ntoskrnl.mc
383 KERNEL32_MC = dll$(SEP)win32$(SEP)kernel32$(SEP)kernel32.mc
384 BUILDNO_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)buildno.h
385 BUGCODES_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)bugcodes.h
386 BUGCODES_RC = $(INTERMEDIATE_)ntoskrnl$(SEP)bugcodes.rc
387 ERRCODES_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)errcodes.h
388 ERRCODES_RC = $(INTERMEDIATE_)dll$(SEP)win32$(SEP)kernel32$(SEP)errcodes.rc
389
390
391 include lib/lib.mak
392 include tools/tools.mak
393 include boot/freeldr/bootsect/bootsect.mak
394 -include $(ROS_AUTOMAKE)
395
396 PREAUTO := \
397 $(BIN2C_TARGET) \
398 $(BIN2RES_TARGET) \
399 $(BUILDNO_H) \
400 $(BUGCODES_H) \
401 $(BUGCODES_RC) \
402 $(ERRCODES_H) \
403 $(ERRCODES_RC) \
404 $(GENDIB_DIB_FILES) \
405 $(NCI_SERVICE_FILES)
406 ifeq ($(ARCH),powerpc)
407 PREAUTO += $(OFW_INTERFACE_SERVICE_FILES) $(PPCMMU_TARGETS)
408 endif
409
410 $(ROS_AUTOMAKE): $(RBUILD_TARGET) $(PREAUTO) $(XMLBUILDFILES)
411 ${mkdir} $(OUTPUT_)media$(SEP)inf 2>$(NUL)
412 $(ECHO_RBUILD)
413 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw
414
415 world: all bootcd livecd
416
417 universe:
418 $(MAKE) KDBG=1 DBG=1 \
419 ROS_AUTOMAKE=makefile-$(ARCH)-kd.auto \
420 ROS_INSTALL=reactos-$(ARCH)-kd \
421 ROS_INTERMEDIATE=obj-$(ARCH)-kd \
422 ROS_OUTPUT=output-$(ARCH)-kd \
423 world
424 $(MAKE) KDBG=0 DBG=1 \
425 ROS_AUTOMAKE=makefile-$(ARCH)-d.auto \
426 ROS_INSTALL=reactos-$(ARCH)-d \
427 ROS_INTERMEDIATE=obj-$(ARCH)-d \
428 ROS_OUTPUT=output-$(ARCH)-d \
429 world
430 $(MAKE) KDBG=0 DBG=0 \
431 ROS_AUTOMAKE=makefile-$(ARCH)-r.auto \
432 ROS_INSTALL=reactos-$(ARCH)-r \
433 ROS_INTERMEDIATE=obj-$(ARCH)-r \
434 ROS_OUTPUT=output-$(ARCH)-r \
435 world
436
437 sysregtest:
438 $(OUTPUT_)tools$(SEP)sysreg$(SEP)sysreg$(EXEPOSTFIX) tools$(SEP)sysreg$(SEP)txtmode.cfg
439 $(OUTPUT_)tools$(SEP)sysreg$(SEP)sysreg$(EXEPOSTFIX) tools$(SEP)sysreg$(SEP)txtmode.cfg
440 $(OUTPUT_)tools$(SEP)sysreg$(SEP)sysreg$(EXEPOSTFIX) tools$(SEP)sysreg$(SEP)txtmode.cfg
441
442 .PHONY: cb
443 cb: $(RBUILD_TARGET)
444 $(ECHO_RBUILD)
445 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) cb
446
447 .PHONY: msbuild
448 msbuild: $(RBUILD_TARGET)
449 $(ECHO_RBUILD)
450 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msbuild
451
452 .PHONY: msbuild_clean
453 msbuild_clean: $(RBUILD_TARGET)
454 $(ECHO_RBUILD)
455 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msbuild
456
457 .PHONY: depmap
458 depmap: $(RBUILD_TARGET)
459 $(ECHO_RBUILD)
460 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) depmap
461
462 .PHONY: vreport
463 vreport:$(RBUILD_TARGET)
464 $(ECHO_RBUILD)
465 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) vreport
466
467 .PHONY: msvc
468 msvc: $(RBUILD_TARGET)
469 $(ECHO_RBUILD)
470 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msvc
471
472 $(BUGCODES_H) $(BUGCODES_RC): $(WMC_TARGET) $(NTOSKRNL_MC)
473 ${mkdir} $(INTERMEDIATE_)include$(SEP)reactos 2>$(NUL)
474 ${mkdir} $(INTERMEDIATE_)ntoskrnl 2>$(NUL)
475 $(ECHO_WMC)
476 $(Q)$(WMC_TARGET) -i -H $(BUGCODES_H) -o $(BUGCODES_RC) $(NTOSKRNL_MC)
477
478 $(ERRCODES_H) $(ERRCODES_RC): $(WMC_TARGET) $(KERNEL32_MC)
479 ${mkdir} $(INTERMEDIATE_)include$(SEP)reactos 2>$(NUL)
480 ${mkdir} $(INTERMEDIATE_)dll$(SEP)win32$(SEP)kernel32 2>$(NUL)
481 $(ECHO_WMC)
482 $(Q)$(WMC_TARGET) -i -U -H $(ERRCODES_H) -o $(ERRCODES_RC) $(KERNEL32_MC)
483
484 .PHONY: msvc6
485 msvc6: $(RBUILD_TARGET)
486 $(ECHO_RBUILD)
487 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs6.00 -voversionconfiguration msvc
488
489 .PHONY: msvc7
490 msvc7: $(RBUILD_TARGET)
491 $(ECHO_RBUILD)
492 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -voversionconfiguration msvc
493
494 .PHONY: msvc71
495 msvc71: $(RBUILD_TARGET)
496 $(ECHO_RBUILD)
497 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -voversionconfiguration msvc
498
499 .PHONY: msvc8
500 msvc8: $(RBUILD_TARGET)
501 $(ECHO_RBUILD)
502 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -voversionconfiguration msvc
503
504 .PHONY: msvc9
505 msvc9: $(RBUILD_TARGET)
506 $(ECHO_RBUILD)
507 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs9.00 -voversionconfiguration msvc
508
509 .PHONY: msvc6_clean
510 msvc6_clean: $(RBUILD_TARGET)
511 $(ECHO_RBUILD)
512 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00 -voversionconfiguration msvc
513
514 .PHONY: msvc7_clean
515 msvc7_clean: $(RBUILD_TARGET)
516 $(ECHO_RBUILD)
517 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00 -voversionconfiguration msvc
518
519 .PHONY: msvc71_clean
520 msvc71_clean: $(RBUILD_TARGET)
521 $(ECHO_RBUILD)
522 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10 -voversionconfiguration msvc
523
524 .PHONY: msvc8_clean
525 msvc8_clean: $(RBUILD_TARGET)
526 $(ECHO_RBUILD)
527 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.00 -voversionconfiguration msvc
528
529 .PHONY: msvc9_clean
530 msvc9_clean: $(RBUILD_TARGET)
531 $(ECHO_RBUILD)
532 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs9.00 -voversionconfiguration msvc
533
534 .PHONY: msvc_clean
535 msvc_clean: $(RBUILD_TARGET)
536 $(ECHO_RBUILD)
537 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msvc
538
539 .PHONY: msvc_clean_all
540 msvc_clean_all: $(RBUILD_TARGET)
541 $(ECHO_RBUILD)
542 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00 -voversionconfiguration msvc
543 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00 -voversionconfiguration msvc
544 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10 -voversionconfiguration msvc
545 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.10 -voversionconfiguration msvc
546
547 .PHONY: msvc7_install_debug
548 msvc7_install_debug: $(RBUILD_TARGET)
549 $(ECHO_RBUILD)
550 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcdebug -voversionconfiguration msvc
551
552 .PHONY: msvc7_install_release
553 msvc7_install_release: $(RBUILD_TARGET)
554 $(ECHO_RBUILD)
555 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcrelease -voversionconfiguration msvc
556
557 .PHONY: msvc7_install_speed
558 msvc7_install_speed: $(RBUILD_TARGET)
559 $(ECHO_RBUILD)
560 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcspeed -voversionconfiguration msvc
561
562 .PHONY: msvc71_install_debug
563 msvc71_install_debug: $(RBUILD_TARGET)
564 $(ECHO_RBUILD)
565 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcdebug -voversionconfiguration msvc
566
567 .PHONY: msvc71_install_release
568 msvc71_install_release: $(RBUILD_TARGET)
569 $(ECHO_RBUILD)
570 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcrelease -voversionconfiguration msvc
571
572
573 .PHONY: msvc71_install_speed
574 msvc71_install_speed: $(RBUILD_TARGET)
575 $(ECHO_RBUILD)
576 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcspeed -voversionconfiguration msvc
577
578 .PHONY: msvc8_install_debug
579 msvc8_install_debug: $(RBUILD_TARGET)
580 $(ECHO_RBUILD)
581 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcdebug -voversionconfiguration msvc
582
583 .PHONY: msvc8_install_release
584 msvc8_install_release: $(RBUILD_TARGET)
585 $(ECHO_RBUILD)
586 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcrelease -voversionconfiguration msvc
587
588 .PHONY: msvc8_install_speed
589 msvc8_install_speed: $(RBUILD_TARGET)
590 $(ECHO_RBUILD)
591 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcspeed -voversionconfiguration msvc
592
593 .PHONY: makefile_auto_clean
594 makefile_auto_clean:
595 -@$(rm) $(ROS_AUTOMAKE) $(PREAUTO) 2>$(NUL)
596
597 .PHONY: clean
598 clean: makefile_auto_clean
599
600 .PHONY: depends
601 depends: $(RBUILD_TARGET)
602 $(ECHO_RBUILD)
603 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw