Add ROS_ARCH environment variable
[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.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-i386.
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-i386.
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 .\reactos.
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 ifeq ($(ROS_AUTOMAKE),)
151 ROS_AUTOMAKE=makefile.auto
152 endif
153
154 all: $(ROS_AUTOMAKE)
155
156
157 .SUFFIXES:
158
159 ifeq ($(HOST),)
160 ifeq ($(word 1,$(shell gcc -dumpmachine)),mingw32)
161 ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
162 export OSTYPE = msys
163 HOST=mingw32-linux
164 CFLAGS+=-fshort-wchar
165 CPPFLAGS+=-fshort-wchar
166 else
167 HOST=mingw32-windows
168 endif
169 else
170 HOST=mingw32-linux
171 CFLAGS+=-fshort-wchar
172 CPPFLAGS+=-fshort-wchar
173 endif
174 endif
175
176 # Default to half-verbose mode
177 ifeq ($(VERBOSE),no)
178 Q = @
179 HALFVERBOSEECHO = no
180 BUILDNO_QUIET = -q
181 else
182 ifeq ($(VERBOSE),full)
183 Q =
184 HALFVERBOSEECHO = no
185 BUILDNO_QUIET =
186 else
187 Q = @
188 HALFVERBOSEECHO = yes
189 BUILDNO_QUIET = -q
190 endif
191 endif
192 ifeq ($(HOST),mingw32-linux)
193 QUOTE = "
194 else
195 QUOTE =
196 endif
197 ifeq ($(HALFVERBOSEECHO),yes)
198 ECHO_CP =@echo $(QUOTE)[COPY] $@$(QUOTE)
199 ECHO_MKDIR =@echo $(QUOTE)[MKDIR] $@$(QUOTE)
200 ECHO_BUILDNO =@echo $(QUOTE)[BUILDNO] $@$(QUOTE)
201 ECHO_INVOKE =@echo $(QUOTE)[INVOKE] $<$(QUOTE)
202 ECHO_PCH =@echo $(QUOTE)[PCH] $@$(QUOTE)
203 ECHO_CC =@echo $(QUOTE)[CC] $<$(QUOTE)
204 ECHO_GAS =@echo $(QUOTE)[GAS] $<$(QUOTE)
205 ECHO_NASM =@echo $(QUOTE)[NASM] $<$(QUOTE)
206 ECHO_AR =@echo $(QUOTE)[AR] $@$(QUOTE)
207 ECHO_WINEBLD =@echo $(QUOTE)[WINEBLD] $@$(QUOTE)
208 ECHO_WRC =@echo $(QUOTE)[WRC] $@$(QUOTE)
209 ECHO_WIDL =@echo $(QUOTE)[WIDL] $@$(QUOTE)
210 ECHO_BIN2RES =@echo $(QUOTE)[BIN2RES] $<$(QUOTE)
211 ECHO_DLLTOOL =@echo $(QUOTE)[DLLTOOL] $@$(QUOTE)
212 ECHO_LD =@echo $(QUOTE)[LD] $@$(QUOTE)
213 ECHO_NM =@echo $(QUOTE)[NM] $@$(QUOTE)
214 ECHO_OBJDUMP =@echo $(QUOTE)[OBJDUMP] $@$(QUOTE)
215 ECHO_RBUILD =@echo $(QUOTE)[RBUILD] $@$(QUOTE)
216 ECHO_RSYM =@echo $(QUOTE)[RSYM] $@$(QUOTE)
217 ECHO_WMC =@echo $(QUOTE)[WMC] $@$(QUOTE)
218 ECHO_NCI =@echo $(QUOTE)[NCI] $@$(QUOTE)
219 ECHO_CABMAN =@echo $(QUOTE)[CABMAN] $<$(QUOTE)
220 ECHO_CDMAKE =@echo $(QUOTE)[CDMAKE] $@$(QUOTE)
221 ECHO_MKHIVE =@echo $(QUOTE)[MKHIVE] $@$(QUOTE)
222 ECHO_REGTESTS=@echo $(QUOTE)[REGTESTS] $@$(QUOTE)
223 ECHO_TEST =@echo $(QUOTE)[TEST] $@$(QUOTE)
224 ECHO_GENDIB =@echo $(QUOTE)[GENDIB] $@$(QUOTE)
225 ECHO_STRIP =@echo $(QUOTE)[STRIP] $@$(QUOTE)
226 else
227 ECHO_CP =
228 ECHO_MKDIR =
229 ECHO_BUILDNO =
230 ECHO_INVOKE =
231 ECHO_PCH =
232 ECHO_CC =
233 ECHO_GAS =
234 ECHO_NASM =
235 ECHO_AR =
236 ECHO_WINEBLD =
237 ECHO_WRC =
238 ECHO_WIDL =
239 ECHO_BIN2RES =
240 ECHO_DLLTOOL =
241 ECHO_LD =
242 ECHO_NM =
243 ECHO_OBJDUMP =
244 ECHO_RBUILD =
245 ECHO_RSYM =
246 ECHO_WMC =
247 ECHO_NCI =
248 ECHO_CABMAN =
249 ECHO_CDMAKE =
250 ECHO_MKHIVE =
251 ECHO_REGTESTS=
252 ECHO_TEST =
253 ECHO_GENDIB =
254 ECHO_STRIP =
255 endif
256
257
258 host_gcc = $(Q)gcc
259 host_gpp = $(Q)g++
260 host_ld = $(Q)ld
261 host_ar = $(Q)ar
262 host_objcopy = $(Q)objcopy
263 ifeq ($(HOST),mingw32-linux)
264 export EXEPREFIX = ./
265 ifeq ($(OSTYPE),msys)
266 export EXEPOSTFIX = .exe
267 else
268 export EXEPOSTFIX =
269 endif
270 export SEP = /
271 mkdir = -$(Q)mkdir -p
272 gcc = $(Q)$(PREFIX)-gcc
273 gpp = $(Q)$(PREFIX)-g++
274 ld = $(Q)$(PREFIX)-ld
275 nm = $(Q)$(PREFIX)-nm
276 objdump = $(Q)$(PREFIX)-objdump
277 ar = $(Q)$(PREFIX)-ar
278 objcopy = $(Q)$(PREFIX)-objcopy
279 dlltool = $(Q)$(PREFIX)-dlltool
280 strip = $(Q)$(PREFIX)-strip
281 windres = $(Q)$(PREFIX)-windres
282 rm = $(Q)rm -f
283 cp = $(Q)cp
284 NUL = /dev/null
285 else # mingw32-windows
286 ifeq ($(OSTYPE),msys)
287 HOST=mingw32-linux
288 export EXEPREFIX = ./
289 export EXEPOSTFIX = .exe
290 export SEP = /
291 mkdir = -$(Q)mkdir -p
292 rm = $(Q)rm -f
293 cp = $(Q)cp
294 NUL = /dev/null
295 else
296 export EXEPREFIX =
297 export EXEPOSTFIX = .exe
298 ROS_EMPTY =
299 export SEP = \$(ROS_EMPTY)
300 mkdir = -$(Q)mkdir
301 rm = $(Q)del /f /q
302 cp = $(Q)copy /y
303 NUL = NUL
304 endif
305 ifeq ($(ROS_PREFIX),)
306 gcc = $(Q)gcc
307 gpp = $(Q)g++
308 ld = $(Q)ld
309 nm = $(Q)nm
310 objdump = $(Q)objdump
311 ar = $(Q)ar
312 objcopy = $(Q)objcopy
313 dlltool = $(Q)dlltool
314 strip = $(Q)strip
315 windres = $(Q)windres
316 else
317 gcc = $(Q)$(ROS_PREFIX)-gcc
318 gpp = $(Q)$(ROS_PREFIX)-g++
319 ld = $(Q)$(ROS_PREFIX)-ld
320 nm = $(Q)$(ROS_PREFIX)-nm
321 objdump = $(Q)$(ROS_PREFIX)-objdump
322 ar = $(Q)$(ROS_PREFIX)-ar
323 objcopy = $(Q)$(ROS_PREFIX)-objcopy
324 dlltool = $(Q)$(ROS_PREFIX)-dlltool
325 strip = $(Q)$(ROS_PREFIX)-strip
326 windres = $(Q)$(ROS_PREFIX)-windres
327 endif
328 endif
329
330 ifneq ($(ROS_ARCH),)
331 ARCH := $(ROS_ARCH)
332 else
333 ARCH := i386
334 endif
335
336 ifneq ($(ROS_INTERMEDIATE),)
337 INTERMEDIATE := $(ROS_INTERMEDIATE)
338 else
339 ifneq ($(ROS_CDOUTPUT),)
340 INTERMEDIATE := obj-$(ROS_CDOUTPUT)
341 else
342 INTERMEDIATE := obj-$(ARCH)
343 endif
344 endif
345 INTERMEDIATE_ := $(INTERMEDIATE)$(SEP)
346
347 ifneq ($(ROS_OUTPUT),)
348 OUTPUT := $(ROS_OUTPUT)
349 else
350 ifneq ($(ROS_CDOUTPUT),)
351 OUTPUT := output-$(ROS_CDOUTPUT)
352 else
353 OUTPUT := output-$(ARCH)
354 endif
355 endif
356 OUTPUT_ := $(OUTPUT)$(SEP)
357
358 ifneq ($(ROS_CDOUTPUT),)
359 CDOUTPUT := $(ROS_CDOUTPUT)
360 else
361 CDOUTPUT := reactos
362 endif
363 CDOUTPUT_ := $(CDOUTPUT)$(SEP)
364
365 ifneq ($(ROS_TEMPORARY),)
366 TEMPORARY := $(ROS_TEMPORARY)
367 else
368 TEMPORARY :=
369 endif
370 TEMPORARY_ := $(TEMPORARY)$(SEP)
371
372 ifneq ($(ROS_INSTALL),)
373 INSTALL := $(ROS_INSTALL)
374 else
375 ifneq ($(ROS_CDOUTPUT),)
376 INSTALL := reactos.$(ROS_CDOUTPUT)
377 else
378 INSTALL := reactos
379 endif
380 endif
381 INSTALL_ := $(INSTALL)$(SEP)
382
383 $(INTERMEDIATE):
384 ${mkdir} $@
385
386 ifneq ($(INTERMEDIATE),$(OUTPUT))
387 $(OUTPUT):
388 ${mkdir} $@
389 endif
390
391
392 NTOSKRNL_MC = ntoskrnl$(SEP)ntoskrnl.mc
393 KERNEL32_MC = dll$(SEP)win32$(SEP)kernel32$(SEP)kernel32.mc
394 BUILDNO_H = include$(SEP)reactos$(SEP)buildno.h
395 BUGCODES_H = include$(SEP)reactos$(SEP)bugcodes.h
396 BUGCODES_RC = ntoskrnl$(SEP)bugcodes.rc
397 ERRCODES_H = include$(SEP)reactos$(SEP)errcodes.h
398 ERRCODES_RC = dll$(SEP)win32$(SEP)kernel32$(SEP)errcodes.rc
399
400
401 include lib/lib.mak
402 include tools/tools.mak
403 include boot/freeldr/bootsect/bootsect.mak
404 -include $(ROS_AUTOMAKE)
405
406 PREAUTO := \
407 $(BIN2C_TARGET) \
408 $(BIN2RES_TARGET) \
409 $(BUILDNO_H) \
410 $(BUGCODES_H) \
411 $(BUGCODES_RC) \
412 $(ERRCODES_H) \
413 $(ERRCODES_RC) \
414 $(GENDIB_DIB_FILES) \
415 $(NCI_SERVICE_FILES)
416
417 POSTAUTO : \
418 psdk \
419 $(IDL_FILES)
420
421 $(ROS_AUTOMAKE): $(RBUILD_TARGET) $(PREAUTO) $(XMLBUILDFILES)
422 ${mkdir} $(INTERMEDIATE_)media$(SEP)inf 2>$(NUL)
423 $(ECHO_RBUILD)
424 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -rReactOS-$(ARCH).rbuild mingw
425 @$(MAKE) POSTAUTO
426
427 world: all bootcd livecd
428
429 universe:
430 $(MAKE) KDBG=1 DBG=1 \
431 ROS_AUTOMAKE=makefile-$(ARCH)-kd.auto \
432 ROS_INSTALL=reactos-$(ARCH)-kd \
433 ROS_INTERMEDIATE=obj-$(ARCH)-kd \
434 ROS_OUTPUT=output-$(ARCH)-kd \
435 world
436 $(MAKE) KDBG=0 DBG=1 \
437 ROS_AUTOMAKE=makefile-$(ARCH)-d.auto \
438 ROS_INSTALL=reactos-$(ARCH)-d \
439 ROS_INTERMEDIATE=obj-$(ARCH)-d \
440 ROS_OUTPUT=output-$(ARCH)-d \
441 world
442 $(MAKE) KDBG=0 DBG=0 \
443 ROS_AUTOMAKE=makefile-$(ARCH)-r.auto \
444 ROS_INSTALL=reactos-$(ARCH)-r \
445 ROS_INTERMEDIATE=obj-$(ARCH)-r \
446 ROS_OUTPUT=output-$(ARCH)-r \
447 world
448
449 sysregtest:
450 -mkdir $(OUTPUT_)cd$(SEP)reactos
451 $(cp) boot$(SEP)bootdata$(SEP)unattend.inf.sample boot$(SEP)bootdata$(SEP)unattend.inf
452 $(cp) boot$(SEP)bootdata$(SEP)unattend.inf.sample $(OUTPUT_)cd$(SEP)reactos$(SEP)unattend.inf
453 $(cp) boot$(SEP)bootdata$(SEP)bootcdregtest$(SEP)testboot.bat.sample boot$(SEP)bootdata$(SEP)bootcdregtest$(SEP)testboot.bat
454 $(MAKE) dbgprint
455 $(MAKE) bootcdregtest
456 $(MAKE) sysreg
457 $(OUTPUT_)tools$(SEP)sysreg$(SEP)sysreg$(EXEPOSTFIX) tools$(SEP)sysreg$(SEP)txtmode.cfg rosboot
458 $(OUTPUT_)tools$(SEP)sysreg$(SEP)sysreg$(EXEPOSTFIX) tools$(SEP)sysreg$(SEP)secstage.cfg rosboot
459 $(OUTPUT_)tools$(SEP)sysreg$(SEP)sysreg$(EXEPOSTFIX) tools$(SEP)sysreg$(SEP)runonce.cfg rosboot
460
461 sysregtest_clean:
462 $(rm) boot$(SEP)bootdata$(SEP)unattend.inf
463 $(rm) boot$(SEP)bootdata$(SEP)bootcdregtest$(SEP)testboot.bat
464 $(rm) $(OUTPUT_)cd$(SEP)reactos$(SEP)unattend.inf
465
466 regtest:
467 $(cp) boot$(SEP)bootdata$(SEP)unattend.inf.sample $(OUTPUT_)cd$(SEP)reactos$(SEP)unattend.inf
468 $(MAKE) bootcdregtest
469 $(rm) $(OUTPUT_)cd$(SEP)reactos$(SEP)unattend.inf
470
471 .PHONY: cb
472 cb: $(RBUILD_TARGET)
473 $(ECHO_RBUILD)
474 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) cb
475
476 .PHONY: msbuild
477 msbuild: $(RBUILD_TARGET)
478 $(ECHO_RBUILD)
479 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) msbuild
480
481 .PHONY: msbuild_clean
482 msbuild_clean: $(RBUILD_TARGET)
483 $(ECHO_RBUILD)
484 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c msbuild
485
486 .PHONY: depmap
487 depmap: $(RBUILD_TARGET)
488 $(ECHO_RBUILD)
489 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) depmap
490
491 .PHONY: msvc
492 msvc: $(RBUILD_TARGET)
493 $(ECHO_RBUILD)
494 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) msvc
495
496 $(BUGCODES_H) $(BUGCODES_RC): $(WMC_TARGET) $(NTOSKRNL_MC)
497 $(ECHO_WMC)
498 $(Q)$(WMC_TARGET) -i -H $(BUGCODES_H) -o $(BUGCODES_RC) $(NTOSKRNL_MC)
499
500 $(ERRCODES_H) $(ERRCODES_RC): $(WMC_TARGET) $(KERNEL32_MC)
501 $(ECHO_WMC)
502 $(Q)$(WMC_TARGET) -i -U -H $(ERRCODES_H) -o $(ERRCODES_RC) $(KERNEL32_MC)
503
504 .PHONY: msvc6
505 msvc6: $(RBUILD_TARGET)
506 $(ECHO_RBUILD)
507 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs6.00 -voversionconfiguration msvc
508
509 .PHONY: msvc7
510 msvc7: $(RBUILD_TARGET)
511 $(ECHO_RBUILD)
512 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.00 -voversionconfiguration msvc
513
514 .PHONY: msvc71
515 msvc71: $(RBUILD_TARGET)
516 $(ECHO_RBUILD)
517 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.10 -voversionconfiguration msvc
518
519 .PHONY: msvc8
520 msvc8: $(RBUILD_TARGET)
521 $(ECHO_RBUILD)
522 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs8.00 -voversionconfiguration msvc
523
524 .PHONY: msvc6_clean
525 msvc6_clean: $(RBUILD_TARGET)
526 $(ECHO_RBUILD)
527 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs6.00 -voversionconfiguration msvc
528
529 .PHONY: msvc7_clean
530 msvc7_clean: $(RBUILD_TARGET)
531 $(ECHO_RBUILD)
532 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs7.00 -voversionconfiguration msvc
533
534 .PHONY: msvc71_clean
535 msvc71_clean: $(RBUILD_TARGET)
536 $(ECHO_RBUILD)
537 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs7.10 -voversionconfiguration msvc
538
539 .PHONY: msvc8_clean
540 msvc8_clean: $(RBUILD_TARGET)
541 $(ECHO_RBUILD)
542 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs8.00 -voversionconfiguration msvc
543
544 .PHONY: msvc_clean
545 msvc_clean: $(RBUILD_TARGET)
546 $(ECHO_RBUILD)
547 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c msvc
548
549 .PHONY: msvc_clean_all
550 msvc_clean_all: $(RBUILD_TARGET)
551 $(ECHO_RBUILD)
552 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs6.00 -voversionconfiguration msvc
553 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs7.00 -voversionconfiguration msvc
554 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs7.10 -voversionconfiguration msvc
555 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs8.10 -voversionconfiguration msvc
556
557 .PHONY: msvc7_install_debug
558 msvc7_install_debug: $(RBUILD_TARGET)
559 $(ECHO_RBUILD)
560 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.00 -vcdebug -voversionconfiguration msvc
561
562 .PHONY: msvc7_install_release
563 msvc7_install_release: $(RBUILD_TARGET)
564 $(ECHO_RBUILD)
565 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.00 -vcrelease -voversionconfiguration msvc
566
567 .PHONY: msvc7_install_speed
568 msvc7_install_speed: $(RBUILD_TARGET)
569 $(ECHO_RBUILD)
570 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.00 -vcspeed -voversionconfiguration msvc
571
572 .PHONY: msvc71_install_debug
573 msvc71_install_debug: $(RBUILD_TARGET)
574 $(ECHO_RBUILD)
575 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.10 -vcdebug -voversionconfiguration msvc
576
577 .PHONY: msvc71_install_release
578 msvc71_install_release: $(RBUILD_TARGET)
579 $(ECHO_RBUILD)
580 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.10 -vcrelease -voversionconfiguration msvc
581
582
583 .PHONY: msvc71_install_speed
584 msvc71_install_speed: $(RBUILD_TARGET)
585 $(ECHO_RBUILD)
586 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.10 -vcspeed -voversionconfiguration msvc
587
588 .PHONY: msvc8_install_debug
589 msvc8_install_debug: $(RBUILD_TARGET)
590 $(ECHO_RBUILD)
591 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs8.00 -vcdebug -voversionconfiguration msvc
592
593 .PHONY: msvc8_install_release
594 msvc8_install_release: $(RBUILD_TARGET)
595 $(ECHO_RBUILD)
596 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs8.00 -vcrelease -voversionconfiguration msvc
597
598 .PHONY: msvc8_install_speed
599 msvc8_install_speed: $(RBUILD_TARGET)
600 $(ECHO_RBUILD)
601 $(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs8.00 -vcspeed -voversionconfiguration msvc
602
603 .PHONY: makefile_auto_clean
604 makefile_auto_clean:
605 -@$(rm) $(ROS_AUTOMAKE) $(PREAUTO) 2>$(NUL)
606
607 .PHONY: clean
608 clean: makefile_auto_clean
609
610 .PHONY: depends
611 depends:
612 @-$(rm) makefile.auto
613 @$(MAKE) $(filter-out depends, $(MAKECMDGOALS))