Accelerate PATCOPY blits.
[reactos.git] / reactos / Makefile
1 #
2 # Global makefile
3 #
4
5 PATH_TO_TOP = .
6
7 #
8 # Define to build WINE modules
9 #
10 ifeq ($(ROS_BUILD_WINE),)
11 ROS_BUILD_WINE = no
12 else
13 ROS_BUILD_WINE = yes
14 endif
15
16 include $(PATH_TO_TOP)/rules.mak
17
18 # Required to run the system
19 COMPONENTS = iface_native iface_additional hallib ntoskrnl
20
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 # User mode libraries
31 # advapi32 crtdll fmifs gdi32 kernel32 libpcap packet msafd msvcrt ntdll ole32
32 # oleaut32 psapi rpcrt4 secur32 shell32 user32 version ws2help ws2_32 wsock32 wshirda
33 DLLS = advapi32 crtdll fmifs gdi32 kernel32 packet msafd msvcrt ntdll \
34 secur32 user32 version ws2help ws2_32 wshirda
35 SUBSYS = smss win32k csrss
36
37 #
38 # Select the server(s) you want to build
39 #
40 #SERVERS = posix linux os2
41 SERVERS = win32
42
43 # Boot loaders
44 # dos
45 LOADERS = dos
46
47 # Driver support libraries
48 #bzip2 zlib
49 DRIVERS_LIB = bzip2 zlib
50
51 # Kernel mode device drivers
52 # beep blue floppy ide keyboard mouse null parallel ramdrv serial vga vidport
53 DEVICE_DRIVERS = beep blue floppy ide null vga vidport
54
55 # Kernel mode input drivers
56 # keyboard mouclass psaux sermouse
57 INPUT_DRIVERS = keyboard mouclass psaux
58
59 # Kernel mode file system drivers
60 # cdfs ext2 fs_rec ms np vfat
61 FS_DRIVERS = cdfs fs_rec ms np vfat mup ntfs
62
63 # Kernel mode networking drivers
64 # afd ndis packet tcpip tdi wshtcpip
65 NET_DRIVERS = afd ndis packet tcpip tdi wshtcpip
66
67 # Kernel mode networking device drivers
68 # ne2000
69 NET_DEVICE_DRIVERS = ne2000
70
71 # Kernel mode storage drivers
72 # atapi cdrom class2 disk scsiport
73 STORAGE_DRIVERS = atapi cdrom class2 disk scsiport
74
75 # System applications
76 # autochk lsass services shell winlogon
77 SYS_APPS = autochk services shell winlogon gstart usetup
78
79 # System services
80 # rpcss eventlog
81 SYS_SVC = rpcss eventlog
82
83 # Test applications
84 # alive apc args atomtest bench consume count dump_shared_data
85 # event file gditest hello isotest lpc mstest mutex nptest
86 # pteb regtest sectest shm simple thread vmtest winhello
87 TEST_APPS = alive apc args atomtest bench consume count dump_shared_data \
88 event file gditest hello isotest lpc mstest mutex nptest \
89 pteb regtest sectest shm simple thread tokentest vmtest winhello
90
91 # Test applications
92 # cabman cat net objdir partinfo pice ps stats
93 UTIL_APPS = cat objdir partinfo stats
94
95 #
96 # Win32 Subsystem support (Based on WINE)
97 # FIXME: Move to this its own Makefile
98 #
99
100 WINE_OTHER = unicode library
101
102 WINE_TOOLS = bin2res wrc winebuild
103
104 WINE_DLLS = comcat crtdll comctl32 commdlg dsound dplayx imagehlp ole32 richedit \
105 shlwapi shell32 shdocvw twain urlmon winspool \
106 rpcrt4 # needed to make rcprt4 implib
107
108 # mapi32 oleaut32 oledlg olepro32 olecli olesvr shfolder
109 # winmm ddraw dinput dplay serialui tapi32 urlmon wintrust
110 # msinfo lzexpand (missing imports)
111
112 WINE_PROGS = control expand osversioncheck regedit regsvr32 winver uninstaller
113 # (waiting on wrc fix for the rest of these)
114 # clock cmdlgtst notepad progman wcmd
115 # winefile winemine winetest uninstaller
116
117
118 ifeq ($(ROS_BUILD_WINE),yes)
119 WINE_MODULES = $(WINE_OTHER) $(WINE_TOOLS) $(WINE_DLLS) $(WINE_PROGS)
120 else
121 WINE_MODULES =
122 endif
123
124 KERNEL_DRIVERS = $(DRIVERS_LIB) $(DEVICE_DRIVERS) $(INPUT_DRIVERS) $(FS_DRIVERS) \
125 $(NET_DRIVERS) $(NET_DEVICE_DRIVERS) $(STORAGE_DRIVERS)
126
127 all: tools dk implib $(COMPONENTS) $(HALS) $(BUS) $(DLLS) $(SUBSYS) \
128 $(LOADERS) $(KERNEL_DRIVERS) $(SYS_APPS) $(SYS_SVC) $(TEST_APPS) \
129 $(UTIL_APPS) $(WINE_MODULES)
130
131 implib: $(COMPONENTS:%=%_implib) $(HALS:%=%_implib) $(BUS:%=%_implib) \
132 $(DLLS:%=%_implib) $(LOADERS:%=%_implib) \
133 $(KERNEL_DRIVERS:%=%_implib) $(SUBSYS:%=%_implib) \
134 $(SYS_APPS:%=%_implib) $(SYS_SVC:%=%_implib) \
135 $(TEST_APPS:%=%_implib) $(UTIL_APPS:%=%_implib) \
136 $(WINE_MODULES:%=%_implib)
137
138 clean: tools dk_clean $(HALS:%=%_clean) \
139 $(COMPONENTS:%=%_clean) $(BUS:%=%_clean) $(DLLS:%=%_clean) \
140 $(LOADERS:%=%_clean) $(KERNEL_DRIVERS:%=%_clean) $(SUBSYS:%=%_clean) \
141 $(SYS_APPS:%=%_clean) $(SYS_SVC:%=%_clean) $(TEST_APPS:%=%_clean) \
142 $(UTIL_APPS:%=%_clean) $(NET_APPS:%=%_clean) $(WINE_MODULES:%=%_clean) \
143 clean_after tools_clean
144
145 clean_after:
146 $(RM) $(PATH_TO_TOP)/include/roscfg.h
147
148 install: tools install_dirs install_before \
149 $(COMPONENTS:%=%_install) $(HALS:%=%_install) $(BUS:%=%_install) \
150 $(DLLS:%=%_install) $(LOADERS:%=%_install) \
151 $(KERNEL_DRIVERS:%=%_install) $(SUBSYS:%=%_install) \
152 $(SYS_APPS:%=%_install) $(SYS_SVC:%=%_install) \
153 $(TEST_APPS:%=%_install) $(UTIL_APPS:%=%_install) \
154 $(WINE_MODULES:%=%_install)
155
156 dist: $(TOOLS_PATH)/rcopy$(EXE_POSTFIX) dist_clean dist_dirs \
157 $(HALS:%=%_dist) $(COMPONENTS:%=%_dist) $(BUS:%=%_dist) $(DLLS:%=%_dist) \
158 $(LOADERS:%=%_dist) $(KERNEL_DRIVERS:%=%_dist) $(SUBSYS:%=%_dist) \
159 $(SYS_APPS:%=%_dist) $(SYS_SVC:%=%_dist) $(TEST_APPS:%=%_dist) \
160 $(UTIL_APPS:%=%_dist) $(NET_APPS:%=%_dist) $(WINE_MODULES:%=%_dist)
161
162 .PHONY: all implib clean clean_before install dist
163
164
165 #
166 # System Applications
167 #
168 $(SYS_APPS): %:
169 make -C subsys/system/$*
170
171 $(SYS_APPS:%=%_implib): %_implib:
172 make -C subsys/system/$* implib
173
174 $(SYS_APPS:%=%_clean): %_clean:
175 make -C subsys/system/$* clean
176
177 $(SYS_APPS:%=%_dist): %_dist:
178 make -C subsys/system/$* dist
179
180 $(SYS_APPS:%=%_install): %_install:
181 make -C subsys/system/$* install
182
183 .PHONY: $(SYS_APPS) $(SYS_APPS:%=%_implib) $(SYS_APPS:%=%_clean) $(SYS_APPS:%=%_install) $(SYS_APPS:%=%_dist)
184
185 #
186 # System Services
187 #
188 $(SYS_SVC): %:
189 make -C services/$*
190
191 $(SYS_SVC:%=%_implib): %_implib:
192 make -C services/$* implib
193
194 $(SYS_SVC:%=%_clean): %_clean:
195 make -C services/$* clean
196
197 $(SYS_SVC:%=%_dist): %_dist:
198 make -C services/$* dist
199
200 $(SYS_SVC:%=%_install): %_install:
201 make -C services/$* install
202
203 .PHONY: $(SYS_SVC) $(SYS_SVC:%=%_implib) $(SYS_SVC:%=%_clean) $(SYS_SVC:%=%_install) $(SYS_SVC:%=%_dist)
204
205
206 #
207 # Test Applications
208 #
209 $(TEST_APPS): %:
210 make -C apps/tests/$*
211
212 $(TEST_APPS:%=%_implib): %_implib:
213 make -C apps/tests/$* implib
214
215 $(TEST_APPS:%=%_clean): %_clean:
216 make -C apps/tests/$* clean
217
218 $(TEST_APPS:%=%_dist): %_dist:
219 make -C apps/tests/$* dist
220
221 $(TEST_APPS:%=%_install): %_install:
222 make -C apps/tests/$* install
223
224 .PHONY: $(TEST_APPS) $(TEST_APPS:%=%_implib) $(TEST_APPS:%=%_clean) $(TEST_APPS:%=%_install) $(TEST_APPS:%=%_dist)
225
226
227 #
228 # Utility Applications
229 #
230 $(UTIL_APPS): %:
231 make -C apps/utils/$*
232
233 $(UTIL_APPS:%=%_implib): %_implib:
234 make -C apps/utils/$* implib
235
236 $(UTIL_APPS:%=%_clean): %_clean:
237 make -C apps/utils/$* clean
238
239 $(UTIL_APPS:%=%_dist): %_dist:
240 make -C apps/utils/$* dist
241
242 $(UTIL_APPS:%=%_install): %_install:
243 make -C apps/utils/$* install
244
245 .PHONY: $(UTIL_APPS) $(UTIL_APPS:%=%_implib) $(UTIL_APPS:%=%_clean) $(UTIL_APPS:%=%_install) $(UTIL_APPS:%=%_dist)
246
247
248 #
249 # Other Wine Modules
250 #
251 $(WINE_OTHER): %:
252 make -f makefile.ros -C $(WINE_PATH)/$*
253
254 $(WINE_OTHER:%=%_implib): %_implib:
255 make -f makefile.ros -C $(WINE_PATH)/$* implib
256
257 $(WINE_OTHER:%=%_clean): %_clean:
258 make -f makefile.ros -C $(WINE_PATH)/$* clean
259
260 $(WINE_OTHER:%=%_dist): %_dist:
261 make -f makefile.ros -C $(WINE_PATH)/$* dist
262
263 $(WINE_OTHER:%=%_install): %_install:
264 make -f makefile.ros -C $(WINE_PATH)/$* install
265
266 .PHONY: $(WINE_OTHER) $(WINE_OTHER:%=%_implib) $(WINE_OTHER:%=%_clean) $(WINE_OTHER:%=%_install) $(WINE_OTHER:%=%_dist)
267
268
269 #
270 # Wine Tools
271 #
272 $(WINE_TOOLS): %:
273 make -f makefile.ros -C $(WINE_PATH)/tools/$*
274
275 $(WINE_TOOLS:%=%_implib): %_implib:
276 make -f makefile.ros -C $(WINE_PATH)/tools/$* implib
277
278 $(WINE_TOOLS:%=%_clean): %_clean:
279 make -f makefile.ros -C $(WINE_PATH)/tools/$* clean
280
281 $(WINE_TOOLS:%=%_dist): %_dist:
282 make -f makefile.ros -C $(WINE_PATH)/tools/$* dist
283
284 $(WINE_TOOLS:%=%_install): %_install:
285 make -f makefile.ros -C $(WINE_PATH)/tools/$* install
286
287 .PHONY: $(WINE_DLLS) $(WINE_DLLS:%=%_implib) $(WINE_DLLS:%=%_clean) $(WINE_DLLS:%=%_install) $(WINE_DLLS:%=%_dist)
288
289
290 #
291 # Wine DLLs
292 #
293 $(WINE_DLLS): %:
294 make -f makefile.ros -C $(WINE_PATH)/dlls/$*
295
296 $(WINE_DLLS:%=%_implib): %_implib:
297 make -f makefile.ros -C $(WINE_PATH)/dlls/$* implib
298
299 $(WINE_DLLS:%=%_clean): %_clean:
300 make -f makefile.ros -C $(WINE_PATH)/dlls/$* clean
301
302 $(WINE_DLLS:%=%_dist): %_dist:
303 make -f makefile.ros -C $(WINE_PATH)/dlls/$* dist
304
305 $(WINE_DLLS:%=%_install): %_install:
306 make -f makefile.ros -C $(WINE_PATH)/dlls/$* install
307
308 .PHONY: $(WINE_DLLS) $(WINE_DLLS:%=%_implib) $(WINE_DLLS:%=%_clean) $(WINE_DLLS:%=%_install) $(WINE_DLLS:%=%_dist)
309
310
311 #
312 # Wine programs
313 #
314 $(WINE_PROGS): %:
315 make -f makefile.ros -C $(WINE_PATH)/programs/$*
316
317 $(WINE_PROGS:%=%_implib): %_implib:
318 make -f makefile.ros -C $(WINE_PATH)/programs/$* implib
319
320 $(WINE_PROGS:%=%_clean): %_clean:
321 make -f makefile.ros -C $(WINE_PATH)/programs/$* clean
322
323 $(WINE_PROGS:%=%_dist): %_dist:
324 make -f makefile.ros -C $(WINE_PATH)/programs/$* dist
325
326 $(WINE_PROGS:%=%_install): %_install:
327 make -f makefile.ros -C $(WINE_PATH)/programs/$* install
328
329 .PHONY: $(WINE_PROGS) $(WINE_PROGS:%=%_implib) $(WINE_PROGS:%=%_clean) $(WINE_PROGS:%=%_install) $(WINE_PROGS:%=%_dist)
330
331
332 #
333 # Tools
334 #
335 tools:
336 make -C tools
337
338 tools_implib:
339
340 tools_clean:
341 make -C tools clean
342
343 tools_install:
344
345 tools_dist:
346
347 .PHONY: tools tools_implib tools_clean tools_install tools_dist
348
349
350 #
351 # Developer Kits
352 #
353 dk:
354 $(RMKDIR) $(DK_PATH)
355 $(RMKDIR) $(DDK_PATH)
356 $(RMKDIR) $(DDK_PATH_LIB)
357 $(RMKDIR) $(DDK_PATH_INC)
358 $(RMKDIR) $(SDK_PATH)
359 $(RMKDIR) $(SDK_PATH_LIB)
360 $(RMKDIR) $(SDK_PATH_INC)
361 $(RMKDIR) $(XDK_PATH)
362 $(RMKDIR) $(XDK_PATH_LIB)
363 $(RMKDIR) $(XDK_PATH_INC)
364
365 dk_implib:
366
367 # WARNING! Be very sure that there are no important files
368 # in these directories before cleaning them!!!
369 dk_clean:
370 $(RM) $(DDK_PATH_LIB)/*.a
371 # $(RM) $(DDK_PATH_INC)/*.h
372 $(RMDIR) $(DDK_PATH_LIB)
373 # $(RMDIR) $(DDK_PATH_INC)
374 $(RM) $(SDK_PATH_LIB)/*.a
375 # $(RM) $(SDK_PATH_INC)/*.h
376 $(RMDIR) $(SDK_PATH_LIB)
377 # $(RMDIR) $(SDK_PATH_INC)
378 $(RM) $(XDK_PATH_LIB)/*.a
379 # $(RM) $(XDK_PATH_INC)/*.h
380 $(RMDIR) $(XDK_PATH_LIB)
381 # $(RMDIR) $(XDK_PATH_INC)
382
383 dk_install:
384
385 dk_dist:
386
387 .PHONY: dk dk_implib dk_clean dk_install dk_dist
388
389
390 #
391 # Interfaces
392 #
393 iface_native:
394 make -C iface/native
395
396 iface_native_implib:
397
398 iface_native_clean:
399 make -C iface/native clean
400
401 iface_native_install:
402
403 iface_native_dist:
404
405 iface_additional:
406 make -C iface/addsys
407
408 iface_additional_implib:
409
410 iface_additional_clean:
411 make -C iface/addsys clean
412
413 iface_additional_install:
414
415 iface_additional_dist:
416
417 .PHONY: iface_native iface_native_implib iface_native_clean iface_native_install \
418 iface_native_dist \
419 iface_additional iface_additional_implib iface_additional_clean \
420 iface_additional_install iface_additional_dist
421
422 #
423 # Bus driver rules
424 #
425 $(BUS): %:
426 make -C drivers/bus/$*
427
428 $(BUS:%=%_implib): %_implib:
429 make -C drivers/bus/$* implib
430
431 $(BUS:%=%_clean): %_clean:
432 make -C drivers/bus/$* clean
433
434 $(BUS:%=%_install): %_install:
435 make -C drivers/bus/$* install
436
437 $(BUS:%=%_dist): %_dist:
438 make -C drivers/bus/$* dist
439
440 .PHONY: $(BUS) $(BUS:%=%_implib) $(BUS:%=%_clean) \
441 $(BUS:%=%_install) $(BUS:%=%_dist)
442
443 #
444 # Driver support libraries rules
445 #
446 $(DRIVERS_LIB): %:
447 make -C drivers/lib/$*
448
449 $(DRIVERS_LIB:%=%_implib): %_implib:
450 make -C drivers/lib/$* implib
451
452 $(DRIVERS_LIB:%=%_clean): %_clean:
453 make -C drivers/lib/$* clean
454
455 $(DRIVERS_LIB:%=%_install): %_install:
456 make -C drivers/lib/$* install
457
458 $(DRIVERS_LIB:%=%_dist): %_dist:
459 make -C drivers/lib/$* dist
460
461 .PHONY: $(DRIVERS_LIB) $(DRIVERS_LIB:%=%_implib) $(DRIVERS_LIB:%=%_clean) \
462 $(DRIVERS_LIB:%=%_install) $(DRIVERS_LIB:%=%_dist)
463
464 #
465 # Device driver rules
466 #
467 $(DEVICE_DRIVERS): %:
468 make -C drivers/dd/$*
469
470 $(DEVICE_DRIVERS:%=%_implib): %_implib:
471 make -C drivers/dd/$* implib
472
473 $(DEVICE_DRIVERS:%=%_clean): %_clean:
474 make -C drivers/dd/$* clean
475
476 $(DEVICE_DRIVERS:%=%_install): %_install:
477 make -C drivers/dd/$* install
478
479 $(DEVICE_DRIVERS:%=%_dist): %_dist:
480 make -C drivers/dd/$* dist
481
482 .PHONY: $(DEVICE_DRIVERS) $(DEVICE_DRIVERS:%=%_implib) $(DEVICE_DRIVERS:%=%_clean) \
483 $(DEVICE_DRIVERS:%=%_install) $(DEVICE_DRIVERS:%=%_dist)
484
485 #
486 # Input driver rules
487 #
488 $(INPUT_DRIVERS): %:
489 make -C drivers/input/$*
490
491 $(INPUT_DRIVERS:%=%_implib): %_implib:
492 make -C drivers/input/$* implib
493
494 $(INPUT_DRIVERS:%=%_clean): %_clean:
495 make -C drivers/input/$* clean
496
497 $(INPUT_DRIVERS:%=%_install): %_install:
498 make -C drivers/input/$* install
499
500 $(INPUT_DRIVERS:%=%_dist): %_dist:
501 make -C drivers/input/$* dist
502
503 .PHONY: $(INPUT_DRIVERS) $(INPUT_DRIVERS:%=%_implib) $(INPUT_DRIVERS:%=%_clean)\
504 $(INPUT_DRIVERS:%=%_install) $(INPUT_DRIVERS:%=%_dist)
505
506 $(FS_DRIVERS): %:
507 make -C drivers/fs/$*
508
509 $(FS_DRIVERS:%=%_implib): %_implib:
510 make -C drivers/fs/$* implib
511
512 $(FS_DRIVERS:%=%_clean): %_clean:
513 make -C drivers/fs/$* clean
514
515 $(FS_DRIVERS:%=%_install): %_install:
516 make -C drivers/fs/$* install
517
518 $(FS_DRIVERS:%=%_dist): %_dist:
519 make -C drivers/fs/$* dist
520
521 .PHONY: $(FS_DRIVERS) $(FS_DRIVERS:%=%_implib) $(FS_DRIVERS:%=%_clean) \
522 $(FS_DRIVERS:%=%_install) $(FS_DRIVERS:%=%_dist)
523
524 #
525 # Network driver rules
526 #
527 $(NET_DRIVERS): %:
528 make -C drivers/net/$*
529
530 $(NET_DRIVERS:%=%_implib): %_implib:
531 make -C drivers/net/$* implib
532
533 $(NET_DRIVERS:%=%_clean): %_clean:
534 make -C drivers/net/$* clean
535
536 $(NET_DRIVERS:%=%_install): %_install:
537 make -C drivers/net/$* install
538
539 $(NET_DRIVERS:%=%_dist): %_dist:
540 make -C drivers/net/$* dist
541
542 .PHONY: $(NET_DRIVERS) $(NET_DRIVERS:%=%_implib) $(NET_DRIVERS:%=%_clean) \
543 $(NET_DRIVERS:%=%_install) $(NET_DRIVERS:%=%_dist)
544
545 $(NET_DEVICE_DRIVERS): %:
546 make -C drivers/net/dd/$*
547
548 $(NET_DEVICE_DRIVERS:%=%_implib): %_implib:
549 make -C drivers/net/dd/$* implib
550
551 $(NET_DEVICE_DRIVERS:%=%_clean): %_clean:
552 make -C drivers/net/dd/$* clean
553
554 $(NET_DEVICE_DRIVERS:%=%_install): %_install:
555 make -C drivers/net/dd/$* install
556
557 $(NET_DEVICE_DRIVERS:%=%_dist): %_dist:
558 make -C drivers/net/dd/$* dist
559
560 .PHONY: $(NET_DEVICE_DRIVERS) $(NET_DEVICE_DRIVERS:%=%_clean) $(NET_DEVICE_DRIVERS:%=%_implib) \
561 $(NET_DEVICE_DRIVERS:%=%_install) $(NET_DEVICE_DRIVERS:%=%_dist)
562
563 #
564 # storage driver rules
565 #
566 $(STORAGE_DRIVERS): %:
567 make -C drivers/storage/$*
568
569 $(STORAGE_DRIVERS:%=%_implib): %_implib:
570 make -C drivers/storage/$* implib
571
572 $(STORAGE_DRIVERS:%=%_clean): %_clean:
573 make -C drivers/storage/$* clean
574
575 $(STORAGE_DRIVERS:%=%_install): %_install:
576 make -C drivers/storage/$* install
577
578 $(STORAGE_DRIVERS:%=%_dist): %_dist:
579 make -C drivers/storage/$* dist
580
581 .PHONY: $(STORAGE_DRIVERS) $(STORAGE_DRIVERS:%=%_clean) \
582 $(STORAGE_DRIVERS:%=%_install) $(STORAGE_DRIVERS:%=%_dist)
583
584 #
585 # Kernel loaders
586 #
587
588 $(LOADERS): %:
589 make -C loaders/$*
590
591 $(LOADERS:%=%_implib): %_implib:
592
593 $(LOADERS:%=%_clean): %_clean:
594 make -C loaders/$* clean
595
596 $(LOADERS:%=%_install): %_install:
597 make -C loaders/$* install
598
599 $(LOADERS:%=%_dist): %_dist:
600 make -C loaders/$* dist
601
602 .PHONY: $(LOADERS) $(LOADERS:%=%_implib) $(LOADERS:%=%_clean) $(LOADERS:%=%_install) \
603 $(LOADERS:%=%_dist)
604
605 #
606 # Required system components
607 #
608
609 ntoskrnl:
610 make -C ntoskrnl
611
612 ntoskrnl_implib:
613 make -C ntoskrnl implib
614
615 ntoskrnl_clean:
616 make -C ntoskrnl clean
617
618 ntoskrnl_install:
619 make -C ntoskrnl install
620
621 ntoskrnl_dist:
622 make -C ntoskrnl dist
623
624 .PHONY: ntoskrnl ntoskrnl_implib ntoskrnl_clean ntoskrnl_install ntoskrnl_dist
625
626 #
627 # Hardware Abstraction Layer import library
628 #
629
630 hallib:
631 make -C hal/hal
632
633 hallib_implib:
634 make -C hal/hal implib
635
636 hallib_clean:
637 make -C hal/hal clean
638
639 hallib_install:
640 make -C hal/hal install
641
642 hallib_dist:
643 make -C hal/hal dist
644
645 .PHONY: hallib hallib_implib hallib_clean hallib_install hallib_dist
646
647 #
648 # Hardware Abstraction Layers
649 #
650
651 $(HALS): %:
652 make -C hal/$*
653
654 $(HALS:%=%_implib): %_implib:
655 make -C hal/$* implib
656
657 $(HALS:%=%_clean): %_clean:
658 make -C hal/$* clean
659
660 $(HALS:%=%_install): %_install:
661 make -C hal/$* install
662
663 $(HALS:%=%_dist): %_dist:
664 make -C hal/$* dist
665
666 .PHONY: $(HALS) $(HALS:%=%_implib) $(HALS:%=%_clean) $(HALS:%=%_install) $(HALS:%=%_dist)
667
668 #
669 # Required DLLs
670 #
671
672 $(DLLS): %:
673 make -C lib/$*
674
675 $(DLLS:%=%_implib): %_implib:
676 make -C lib/$* implib
677
678 $(DLLS:%=%_clean): %_clean:
679 make -C lib/$* clean
680
681 $(DLLS:%=%_install): %_install:
682 make -C lib/$* install
683
684 $(DLLS:%=%_dist): %_dist:
685 make -C lib/$* dist
686
687 .PHONY: $(DLLS) $(DLLS:%=%_implib) $(DLLS:%=%_clean) $(DLLS:%=%_install) $(DLLS:%=%_dist)
688
689 #
690 # Subsystem support modules
691 #
692
693 $(SUBSYS): %:
694 make -C subsys/$*
695
696 $(SUBSYS:%=%_implib): %_implib:
697 make -C subsys/$* implib
698
699 $(SUBSYS:%=%_clean): %_clean:
700 make -C subsys/$* clean
701
702 $(SUBSYS:%=%_install): %_install:
703 make -C subsys/$* install
704
705 $(SUBSYS:%=%_dist): %_dist:
706 make -C subsys/$* dist
707
708 .PHONY: $(SUBSYS) $(SUBSYS:%=%_implib) $(SUBSYS:%=%_clean) $(SUBSYS:%=%_install) \
709 $(SUBSYS:%=%_dist)
710
711 #
712 # Create an installation
713 #
714
715 install_clean:
716 $(RM) $(INSTALL_DIR)/system32/drivers/*.*
717 $(RM) $(INSTALL_DIR)/system32/config/*.*
718 $(RM) $(INSTALL_DIR)/system32/*.*
719 $(RM) $(INSTALL_DIR)/symbols/*.*
720 $(RM) $(INSTALL_DIR)/media/fonts/*.*
721 $(RM) $(INSTALL_DIR)/media/*.*
722 $(RM) $(INSTALL_DIR)/bin/*.*
723 $(RM) $(INSTALL_DIR)/*.com
724 $(RM) $(INSTALL_DIR)/*.bat
725 $(RMDIR) $(INSTALL_DIR)/system32/drivers
726 $(RMDIR) $(INSTALL_DIR)/system32/config
727 $(RMDIR) $(INSTALL_DIR)/system32
728 $(RMDIR) $(INSTALL_DIR)/symbols
729 $(RMDIR) $(INSTALL_DIR)/media/fonts
730 $(RMDIR) $(INSTALL_DIR)/media
731 $(RMDIR) $(INSTALL_DIR)/bin
732 $(RMDIR) $(INSTALL_DIR)
733
734 install_dirs:
735 $(RMKDIR) $(INSTALL_DIR)
736 $(RMKDIR) $(INSTALL_DIR)/bin
737 $(RMKDIR) $(INSTALL_DIR)/media
738 $(RMKDIR) $(INSTALL_DIR)/media/fonts
739 $(RMKDIR) $(INSTALL_DIR)/symbols
740 $(RMKDIR) $(INSTALL_DIR)/system32
741 $(RMKDIR) $(INSTALL_DIR)/system32/config
742 $(RMKDIR) $(INSTALL_DIR)/system32/drivers
743
744 install_before:
745 $(CP) bootc.lst $(INSTALL_DIR)/bootc.lst
746 $(CP) boot.bat $(INSTALL_DIR)/boot.bat
747 $(CP) aboot.bat $(INSTALL_DIR)/aboot.bat
748 $(CP) system.hiv $(INSTALL_DIR)/system32/config/system.hiv
749 $(CP) media/fonts/helb____.ttf $(INSTALL_DIR)/media/fonts/helb____.ttf
750 $(CP) media/fonts/timr____.ttf $(INSTALL_DIR)/media/fonts/timr____.ttf
751
752 .PHONY: install_clean install_dirs install_before
753
754
755 #
756 # Make a distribution saveset
757 #
758
759 dist_clean:
760 $(RM) $(DIST_DIR)/symbols/*.sym
761 $(RM) $(DIST_DIR)/drivers/*.sys
762 $(RM) $(DIST_DIR)/subsys/*.exe
763 $(RM) $(DIST_DIR)/dlls/*.dll
764 $(RM) $(DIST_DIR)/apps/*.exe
765 $(RM) $(DIST_DIR)/*.exe
766 $(RMDIR) $(DIST_DIR)/symbols
767 $(RMDIR) $(DIST_DIR)/subsys
768 $(RMDIR) $(DIST_DIR)/drivers
769 $(RMDIR) $(DIST_DIR)/dlls
770 $(RMDIR) $(DIST_DIR)/apps
771 $(RMDIR) $(DIST_DIR)
772
773 dist_dirs:
774 $(RMKDIR) $(DIST_DIR)
775 $(RMKDIR) $(DIST_DIR)/apps
776 $(RMKDIR) $(DIST_DIR)/dlls
777 $(RMKDIR) $(DIST_DIR)/drivers
778 $(RMKDIR) $(DIST_DIR)/subsys
779 $(RMKDIR) $(DIST_DIR)/symbols
780
781 .PHONY: dist_clean dist_dirs
782
783
784 etags:
785 find . -name "*.[ch]" -print | etags --language=c -
786
787 # EOF