No need to define __USE_W32API
[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 # Set host compiler/linker
264 ifeq ($(HOST_CC),)
265 HOST_CC = gcc
266 endif
267 ifeq ($(HOST_CPP),)
268 HOST_CPP = g++
269 endif
270 host_gcc = $(Q)$(HOST_CC)
271 host_gpp = $(Q)$(HOST_CPP)
272 host_ld = $(Q)ld
273 host_ar = $(Q)ar
274 host_objcopy = $(Q)objcopy
275
276 # Set target compiler/linker
277 ifneq ($(ROS_PREFIX),)
278 PREFIX_ := $(ROS_PREFIX)-
279 else
280 ifeq ($(HOST),mingw32-linux)
281 PREFIX_ := mingw32-
282 else
283 PREFIX_ :=
284 endif
285 endif
286 ifeq ($(TARGET_CC),)
287 TARGET_CC = $(PREFIX_)gcc
288 endif
289 ifeq ($(TARGET_CPP),)
290 TARGET_CPP = $(PREFIX_)g++
291 endif
292 gcc = $(Q)$(TARGET_CC)
293 gpp = $(Q)$(TARGET_CPP)
294 ld = $(Q)$(PREFIX_)ld
295 nm = $(Q)$(PREFIX_)nm
296 objdump = $(Q)$(PREFIX_)objdump
297 ar = $(Q)$(PREFIX_)ar
298 objcopy = $(Q)$(PREFIX_)objcopy
299 dlltool = $(Q)$(PREFIX_)dlltool
300 strip = $(Q)$(PREFIX_)strip
301 windres = $(Q)$(PREFIX_)windres
302
303 # Set utilities
304 ifeq ($(OSTYPE),msys)
305 HOST=mingw32-linux
306 endif
307 ifeq ($(HOST),mingw32-linux)
308 export EXEPREFIX = ./
309 ifeq ($(OSTYPE),msys)
310 export EXEPOSTFIX = .exe
311 else
312 export EXEPOSTFIX =
313 endif
314 export SEP = /
315 mkdir = -$(Q)mkdir -p
316 rm = $(Q)rm -f
317 cp = $(Q)cp
318 NUL = /dev/null
319 else # mingw32-windows
320 export EXEPREFIX =
321 export EXEPOSTFIX = .exe
322 ROS_EMPTY =
323 export SEP = \$(ROS_EMPTY)
324 mkdir = -$(Q)mkdir
325 rm = $(Q)del /f /q
326 cp = $(Q)copy /y
327 NUL = NUL
328 endif
329
330 ifneq ($(ROS_INTERMEDIATE),)
331 INTERMEDIATE := $(ROS_INTERMEDIATE)
332 else
333 INTERMEDIATE := obj-$(ARCH)
334 endif
335 INTERMEDIATE_ := $(INTERMEDIATE)$(SEP)
336
337 ifneq ($(ROS_OUTPUT),)
338 OUTPUT := $(ROS_OUTPUT)
339 else
340 OUTPUT := output-$(ARCH)
341 endif
342 OUTPUT_ := $(OUTPUT)$(SEP)
343
344 ifneq ($(ROS_CDOUTPUT),)
345 CDOUTPUT := $(ROS_CDOUTPUT)
346 else
347 CDOUTPUT := reactos
348 endif
349 CDOUTPUT_ := $(CDOUTPUT)$(SEP)
350
351 ifneq ($(ROS_TEMPORARY),)
352 TEMPORARY := $(ROS_TEMPORARY)
353 else
354 TEMPORARY := .
355 endif
356 TEMPORARY_ := $(TEMPORARY)$(SEP)
357
358 ifneq ($(ROS_INSTALL),)
359 INSTALL := $(ROS_INSTALL)
360 else
361 INSTALL := $(CDOUTPUT)
362 endif
363 INSTALL_ := $(INSTALL)$(SEP)
364
365 RBUILD_FLAGS := -rReactOS-$(ARCH).rbuild -DARCH=$(ARCH)
366
367 $(INTERMEDIATE):
368 ${mkdir} $@
369
370 ifneq ($(INTERMEDIATE),$(OUTPUT))
371 $(OUTPUT):
372 ${mkdir} $@
373 endif
374
375
376 NTOSKRNL_MC = ntoskrnl$(SEP)ntoskrnl.mc
377 KERNEL32_MC = dll$(SEP)win32$(SEP)kernel32$(SEP)kernel32.mc
378 BUILDNO_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)buildno.h
379 BUGCODES_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)bugcodes.h
380 BUGCODES_RC = $(INTERMEDIATE_)ntoskrnl$(SEP)bugcodes.rc
381 ERRCODES_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)errcodes.h
382 ERRCODES_RC = $(INTERMEDIATE_)dll$(SEP)win32$(SEP)kernel32$(SEP)errcodes.rc
383
384
385 include lib/lib.mak
386 include tools/tools.mak
387 include boot/freeldr/bootsect/bootsect.mak
388 -include $(ROS_AUTOMAKE)
389
390 PREAUTO := \
391 $(BIN2C_TARGET) \
392 $(BIN2RES_TARGET) \
393 $(BUILDNO_H) \
394 $(BUGCODES_H) \
395 $(BUGCODES_RC) \
396 $(ERRCODES_H) \
397 $(ERRCODES_RC) \
398 $(GENDIB_DIB_FILES) \
399 $(NCI_SERVICE_FILES)
400 ifeq ($(ARCH),powerpc)
401 PREAUTO += $(OFW_INTERFACE_SERVICE_FILES) $(PPCMMU_TARGETS)
402 endif
403
404 $(ROS_AUTOMAKE): $(RBUILD_TARGET) $(XMLBUILDFILES) | $(PREAUTO)
405 ${mkdir} $(OUTPUT_)media$(SEP)inf 2>$(NUL)
406 $(ECHO_RBUILD)
407 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw
408
409 world: all bootcd livecd
410
411 universe:
412 $(MAKE) KDBG=1 DBG=1 \
413 ROS_AUTOMAKE=makefile-$(ARCH)-kd.auto \
414 ROS_INSTALL=reactos-$(ARCH)-kd \
415 ROS_INTERMEDIATE=obj-$(ARCH)-kd \
416 ROS_OUTPUT=output-$(ARCH)-kd \
417 world
418 $(MAKE) KDBG=0 DBG=1 \
419 ROS_AUTOMAKE=makefile-$(ARCH)-d.auto \
420 ROS_INSTALL=reactos-$(ARCH)-d \
421 ROS_INTERMEDIATE=obj-$(ARCH)-d \
422 ROS_OUTPUT=output-$(ARCH)-d \
423 world
424 $(MAKE) KDBG=0 DBG=0 \
425 ROS_AUTOMAKE=makefile-$(ARCH)-r.auto \
426 ROS_INSTALL=reactos-$(ARCH)-r \
427 ROS_INTERMEDIATE=obj-$(ARCH)-r \
428 ROS_OUTPUT=output-$(ARCH)-r \
429 world
430
431 sysregtest:
432 $(OUTPUT_)tools$(SEP)sysreg$(SEP)sysreg$(EXEPOSTFIX) tools$(SEP)sysreg$(SEP)txtmode.cfg
433
434
435 .PHONY: cb
436 cb: $(RBUILD_TARGET)
437 $(ECHO_RBUILD)
438 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) cb
439
440 .PHONY: msbuild
441 msbuild: $(RBUILD_TARGET)
442 $(ECHO_RBUILD)
443 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msbuild
444
445 .PHONY: msbuild_clean
446 msbuild_clean: $(RBUILD_TARGET)
447 $(ECHO_RBUILD)
448 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msbuild
449
450 .PHONY: depmap
451 depmap: $(RBUILD_TARGET)
452 $(ECHO_RBUILD)
453 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) depmap
454
455 .PHONY: vreport
456 vreport:$(RBUILD_TARGET)
457 $(ECHO_RBUILD)
458 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) vreport
459
460 .PHONY: msvc
461 msvc: $(RBUILD_TARGET)
462 $(ECHO_RBUILD)
463 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msvc
464
465 $(BUGCODES_H) $(BUGCODES_RC): $(WMC_TARGET) $(NTOSKRNL_MC)
466 ${mkdir} $(INTERMEDIATE_)include$(SEP)reactos 2>$(NUL)
467 ${mkdir} $(INTERMEDIATE_)ntoskrnl 2>$(NUL)
468 $(ECHO_WMC)
469 $(Q)$(WMC_TARGET) -i -H $(BUGCODES_H) -o $(BUGCODES_RC) $(NTOSKRNL_MC)
470
471 $(ERRCODES_H) $(ERRCODES_RC): $(WMC_TARGET) $(KERNEL32_MC)
472 ${mkdir} $(INTERMEDIATE_)include$(SEP)reactos 2>$(NUL)
473 ${mkdir} $(INTERMEDIATE_)dll$(SEP)win32$(SEP)kernel32 2>$(NUL)
474 $(ECHO_WMC)
475 $(Q)$(WMC_TARGET) -i -U -H $(ERRCODES_H) -o $(ERRCODES_RC) $(KERNEL32_MC)
476
477 .PHONY: msvc6
478 msvc6: $(RBUILD_TARGET)
479 $(ECHO_RBUILD)
480 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs6.00 -voversionconfiguration msvc
481
482 .PHONY: msvc7
483 msvc7: $(RBUILD_TARGET)
484 $(ECHO_RBUILD)
485 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -voversionconfiguration msvc
486
487 .PHONY: msvc71
488 msvc71: $(RBUILD_TARGET)
489 $(ECHO_RBUILD)
490 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -voversionconfiguration msvc
491
492 .PHONY: msvc8
493 msvc8: $(RBUILD_TARGET)
494 $(ECHO_RBUILD)
495 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -voversionconfiguration msvc
496
497 .PHONY: msvc9
498 msvc9: $(RBUILD_TARGET)
499 $(ECHO_RBUILD)
500 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs9.00 -voversionconfiguration msvc
501
502 .PHONY: msvc6_clean
503 msvc6_clean: $(RBUILD_TARGET)
504 $(ECHO_RBUILD)
505 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00 -voversionconfiguration msvc
506
507 .PHONY: msvc7_clean
508 msvc7_clean: $(RBUILD_TARGET)
509 $(ECHO_RBUILD)
510 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00 -voversionconfiguration msvc
511
512 .PHONY: msvc71_clean
513 msvc71_clean: $(RBUILD_TARGET)
514 $(ECHO_RBUILD)
515 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10 -voversionconfiguration msvc
516
517 .PHONY: msvc8_clean
518 msvc8_clean: $(RBUILD_TARGET)
519 $(ECHO_RBUILD)
520 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.00 -voversionconfiguration msvc
521
522 .PHONY: msvc9_clean
523 msvc9_clean: $(RBUILD_TARGET)
524 $(ECHO_RBUILD)
525 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs9.00 -voversionconfiguration msvc
526
527 .PHONY: msvc_clean
528 msvc_clean: $(RBUILD_TARGET)
529 $(ECHO_RBUILD)
530 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msvc
531
532 .PHONY: msvc_clean_all
533 msvc_clean_all: $(RBUILD_TARGET)
534 $(ECHO_RBUILD)
535 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00 -voversionconfiguration msvc
536 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00 -voversionconfiguration msvc
537 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10 -voversionconfiguration msvc
538 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.10 -voversionconfiguration msvc
539
540 .PHONY: msvc7_install_debug
541 msvc7_install_debug: $(RBUILD_TARGET)
542 $(ECHO_RBUILD)
543 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcdebug -voversionconfiguration msvc
544
545 .PHONY: msvc7_install_release
546 msvc7_install_release: $(RBUILD_TARGET)
547 $(ECHO_RBUILD)
548 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcrelease -voversionconfiguration msvc
549
550 .PHONY: msvc7_install_speed
551 msvc7_install_speed: $(RBUILD_TARGET)
552 $(ECHO_RBUILD)
553 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcspeed -voversionconfiguration msvc
554
555 .PHONY: msvc71_install_debug
556 msvc71_install_debug: $(RBUILD_TARGET)
557 $(ECHO_RBUILD)
558 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcdebug -voversionconfiguration msvc
559
560 .PHONY: msvc71_install_release
561 msvc71_install_release: $(RBUILD_TARGET)
562 $(ECHO_RBUILD)
563 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcrelease -voversionconfiguration msvc
564
565
566 .PHONY: msvc71_install_speed
567 msvc71_install_speed: $(RBUILD_TARGET)
568 $(ECHO_RBUILD)
569 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcspeed -voversionconfiguration msvc
570
571 .PHONY: msvc8_install_debug
572 msvc8_install_debug: $(RBUILD_TARGET)
573 $(ECHO_RBUILD)
574 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcdebug -voversionconfiguration msvc
575
576 .PHONY: msvc8_install_release
577 msvc8_install_release: $(RBUILD_TARGET)
578 $(ECHO_RBUILD)
579 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcrelease -voversionconfiguration msvc
580
581 .PHONY: msvc8_install_speed
582 msvc8_install_speed: $(RBUILD_TARGET)
583 $(ECHO_RBUILD)
584 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcspeed -voversionconfiguration msvc
585
586 .PHONY: makefile_auto_clean
587 makefile_auto_clean:
588 -@$(rm) $(ROS_AUTOMAKE) $(PREAUTO) 2>$(NUL)
589
590 .PHONY: clean
591 clean: makefile_auto_clean
592
593 .PHONY: depends
594 depends: $(RBUILD_TARGET)
595 $(ECHO_RBUILD)
596 $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw