added lib Doxygen config file
[reactos.git] / reactos / Makefile
1 # $Id: Makefile,v 1.190 2003/12/07 13:08:01 mf Exp $
2 #
3 # Global makefile
4 #
5
6 PATH_TO_TOP = .
7
8 #
9 # Define to build ReactOS external targets
10 #
11 ifeq ($(ROS_BUILD_EXT),)
12 ROS_BUILD_EXT = no
13 else
14 ROS_BUILD_EXT = yes
15 endif
16
17 include $(PATH_TO_TOP)/rules.mak
18
19 # Required to run the system
20 COMPONENTS = iface_native iface_additional hallib ntoskrnl
21
22 # Hardware Abstraction Layers
23 # halx86
24 HALS = halx86
25
26 # Bus drivers
27 # acpi isapnp pci
28 BUS = acpi isapnp pci
29
30 # Filesystem libraries
31 # vfatlib
32 LIB_FSLIB = vfatlib
33
34 # Static libraries
35 LIB_STATIC = string rosrtl epsapi zlib
36
37 # Keyboard layout libraries
38 DLLS_KBD = kbdus kbdgr kbdfr
39
40 # User mode libraries
41 # advapi32 cards crtdll fmifs gdi32 imagehlp kernel32 libpcap packet msafd msvcrt ntdll
42 # epsapi psapi richedit rpcrt4 secur32 user32 version ws2help ws2_32 wsock32 wshirda mswsock
43 # imagehlp
44 DLLS = libwine advapi32 cards crtdll fmifs freetype gdi32 kernel32 packet lzexpand \
45 msafd msvcrt ntdll psapi richedit rpcrt4 secur32 syssetup twain user32 version \
46 winspool ws2help ws2_32 wsock32 wshirda iphlpapi msgina mswsock msimg32 d3d8thk \
47 winmm ole32 comctl32 $(DLLS_KBD)
48
49 SUBSYS = smss win32k csrss ntvdm
50
51 #
52 # Select the server(s) you want to build
53 #
54 #SERVERS = posix linux os2
55 SERVERS = win32
56
57 # Boot loaders
58 # dos
59 LOADERS = dos
60
61 # Driver support libraries
62 #bzip2 zlib
63 DRIVERS_LIB = bzip2
64
65 # Kernel mode device drivers
66 # Obsolete: ide
67 # beep blue floppy null parallel ramdrv serenum serial vga videoprt
68 DEVICE_DRIVERS = beep blue debugout floppy null serial vga videoprt bootvid
69
70 # Kernel mode input drivers
71 INPUT_DRIVERS = keyboard mouclass psaux sermouse
72
73 # Kernel mode file system drivers
74 # cdfs ext2 fs_rec ms np vfat
75 FS_DRIVERS = cdfs fs_rec ms np vfat mup ntfs
76
77 # Kernel mode networking drivers
78 # afd ndis npf tcpip tdi wshtcpip
79 NET_DRIVERS = afd ndis npf tcpip tdi wshtcpip
80
81 # Kernel mode networking device drivers
82 # ne2000 pcnet
83 NET_DEVICE_DRIVERS = ne2000 pcnet
84
85 # Kernel mode storage drivers
86 # atapi cdrom class2 disk scsiport
87 STORAGE_DRIVERS = atapi cdrom class2 disk scsiport diskdump
88
89 # System applications
90 # autochk cmd format services setup usetup welcome winlogon
91 SYS_APPS = autochk cmd format services setup usetup welcome winlogon userinit
92
93 # System services
94 # rpcss eventlog
95 SYS_SVC = rpcss eventlog
96
97 APPS = tests testsets utils
98
99
100 # External (sub)systems for ReactOS
101 # rosapps wine posix os2 (requires c++) java (non-existant)
102 EXTERNALS = rosapps wine posix os2
103
104 ifeq ($(ROS_BUILD_EXT),yes)
105 EXT_MODULES = $(EXTERNALS)
106 else
107 EXT_MODULES =
108 endif
109
110 KERNEL_DRIVERS = $(DRIVERS_LIB) $(DEVICE_DRIVERS) $(INPUT_DRIVERS) $(FS_DRIVERS) \
111 $(NET_DRIVERS) $(NET_DEVICE_DRIVERS) $(STORAGE_DRIVERS)
112
113 # Regression tests
114 REGTESTS = regtests
115
116 all: tools dk implib $(LIB_STATIC) $(COMPONENTS) $(HALS) $(BUS) $(LIB_FSLIB) $(DLLS) $(SUBSYS) \
117 $(LOADERS) $(KERNEL_DRIVERS) $(SYS_APPS) $(SYS_SVC) \
118 $(APPS) $(EXT_MODULES) $(REGTESTS)
119
120 #config: $(TOOLS:%=%_config)
121
122 depends: $(LIB_STATIC:%=%_depends) $(LIB_FSLIB:%=%_depends) $(DLLS:%=%_depends) $(SUBSYS:%=%_depends) $(SYS_SVC:%=%_depends) \
123 $(EXT_MODULES:%=%_depends) $(POSIX_LIBS:%=%_depends)
124
125 implib: $(COMPONENTS:%=%_implib) $(HALS:%=%_implib) $(BUS:%=%_implib) \
126 $(LIB_STATIC:%=%_implib) $(LIB_FSLIB:%=%_implib) $(DLLS:%=%_implib) $(LOADERS:%=%_implib) \
127 $(KERNEL_DRIVERS:%=%_implib) $(SUBSYS:%=%_implib) \
128 $(SYS_APPS:%=%_implib) $(SYS_SVC:%=%_implib) \
129 $(APPS:%=%_implib) $(EXT_MODULES:%=%_implib)
130
131 clean: tools dk_clean $(HALS:%=%_clean) \
132 $(COMPONENTS:%=%_clean) $(BUS:%=%_clean) $(LIB_STATIC:%=%_clean) $(LIB_FSLIB:%=%_clean) $(DLLS:%=%_clean) \
133 $(LOADERS:%=%_clean) $(KERNEL_DRIVERS:%=%_clean) $(SUBSYS:%=%_clean) \
134 $(SYS_APPS:%=%_clean) $(SYS_SVC:%=%_clean) \
135 $(NET_APPS:%=%_clean) \
136 $(APPS:%=%_clean) $(EXT_MODULES:%=%_clean) $(REGTESTS:%=%_clean) \
137 clean_after tools_clean
138
139 clean_after:
140 $(RM) $(PATH_TO_TOP)/include/roscfg.h
141
142 install: tools install_dirs install_before \
143 $(COMPONENTS:%=%_install) $(HALS:%=%_install) $(BUS:%=%_install) \
144 $(LIB_STATIC:%=%_install) $(LIB_FSLIB:%=%_install) $(DLLS:%=%_install) $(LOADERS:%=%_install) \
145 $(KERNEL_DRIVERS:%=%_install) $(SUBSYS:%=%_install) \
146 $(SYS_APPS:%=%_install) $(SYS_SVC:%=%_install) \
147 $(APPS:%=%_install) $(EXT_MODULES:%=%_install) $(REGTESTS:%=%_install) \
148 registry
149
150 FREELDR_DIR = ../freeldr
151
152 freeldr:
153 $(MAKE) -C $(FREELDR_DIR)
154
155 bootcd_directory_layout:
156 $(RMKDIR) $(BOOTCD_DIR)
157 $(RMKDIR) $(BOOTCD_DIR)/bootdisk
158 $(RMKDIR) $(BOOTCD_DIR)/loader
159 $(RMKDIR) $(BOOTCD_DIR)/reactos
160 $(RMKDIR) $(BOOTCD_DIR)/reactos/system32
161 $(CP) ${FREELDR_DIR}/bootsect/isoboot.bin ${BOOTCD_DIR}/../isoboot.bin
162 $(CP) ${FREELDR_DIR}/bootsect/dosmbr.bin ${BOOTCD_DIR}/loader/dosmbr.bin
163 $(CP) ${FREELDR_DIR}/bootsect/ext2.bin ${BOOTCD_DIR}/loader/ext2.bin
164 $(CP) ${FREELDR_DIR}/bootsect/fat.bin ${BOOTCD_DIR}/loader/fat.bin
165 $(CP) ${FREELDR_DIR}/bootsect/fat32.bin ${BOOTCD_DIR}/loader/fat32.bin
166 $(CP) ${FREELDR_DIR}/bootsect/isoboot.bin ${BOOTCD_DIR}/loader/isoboot.bin
167 $(CP) ${FREELDR_DIR}/freeldr/obj/i386/freeldr.sys ${BOOTCD_DIR}/loader/freeldr.sys
168 $(CP) ${FREELDR_DIR}/freeldr/obj/i386/setupldr.sys ${BOOTCD_DIR}/loader/setupldr.sys
169
170 bootcd_bootstrap_files: $(COMPONENTS:%=%_bootcd) $(HALS:%=%_bootcd) $(BUS:%=%_bootcd) \
171 $(LIB_STATIC:%=%_bootcd) $(LIB_FSLIB:%=%_bootcd) $(DLLS:%=%_bootcd) $(KERNEL_DRIVERS:%=%_bootcd) \
172 $(SUBSYS:%=%_bootcd) $(SYS_APPS:%=%_bootcd)
173
174 bootcd_install_before:
175 $(RLINE) bootdata/autorun.inf $(BOOTCD_DIR)/autorun.inf
176 $(RLINE) bootdata/readme.txt $(BOOTCD_DIR)/readme.txt
177 $(RLINE) bootdata/hivecls.inf $(BOOTCD_DIR)/reactos/hivecls.inf
178 $(RLINE) bootdata/hivedef.inf $(BOOTCD_DIR)/reactos/hivedef.inf
179 $(RLINE) bootdata/hivesft.inf $(BOOTCD_DIR)/reactos/hivesft.inf
180 $(RLINE) bootdata/hivesys.inf $(BOOTCD_DIR)/reactos/hivesys.inf
181 $(RLINE) bootdata/txtsetup.sif $(BOOTCD_DIR)/reactos/txtsetup.sif
182 $(CP) bootdata/icon.ico $(BOOTCD_DIR)/icon.ico
183 $(CP) media/nls/c_1252.nls $(BOOTCD_DIR)/reactos/c_1252.nls
184 $(CP) media/nls/c_437.nls $(BOOTCD_DIR)/reactos/c_437.nls
185 $(CP) media/nls/l_intl.nls $(BOOTCD_DIR)/reactos/l_intl.nls
186
187 bootcd_basic: bootcd_directory_layout bootcd_bootstrap_files bootcd_install_before
188
189 bootcd_makecd:
190 $(CABMAN) /C bootdata/packages/reactos.dff /L $(BOOTCD_DIR)/reactos /I
191 $(CABMAN) /C bootdata/packages/reactos.dff /RC $(BOOTCD_DIR)/reactos/reactos.inf /L $(BOOTCD_DIR)/reactos /N
192 - $(RM) $(BOOTCD_DIR)/reactos/reactos.inf
193 $(TOOLS_PATH)/cdmake/cdmake -v -m -b $(BOOTCD_DIR)/../isoboot.bin $(BOOTCD_DIR) REACTOS ReactOS.iso
194
195 ubootcd_unattend:
196 $(CP) bootdata/unattend.inf $(BOOTCD_DIR)/reactos/unattend.inf
197
198 bootcd: bootcd_basic bootcd_makecd
199
200 ubootcd: bootcd_basic ubootcd_unattend bootcd_makecd
201
202 registry: tools
203 $(TOOLS_PATH)/mkhive/mkhive$(EXE_POSTFIX) bootdata $(INSTALL_DIR)/system32/config
204
205 .PHONY: all depends implib clean clean_before install freeldr bootcd_directory_layout \
206 bootcd_bootstrap_files bootcd_install_before bootcd_basic bootcd_makecd ubootcd_unattend bootcd
207
208
209 #
210 # System Applications
211 #
212 $(SYS_APPS): %:
213 $(MAKE) -C subsys/system/$*
214
215 $(SYS_APPS:%=%_implib): %_implib:
216 $(MAKE) -C subsys/system/$* implib
217
218 $(SYS_APPS:%=%_clean): %_clean:
219 $(MAKE) -C subsys/system/$* clean
220
221 $(SYS_APPS:%=%_install): %_install:
222 $(MAKE) -C subsys/system/$* install
223
224 $(SYS_APPS:%=%_bootcd): %_bootcd:
225 $(MAKE) -C subsys/system/$* bootcd
226
227 .PHONY: $(SYS_APPS) $(SYS_APPS:%=%_implib) $(SYS_APPS:%=%_clean) $(SYS_APPS:%=%_install) $(SYS_APPS:%=%_bootcd)
228
229 #
230 # System Services
231 #
232 $(SYS_SVC): %:
233 $(MAKE) -C services/$*
234
235 $(SYS_SVC:%=%_depends): %_depends:
236 $(MAKE) -C services/$* depends
237
238 $(SYS_SVC:%=%_implib): %_implib:
239 $(MAKE) -C services/$* implib
240
241 $(SYS_SVC:%=%_clean): %_clean:
242 $(MAKE) -C services/$* clean
243
244 $(SYS_SVC:%=%_install): %_install:
245 $(MAKE) -C services/$* install
246
247 .PHONY: $(SYS_SVC) $(SYS_SVC:%=%_depends) $(SYS_SVC:%=%_implib) $(SYS_SVC:%=%_clean) $(SYS_SVC:%=%_install)
248
249
250 #
251 # Applications
252 #
253 #
254 # Extra (optional system) Applications
255 #
256 $(APPS): %:
257 $(MAKE) -C apps/$*
258
259 $(APPS:%=%_implib): %_implib:
260 $(MAKE) -C apps/$* implib
261
262 $(APPS:%=%_clean): %_clean:
263 $(MAKE) -C apps/$* clean
264
265 $(APPS:%=%_install): %_install:
266 $(MAKE) -C apps/$* install
267
268 .PHONY: $(APPS) $(APPS:%=%_implib) $(APPS:%=%_clean) $(APPS:%=%_install)
269
270
271 #
272 # External ports and subsystem personalities
273 #
274 $(EXTERNALS): %:
275 $(MAKE) -C $(ROOT_PATH)/$*
276
277 $(EXTERNALS:%=%_depends): %_depends:
278 $(MAKE) -C $(ROOT_PATH)/$* depends
279
280 $(EXTERNALS:%=%_implib): %_implib:
281 $(MAKE) -C $(ROOT_PATH)/$* implib
282
283 $(EXTERNALS:%=%_clean): %_clean:
284 $(MAKE) -C $(ROOT_PATH)/$* clean
285
286 $(EXTERNALS:%=%_install): %_install:
287 $(MAKE) -C $(ROOT_PATH)/$* install
288
289 .PHONY: $(EXTERNALS) $(EXTERNALS:%=%_depends) $(EXTERNALS:%=%_implib) $(EXTERNALS:%=%_clean) $(EXTERNALS:%=%_install)
290
291
292 #
293 # Tools
294 #
295 tools:
296 $(MAKE) -C tools
297
298 tools_implib:
299
300 tools_clean:
301 $(MAKE) -C tools clean
302
303 tools_install:
304
305 .PHONY: tools tools_implib tools_clean tools_install
306
307
308 #
309 # Developer Kits
310 #
311 dk:
312 $(RMKDIR) $(DK_PATH)
313 $(RMKDIR) $(DDK_PATH)
314 $(RMKDIR) $(DDK_PATH_LIB)
315 $(RMKDIR) $(DDK_PATH_INC)
316 $(RMKDIR) $(SDK_PATH)
317 $(RMKDIR) $(SDK_PATH_LIB)
318 $(RMKDIR) $(SDK_PATH_INC)
319 $(RMKDIR) $(XDK_PATH)
320 $(RMKDIR) $(XDK_PATH_LIB)
321 $(RMKDIR) $(XDK_PATH_INC)
322
323 dk_implib:
324
325 # WARNING! Be very sure that there are no important files
326 # in these directories before cleaning them!!!
327 dk_clean:
328 $(RM) $(DDK_PATH_LIB)/*.a
329 # $(RM) $(DDK_PATH_INC)/*.h
330 $(RMDIR) $(DDK_PATH_LIB)
331 # $(RMDIR) $(DDK_PATH_INC)
332 $(RM) $(SDK_PATH_LIB)/*.a
333 # $(RM) $(SDK_PATH_INC)/*.h
334 $(RMDIR) $(SDK_PATH_LIB)
335 # $(RMDIR) $(SDK_PATH_INC)
336 $(RM) $(XDK_PATH_LIB)/*.a
337 # $(RM) $(XDK_PATH_INC)/*.h
338 $(RMDIR) $(XDK_PATH_LIB)
339 # $(RMDIR) $(XDK_PATH_INC)
340
341 dk_install:
342
343 .PHONY: dk dk_implib dk_clean dk_install
344
345
346 #
347 # Interfaces
348 #
349 iface_native:
350 $(MAKE) -C iface/native
351
352 iface_native_implib:
353
354 iface_native_clean:
355 $(MAKE) -C iface/native clean
356
357 iface_native_install:
358
359 iface_native_bootcd:
360
361 iface_additional:
362 $(MAKE) -C iface/addsys
363
364 iface_additional_implib:
365
366 iface_additional_clean:
367 $(MAKE) -C iface/addsys clean
368
369 iface_additional_install:
370
371 iface_additional_bootcd:
372
373 .PHONY: iface_native iface_native_implib iface_native_clean iface_native_install \
374 iface_native_bootcd \
375 iface_additional iface_additional_implib iface_additional_clean \
376 iface_additional_install iface_additional_bootcd
377
378
379 #
380 # Bus driver rules
381 #
382 $(BUS): %:
383 $(MAKE) -C drivers/bus/$*
384
385 $(BUS:%=%_implib): %_implib:
386 $(MAKE) -C drivers/bus/$* implib
387
388 $(BUS:%=%_clean): %_clean:
389 $(MAKE) -C drivers/bus/$* clean
390
391 $(BUS:%=%_install): %_install:
392 $(MAKE) -C drivers/bus/$* install
393
394 $(BUS:%=%_bootcd): %_bootcd:
395 $(MAKE) -C drivers/bus/$* bootcd
396
397 .PHONY: $(BUS) $(BUS:%=%_implib) $(BUS:%=%_clean) \
398 $(BUS:%=%_install) $(BUS:%=%_bootcd)
399
400
401 #
402 # Driver support libraries rules
403 #
404 $(DRIVERS_LIB): %:
405 $(MAKE) -C drivers/lib/$*
406
407 $(DRIVERS_LIB:%=%_implib): %_implib:
408 $(MAKE) -C drivers/lib/$* implib
409
410 $(DRIVERS_LIB:%=%_clean): %_clean:
411 $(MAKE) -C drivers/lib/$* clean
412
413 $(DRIVERS_LIB:%=%_install): %_install:
414 $(MAKE) -C drivers/lib/$* install
415
416 $(DRIVERS_LIB:%=%_bootcd): %_bootcd:
417 $(MAKE) -C drivers/lib/$* bootcd
418
419 .PHONY: $(DRIVERS_LIB) $(DRIVERS_LIB:%=%_implib) $(DRIVERS_LIB:%=%_clean) \
420 $(DRIVERS_LIB:%=%_install) $(DRIVERS_LIB:%=%_bootcd)
421
422
423 #
424 # Device driver rules
425 #
426 $(DEVICE_DRIVERS): %:
427 $(MAKE) -C drivers/dd/$*
428
429 $(DEVICE_DRIVERS:%=%_implib): %_implib:
430 $(MAKE) -C drivers/dd/$* implib
431
432 $(DEVICE_DRIVERS:%=%_clean): %_clean:
433 $(MAKE) -C drivers/dd/$* clean
434
435 $(DEVICE_DRIVERS:%=%_install): %_install:
436 $(MAKE) -C drivers/dd/$* install
437
438 $(DEVICE_DRIVERS:%=%_bootcd): %_bootcd:
439 $(MAKE) -C drivers/dd/$* bootcd
440
441 .PHONY: $(DEVICE_DRIVERS) $(DEVICE_DRIVERS:%=%_implib) $(DEVICE_DRIVERS:%=%_clean) \
442 $(DEVICE_DRIVERS:%=%_install) $(DEVICE_DRIVERS:%=%_bootcd)
443
444
445 #
446 # Input driver rules
447 #
448 $(INPUT_DRIVERS): %:
449 $(MAKE) -C drivers/input/$*
450
451 $(INPUT_DRIVERS:%=%_implib): %_implib:
452 $(MAKE) -C drivers/input/$* implib
453
454 $(INPUT_DRIVERS:%=%_clean): %_clean:
455 $(MAKE) -C drivers/input/$* clean
456
457 $(INPUT_DRIVERS:%=%_install): %_install:
458 $(MAKE) -C drivers/input/$* install
459
460 $(INPUT_DRIVERS:%=%_bootcd): %_bootcd:
461 $(MAKE) -C drivers/input/$* bootcd
462
463 .PHONY: $(INPUT_DRIVERS) $(INPUT_DRIVERS:%=%_implib) $(INPUT_DRIVERS:%=%_clean)\
464 $(INPUT_DRIVERS:%=%_install) $(INPUT_DRIVERS:%=%_bootcd)
465
466
467 #
468 # Filesystem driver rules
469 #
470 $(FS_DRIVERS): %:
471 $(MAKE) -C drivers/fs/$*
472
473 $(FS_DRIVERS:%=%_implib): %_implib:
474 $(MAKE) -C drivers/fs/$* implib
475
476 $(FS_DRIVERS:%=%_clean): %_clean:
477 $(MAKE) -C drivers/fs/$* clean
478
479 $(FS_DRIVERS:%=%_install): %_install:
480 $(MAKE) -C drivers/fs/$* install
481
482 $(FS_DRIVERS:%=%_bootcd): %_bootcd:
483 $(MAKE) -C drivers/fs/$* bootcd
484
485 .PHONY: $(FS_DRIVERS) $(FS_DRIVERS:%=%_implib) $(FS_DRIVERS:%=%_clean) \
486 $(FS_DRIVERS:%=%_install) $(FS_DRIVERS:%=%_bootcd)
487
488
489 #
490 # Network driver rules
491 #
492 $(NET_DRIVERS): %:
493 $(MAKE) -C drivers/net/$*
494
495 $(NET_DRIVERS:%=%_implib): %_implib:
496 $(MAKE) -C drivers/net/$* implib
497
498 $(NET_DRIVERS:%=%_clean): %_clean:
499 $(MAKE) -C drivers/net/$* clean
500
501 $(NET_DRIVERS:%=%_install): %_install:
502 $(MAKE) -C drivers/net/$* install
503
504 $(NET_DRIVERS:%=%_bootcd): %_bootcd:
505 $(MAKE) -C drivers/net/$* bootcd
506
507 .PHONY: $(NET_DRIVERS) $(NET_DRIVERS:%=%_implib) $(NET_DRIVERS:%=%_clean) \
508 $(NET_DRIVERS:%=%_install) $(NET_DRIVERS:%=%_bootcd)
509
510
511 #
512 # Network device driver rules
513 #
514 $(NET_DEVICE_DRIVERS): %:
515 $(MAKE) -C drivers/net/dd/$*
516
517 $(NET_DEVICE_DRIVERS:%=%_implib): %_implib:
518 $(MAKE) -C drivers/net/dd/$* implib
519
520 $(NET_DEVICE_DRIVERS:%=%_clean): %_clean:
521 $(MAKE) -C drivers/net/dd/$* clean
522
523 $(NET_DEVICE_DRIVERS:%=%_install): %_install:
524 $(MAKE) -C drivers/net/dd/$* install
525
526 $(NET_DEVICE_DRIVERS:%=%_bootcd): %_bootcd:
527 $(MAKE) -C drivers/net/dd/$* bootcd
528
529 .PHONY: $(NET_DEVICE_DRIVERS) $(NET_DEVICE_DRIVERS:%=%_clean) $(NET_DEVICE_DRIVERS:%=%_implib) \
530 $(NET_DEVICE_DRIVERS:%=%_install) $(NET_DEVICE_DRIVERS:%=%_bootcd)
531
532
533 #
534 # storage driver rules
535 #
536 $(STORAGE_DRIVERS): %:
537 $(MAKE) -C drivers/storage/$*
538
539 $(STORAGE_DRIVERS:%=%_implib): %_implib:
540 $(MAKE) -C drivers/storage/$* implib
541
542 $(STORAGE_DRIVERS:%=%_clean): %_clean:
543 $(MAKE) -C drivers/storage/$* clean
544
545 $(STORAGE_DRIVERS:%=%_install): %_install:
546 $(MAKE) -C drivers/storage/$* install
547
548 $(STORAGE_DRIVERS:%=%_bootcd): %_bootcd:
549 $(MAKE) -C drivers/storage/$* bootcd
550
551 .PHONY: $(STORAGE_DRIVERS) $(STORAGE_DRIVERS:%=%_clean) $(STORAGE_DRIVERS:%=%_implib) \
552 $(STORAGE_DRIVERS:%=%_install) $(STORAGE_DRIVERS:%=%_bootcd)
553
554
555 #
556 # Kernel loaders
557 #
558 $(LOADERS): %:
559 $(MAKE) -C loaders/$*
560
561 $(LOADERS:%=%_implib): %_implib:
562
563 $(LOADERS:%=%_clean): %_clean:
564 $(MAKE) -C loaders/$* clean
565
566 $(LOADERS:%=%_install): %_install:
567 $(MAKE) -C loaders/$* install
568
569 .PHONY: $(LOADERS) $(LOADERS:%=%_implib) $(LOADERS:%=%_clean) $(LOADERS:%=%_install)
570
571
572 #
573 # Required system components
574 #
575 ntoskrnl:
576 $(MAKE) -C ntoskrnl
577
578 ntoskrnl_implib:
579 $(MAKE) -C ntoskrnl implib
580
581 ntoskrnl_clean:
582 $(MAKE) -C ntoskrnl clean
583
584 ntoskrnl_install:
585 $(MAKE) -C ntoskrnl install
586
587 ntoskrnl_bootcd:
588 $(MAKE) -C ntoskrnl bootcd
589
590 .PHONY: ntoskrnl ntoskrnl_implib ntoskrnl_clean ntoskrnl_install ntoskrnl_bootcd
591
592
593 #
594 # Hardware Abstraction Layer import library
595 #
596 hallib:
597 $(MAKE) -C hal/hal
598
599 hallib_implib:
600 $(MAKE) -C hal/hal implib
601
602 hallib_clean:
603 $(MAKE) -C hal/hal clean
604
605 hallib_install:
606 $(MAKE) -C hal/hal install
607
608 hallib_bootcd:
609 $(MAKE) -C hal/hal bootcd
610
611 .PHONY: hallib hallib_implib hallib_clean hallib_install hallib_bootcd
612
613
614 #
615 # Hardware Abstraction Layers
616 #
617 $(HALS): %:
618 $(MAKE) -C hal/$*
619
620 $(HALS:%=%_implib): %_implib:
621 $(MAKE) -C hal/$* implib
622
623 $(HALS:%=%_clean): %_clean:
624 $(MAKE) -C hal/$* clean
625
626 $(HALS:%=%_install): %_install:
627 $(MAKE) -C hal/$* install
628
629 $(HALS:%=%_bootcd): %_bootcd:
630 $(MAKE) -C hal/$* bootcd
631
632 .PHONY: $(HALS) $(HALS:%=%_implib) $(HALS:%=%_clean) $(HALS:%=%_install) $(HALS:%=%_bootcd)
633
634
635 #
636 # File system libraries
637 #
638 $(LIB_FSLIB): %:
639 $(MAKE) -C lib/fslib/$*
640
641 $(LIB_FSLIB:%=%_depends): %_depends:
642 $(MAKE) -C lib/fslib/$* depends
643
644 $(LIB_FSLIB:%=%_implib): %_implib:
645 $(MAKE) -C lib/fslib/$* implib
646
647 $(LIB_FSLIB:%=%_clean): %_clean:
648 $(MAKE) -C lib/fslib/$* clean
649
650 $(LIB_FSLIB:%=%_install): %_install:
651 $(MAKE) -C lib/fslib/$* install
652
653 $(LIB_FSLIB:%=%_bootcd): %_bootcd:
654 $(MAKE) -C lib/fslib/$* bootcd
655
656 .PHONY: $(LIB_FSLIB) $(LIB_FSLIB:%=%_depends) $(LIB_FSLIB:%=%_implib) $(LIB_FSLIB:%=%_clean) \
657 $(LIB_FSLIB:%=%_install) $(LIB_FSLIB:%=%_bootcd)
658
659
660 #
661 # Static libraries
662 #
663 $(LIB_STATIC): %:
664 $(MAKE) -C lib/$*
665
666 $(LIB_STATIC:%=%_depends): %_depends:
667 $(MAKE) -C lib/string depends
668
669 $(LIB_STATIC:%=%_implib): %_implib:
670 $(MAKE) -C lib/$* implib
671
672 $(LIB_STATIC:%=%_clean): %_clean:
673 $(MAKE) -C lib/$* clean
674
675 $(LIB_STATIC:%=%_install): %_install:
676 $(MAKE) -C lib/$* install
677
678 $(LIB_STATIC:%=%_bootcd): %_bootcd:
679 $(MAKE) -C lib/$* bootcd
680
681 .PHONY: $(LIB_STATIC) $(LIB_STATIC:%=%_depends) $(LIB_STATIC:%=%_implib) $(LIB_STATIC:%=%_clean) \
682 $(LIB_STATIC:%=%_install) $(LIB_STATIC:%=%_bootcd)
683
684
685 #
686 # DLLs
687 #
688 $(DLLS): %:
689 $(MAKE) -C lib/$*
690
691 $(DLLS:%=%_depends): %_depends:
692 $(MAKE) -C lib/$* depends
693
694 $(DLLS:%=%_implib): %_implib:
695 $(MAKE) -C lib/$* implib
696
697 $(DLLS:%=%_clean): %_clean:
698 $(MAKE) -C lib/$* clean
699
700 $(DLLS:%=%_install): %_install:
701 $(MAKE) -C lib/$* install
702
703 $(DLLS:%=%_bootcd): %_bootcd:
704 $(MAKE) -C lib/$* bootcd
705
706 .PHONY: $(DLLS) $(DLLS:%=%_depends) $(DLLS:%=%_implib) $(DLLS:%=%_clean) $(DLLS:%=%_install) \
707 $(DLLS:%=%_bootcd)
708
709
710 #
711 # Subsystem support modules
712 #
713 $(SUBSYS): %:
714 $(MAKE) -C subsys/$*
715
716 $(SUBSYS:%=%_depends): %_depends:
717 $(MAKE) -C subsys/$* depends
718
719 $(SUBSYS:%=%_implib): %_implib:
720 $(MAKE) -C subsys/$* implib
721
722 $(SUBSYS:%=%_clean): %_clean:
723 $(MAKE) -C subsys/$* clean
724
725 $(SUBSYS:%=%_install): %_install:
726 $(MAKE) -C subsys/$* install
727
728 $(SUBSYS:%=%_bootcd): %_bootcd:
729 $(MAKE) -C subsys/$* bootcd
730
731 .PHONY: $(SUBSYS) $(SUBSYS:%=%_depends) $(SUBSYS:%=%_implib) $(SUBSYS:%=%_clean) $(SUBSYS:%=%_install) \
732 $(SUBSYS:%=%_bootcd)
733
734 #
735 # Regression testsuite
736 #
737
738 $(REGTESTS): %:
739 $(MAKE) -C regtests
740
741 $(REGTESTS:%=%_clean): %_clean:
742 $(MAKE) -C regtests clean
743
744 $(REGTESTS:%=%_install): %_install:
745 $(MAKE) -C regtests install
746
747 .PHONY: $(REGTESTS) $(REGTESTS:%=%_depends) $(SUBSYS:%=%_clean) $(REGTESTS:%=%_install)
748
749
750 #
751 # Create an installation
752 #
753
754 install_clean:
755 $(RM) $(INSTALL_DIR)/system32/drivers/*.*
756 $(RM) $(INSTALL_DIR)/system32/config/*.*
757 $(RM) $(INSTALL_DIR)/system32/*.*
758 $(RM) $(INSTALL_DIR)/symbols/*.*
759 $(RM) $(INSTALL_DIR)/media/fonts/*.*
760 $(RM) $(INSTALL_DIR)/media/*.*
761 $(RM) $(INSTALL_DIR)/bin/*.*
762 $(RM) $(INSTALL_DIR)/*.com
763 $(RM) $(INSTALL_DIR)/*.bat
764 $(RMDIR) $(INSTALL_DIR)/system32/drivers
765 $(RMDIR) $(INSTALL_DIR)/system32/config
766 $(RMDIR) $(INSTALL_DIR)/system32
767 $(RMDIR) $(INSTALL_DIR)/symbols
768 $(RMDIR) $(INSTALL_DIR)/media/fonts
769 $(RMDIR) $(INSTALL_DIR)/media
770 $(RMDIR) $(INSTALL_DIR)/bin
771 $(RMDIR) $(INSTALL_DIR)
772
773 install_dirs:
774 $(RMKDIR) $(INSTALL_DIR)
775 $(RMKDIR) $(INSTALL_DIR)/bin
776 $(RMKDIR) $(INSTALL_DIR)/media
777 $(RMKDIR) $(INSTALL_DIR)/media/fonts
778 $(RMKDIR) $(INSTALL_DIR)/symbols
779 $(RMKDIR) $(INSTALL_DIR)/system32
780 $(RMKDIR) $(INSTALL_DIR)/system32/config
781 $(RMKDIR) $(INSTALL_DIR)/system32/drivers
782
783 install_before:
784 $(CP) bootc.lst $(INSTALL_DIR)/bootc.lst
785 $(CP) boot.bat $(INSTALL_DIR)/boot.bat
786 $(CP) aboot.bat $(INSTALL_DIR)/aboot.bat
787 $(CP) media/fonts $(INSTALL_DIR)/media/fonts
788 $(CP) media/nls $(INSTALL_DIR)/system32
789 $(CP) media/nls/c_1252.nls $(INSTALL_DIR)/system32/ansi.nls
790 $(CP) media/nls/c_437.nls $(INSTALL_DIR)/system32/oem.nls
791 $(CP) media/nls/l_intl.nls $(INSTALL_DIR)/system32/casemap.nls
792
793 .PHONY: install_clean install_dirs install_before
794
795
796 etags:
797 find . -name "*.[ch]" -print | etags --language=c -
798
799
800 docu:
801 echo generating ReactOS NTOSKRNL documentation ...
802 $(MAKE) -C ntoskrnl docu
803
804 echo generating ReactOS drivers documentation ...
805 $(MAKE) -C drivers docu
806
807 echo generating ReactOS NTDLL documentation ...
808 $(MAKE) -C lib/ntdll docu
809
810 echo generating ReactOS Freetype documentation ...
811 $(MAKE) -C lib/freetype docu
812
813 echo generating ReactOS libs documentation ...
814 $(MAKE) -C lib docu
815
816 echo generating ReactOS WIN32K documentation ...
817 $(MAKE) -C subsys/win32k docu
818
819 echo generating ReactOS apps+tools documentation ...
820 $(MAKE) -C apps docu
821
822 echo generating ReactOS explorer documentation ...
823 $(MAKE) -C subsys/system/explorer
824
825 echo generating remaining ReactOS documentation ...
826 doxygen Doxyfile
827
828 .PHONY: docu
829
830
831 # EOF