Added some more libraries which now build to the WINE_DLLS section.
[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 winmm 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 serenum serial vga vidport
53 DEVICE_DRIVERS = beep blue floppy ide null serial 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 dibtest
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 wininet urlmon winspool \
106 rpcrt4 mapi32 oleaut32 oledlg olepro32 olecli olesvr shfolder
107
108 #rpcrt4 mapi32 # needed to make rcprt4 implib
109
110 # winmm ddraw dinput dplay serialui tapi32 wintrust
111 # msinfo lzexpand (missing imports)
112
113 WINE_PROGS = control expand osversioncheck regedit regsvr32 winver
114 # uninstaller
115 # (waiting on wrc fix for the rest of these)
116 # clock cmdlgtst notepad progman wcmd
117 # winefile winemine winetest uninstaller
118
119
120 ifeq ($(ROS_BUILD_WINE),yes)
121 WINE_MODULES = $(WINE_OTHER) $(WINE_TOOLS) $(WINE_DLLS) $(WINE_PROGS)
122 else
123 WINE_MODULES =
124 endif
125
126 KERNEL_DRIVERS = $(DRIVERS_LIB) $(DEVICE_DRIVERS) $(INPUT_DRIVERS) $(FS_DRIVERS) \
127 $(NET_DRIVERS) $(NET_DEVICE_DRIVERS) $(STORAGE_DRIVERS)
128
129 all: tools dk implib $(COMPONENTS) $(HALS) $(BUS) $(DLLS) $(SUBSYS) \
130 $(LOADERS) $(KERNEL_DRIVERS) $(SYS_APPS) $(SYS_SVC) $(TEST_APPS) \
131 $(UTIL_APPS) $(WINE_MODULES)
132
133 implib: $(COMPONENTS:%=%_implib) $(HALS:%=%_implib) $(BUS:%=%_implib) \
134 $(DLLS:%=%_implib) $(LOADERS:%=%_implib) \
135 $(KERNEL_DRIVERS:%=%_implib) $(SUBSYS:%=%_implib) \
136 $(SYS_APPS:%=%_implib) $(SYS_SVC:%=%_implib) \
137 $(TEST_APPS:%=%_implib) $(UTIL_APPS:%=%_implib) \
138 $(WINE_MODULES:%=%_implib)
139
140 clean: tools dk_clean $(HALS:%=%_clean) \
141 $(COMPONENTS:%=%_clean) $(BUS:%=%_clean) $(DLLS:%=%_clean) \
142 $(LOADERS:%=%_clean) $(KERNEL_DRIVERS:%=%_clean) $(SUBSYS:%=%_clean) \
143 $(SYS_APPS:%=%_clean) $(SYS_SVC:%=%_clean) $(TEST_APPS:%=%_clean) \
144 $(UTIL_APPS:%=%_clean) $(NET_APPS:%=%_clean) $(WINE_MODULES:%=%_clean) \
145 clean_after tools_clean
146
147 clean_after:
148 $(RM) $(PATH_TO_TOP)/include/roscfg.h
149
150 install: tools install_dirs install_before \
151 $(COMPONENTS:%=%_install) $(HALS:%=%_install) $(BUS:%=%_install) \
152 $(DLLS:%=%_install) $(LOADERS:%=%_install) \
153 $(KERNEL_DRIVERS:%=%_install) $(SUBSYS:%=%_install) \
154 $(SYS_APPS:%=%_install) $(SYS_SVC:%=%_install) \
155 $(TEST_APPS:%=%_install) $(UTIL_APPS:%=%_install) \
156 $(WINE_MODULES:%=%_install)
157
158 dist: $(TOOLS_PATH)/rcopy$(EXE_POSTFIX) dist_clean dist_dirs \
159 $(HALS:%=%_dist) $(COMPONENTS:%=%_dist) $(BUS:%=%_dist) $(DLLS:%=%_dist) \
160 $(LOADERS:%=%_dist) $(KERNEL_DRIVERS:%=%_dist) $(SUBSYS:%=%_dist) \
161 $(SYS_APPS:%=%_dist) $(SYS_SVC:%=%_dist) $(TEST_APPS:%=%_dist) \
162 $(UTIL_APPS:%=%_dist) $(NET_APPS:%=%_dist) $(WINE_MODULES:%=%_dist)
163
164 .PHONY: all implib clean clean_before install dist
165
166
167 #
168 # System Applications
169 #
170 $(SYS_APPS): %:
171 make -C subsys/system/$*
172
173 $(SYS_APPS:%=%_implib): %_implib:
174 make -C subsys/system/$* implib
175
176 $(SYS_APPS:%=%_clean): %_clean:
177 make -C subsys/system/$* clean
178
179 $(SYS_APPS:%=%_dist): %_dist:
180 make -C subsys/system/$* dist
181
182 $(SYS_APPS:%=%_install): %_install:
183 make -C subsys/system/$* install
184
185 .PHONY: $(SYS_APPS) $(SYS_APPS:%=%_implib) $(SYS_APPS:%=%_clean) $(SYS_APPS:%=%_install) $(SYS_APPS:%=%_dist)
186
187 #
188 # System Services
189 #
190 $(SYS_SVC): %:
191 make -C services/$*
192
193 $(SYS_SVC:%=%_implib): %_implib:
194 make -C services/$* implib
195
196 $(SYS_SVC:%=%_clean): %_clean:
197 make -C services/$* clean
198
199 $(SYS_SVC:%=%_dist): %_dist:
200 make -C services/$* dist
201
202 $(SYS_SVC:%=%_install): %_install:
203 make -C services/$* install
204
205 .PHONY: $(SYS_SVC) $(SYS_SVC:%=%_implib) $(SYS_SVC:%=%_clean) $(SYS_SVC:%=%_install) $(SYS_SVC:%=%_dist)
206
207
208 #
209 # Test Applications
210 #
211 $(TEST_APPS): %:
212 make -C apps/tests/$*
213
214 $(TEST_APPS:%=%_implib): %_implib:
215 make -C apps/tests/$* implib
216
217 $(TEST_APPS:%=%_clean): %_clean:
218 make -C apps/tests/$* clean
219
220 $(TEST_APPS:%=%_dist): %_dist:
221 make -C apps/tests/$* dist
222
223 $(TEST_APPS:%=%_install): %_install:
224 make -C apps/tests/$* install
225
226 .PHONY: $(TEST_APPS) $(TEST_APPS:%=%_implib) $(TEST_APPS:%=%_clean) $(TEST_APPS:%=%_install) $(TEST_APPS:%=%_dist)
227
228
229 #
230 # Utility Applications
231 #
232 $(UTIL_APPS): %:
233 make -C apps/utils/$*
234
235 $(UTIL_APPS:%=%_implib): %_implib:
236 make -C apps/utils/$* implib
237
238 $(UTIL_APPS:%=%_clean): %_clean:
239 make -C apps/utils/$* clean
240
241 $(UTIL_APPS:%=%_dist): %_dist:
242 make -C apps/utils/$* dist
243
244 $(UTIL_APPS:%=%_install): %_install:
245 make -C apps/utils/$* install
246
247 .PHONY: $(UTIL_APPS) $(UTIL_APPS:%=%_implib) $(UTIL_APPS:%=%_clean) $(UTIL_APPS:%=%_install) $(UTIL_APPS:%=%_dist)
248
249
250 #
251 # Other Wine Modules
252 #
253 $(WINE_OTHER): %:
254 make -f makefile.ros -C $(WINE_PATH)/$*
255
256 $(WINE_OTHER:%=%_implib): %_implib:
257 make -f makefile.ros -C $(WINE_PATH)/$* implib
258
259 $(WINE_OTHER:%=%_clean): %_clean:
260 make -f makefile.ros -C $(WINE_PATH)/$* clean
261
262 $(WINE_OTHER:%=%_dist): %_dist:
263 make -f makefile.ros -C $(WINE_PATH)/$* dist
264
265 $(WINE_OTHER:%=%_install): %_install:
266 make -f makefile.ros -C $(WINE_PATH)/$* install
267
268 .PHONY: $(WINE_OTHER) $(WINE_OTHER:%=%_implib) $(WINE_OTHER:%=%_clean) $(WINE_OTHER:%=%_install) $(WINE_OTHER:%=%_dist)
269
270
271 #
272 # Wine Tools
273 #
274 $(WINE_TOOLS): %:
275 make -f makefile.ros -C $(WINE_PATH)/tools/$*
276
277 $(WINE_TOOLS:%=%_implib): %_implib:
278 make -f makefile.ros -C $(WINE_PATH)/tools/$* implib
279
280 $(WINE_TOOLS:%=%_clean): %_clean:
281 make -f makefile.ros -C $(WINE_PATH)/tools/$* clean
282
283 $(WINE_TOOLS:%=%_dist): %_dist:
284 make -f makefile.ros -C $(WINE_PATH)/tools/$* dist
285
286 $(WINE_TOOLS:%=%_install): %_install:
287 make -f makefile.ros -C $(WINE_PATH)/tools/$* install
288
289 .PHONY: $(WINE_DLLS) $(WINE_DLLS:%=%_implib) $(WINE_DLLS:%=%_clean) $(WINE_DLLS:%=%_install) $(WINE_DLLS:%=%_dist)
290
291
292 #
293 # Wine DLLs
294 #
295 $(WINE_DLLS): %:
296 make -f makefile.ros -C $(WINE_PATH)/dlls/$*
297
298 $(WINE_DLLS:%=%_implib): %_implib:
299 make -f makefile.ros -C $(WINE_PATH)/dlls/$* implib
300
301 $(WINE_DLLS:%=%_clean): %_clean:
302 make -f makefile.ros -C $(WINE_PATH)/dlls/$* clean
303
304 $(WINE_DLLS:%=%_dist): %_dist:
305 make -f makefile.ros -C $(WINE_PATH)/dlls/$* dist
306
307 $(WINE_DLLS:%=%_install): %_install:
308 make -f makefile.ros -C $(WINE_PATH)/dlls/$* install
309
310 .PHONY: $(WINE_DLLS) $(WINE_DLLS:%=%_implib) $(WINE_DLLS:%=%_clean) $(WINE_DLLS:%=%_install) $(WINE_DLLS:%=%_dist)
311
312
313 #
314 # Wine programs
315 #
316 $(WINE_PROGS): %:
317 make -f makefile.ros -C $(WINE_PATH)/programs/$*
318
319 $(WINE_PROGS:%=%_implib): %_implib:
320 make -f makefile.ros -C $(WINE_PATH)/programs/$* implib
321
322 $(WINE_PROGS:%=%_clean): %_clean:
323 make -f makefile.ros -C $(WINE_PATH)/programs/$* clean
324
325 $(WINE_PROGS:%=%_dist): %_dist:
326 make -f makefile.ros -C $(WINE_PATH)/programs/$* dist
327
328 $(WINE_PROGS:%=%_install): %_install:
329 make -f makefile.ros -C $(WINE_PATH)/programs/$* install
330
331 .PHONY: $(WINE_PROGS) $(WINE_PROGS:%=%_implib) $(WINE_PROGS:%=%_clean) $(WINE_PROGS:%=%_install) $(WINE_PROGS:%=%_dist)
332
333
334 #
335 # Tools
336 #
337 tools:
338 make -C tools
339
340 tools_implib:
341
342 tools_clean:
343 make -C tools clean
344
345 tools_install:
346
347 tools_dist:
348
349 .PHONY: tools tools_implib tools_clean tools_install tools_dist
350
351
352 #
353 # Developer Kits
354 #
355 dk:
356 $(RMKDIR) $(DK_PATH)
357 $(RMKDIR) $(DDK_PATH)
358 $(RMKDIR) $(DDK_PATH_LIB)
359 $(RMKDIR) $(DDK_PATH_INC)
360 $(RMKDIR) $(SDK_PATH)
361 $(RMKDIR) $(SDK_PATH_LIB)
362 $(RMKDIR) $(SDK_PATH_INC)
363 $(RMKDIR) $(XDK_PATH)
364 $(RMKDIR) $(XDK_PATH_LIB)
365 $(RMKDIR) $(XDK_PATH_INC)
366
367 dk_implib:
368
369 # WARNING! Be very sure that there are no important files
370 # in these directories before cleaning them!!!
371 dk_clean:
372 $(RM) $(DDK_PATH_LIB)/*.a
373 # $(RM) $(DDK_PATH_INC)/*.h
374 $(RMDIR) $(DDK_PATH_LIB)
375 # $(RMDIR) $(DDK_PATH_INC)
376 $(RM) $(SDK_PATH_LIB)/*.a
377 # $(RM) $(SDK_PATH_INC)/*.h
378 $(RMDIR) $(SDK_PATH_LIB)
379 # $(RMDIR) $(SDK_PATH_INC)
380 $(RM) $(XDK_PATH_LIB)/*.a
381 # $(RM) $(XDK_PATH_INC)/*.h
382 $(RMDIR) $(XDK_PATH_LIB)
383 # $(RMDIR) $(XDK_PATH_INC)
384
385 dk_install:
386
387 dk_dist:
388
389 .PHONY: dk dk_implib dk_clean dk_install dk_dist
390
391
392 #
393 # Interfaces
394 #
395 iface_native:
396 make -C iface/native
397
398 iface_native_implib:
399
400 iface_native_clean:
401 make -C iface/native clean
402
403 iface_native_install:
404
405 iface_native_dist:
406
407 iface_additional:
408 make -C iface/addsys
409
410 iface_additional_implib:
411
412 iface_additional_clean:
413 make -C iface/addsys clean
414
415 iface_additional_install:
416
417 iface_additional_dist:
418
419 .PHONY: iface_native iface_native_implib iface_native_clean iface_native_install \
420 iface_native_dist \
421 iface_additional iface_additional_implib iface_additional_clean \
422 iface_additional_install iface_additional_dist
423
424 #
425 # Bus driver rules
426 #
427 $(BUS): %:
428 make -C drivers/bus/$*
429
430 $(BUS:%=%_implib): %_implib:
431 make -C drivers/bus/$* implib
432
433 $(BUS:%=%_clean): %_clean:
434 make -C drivers/bus/$* clean
435
436 $(BUS:%=%_install): %_install:
437 make -C drivers/bus/$* install
438
439 $(BUS:%=%_dist): %_dist:
440 make -C drivers/bus/$* dist
441
442 .PHONY: $(BUS) $(BUS:%=%_implib) $(BUS:%=%_clean) \
443 $(BUS:%=%_install) $(BUS:%=%_dist)
444
445 #
446 # Driver support libraries rules
447 #
448 $(DRIVERS_LIB): %:
449 make -C drivers/lib/$*
450
451 $(DRIVERS_LIB:%=%_implib): %_implib:
452 make -C drivers/lib/$* implib
453
454 $(DRIVERS_LIB:%=%_clean): %_clean:
455 make -C drivers/lib/$* clean
456
457 $(DRIVERS_LIB:%=%_install): %_install:
458 make -C drivers/lib/$* install
459
460 $(DRIVERS_LIB:%=%_dist): %_dist:
461 make -C drivers/lib/$* dist
462
463 .PHONY: $(DRIVERS_LIB) $(DRIVERS_LIB:%=%_implib) $(DRIVERS_LIB:%=%_clean) \
464 $(DRIVERS_LIB:%=%_install) $(DRIVERS_LIB:%=%_dist)
465
466 #
467 # Device driver rules
468 #
469 $(DEVICE_DRIVERS): %:
470 make -C drivers/dd/$*
471
472 $(DEVICE_DRIVERS:%=%_implib): %_implib:
473 make -C drivers/dd/$* implib
474
475 $(DEVICE_DRIVERS:%=%_clean): %_clean:
476 make -C drivers/dd/$* clean
477
478 $(DEVICE_DRIVERS:%=%_install): %_install:
479 make -C drivers/dd/$* install
480
481 $(DEVICE_DRIVERS:%=%_dist): %_dist:
482 make -C drivers/dd/$* dist
483
484 .PHONY: $(DEVICE_DRIVERS) $(DEVICE_DRIVERS:%=%_implib) $(DEVICE_DRIVERS:%=%_clean) \
485 $(DEVICE_DRIVERS:%=%_install) $(DEVICE_DRIVERS:%=%_dist)
486
487 #
488 # Input driver rules
489 #
490 $(INPUT_DRIVERS): %:
491 make -C drivers/input/$*
492
493 $(INPUT_DRIVERS:%=%_implib): %_implib:
494 make -C drivers/input/$* implib
495
496 $(INPUT_DRIVERS:%=%_clean): %_clean:
497 make -C drivers/input/$* clean
498
499 $(INPUT_DRIVERS:%=%_install): %_install:
500 make -C drivers/input/$* install
501
502 $(INPUT_DRIVERS:%=%_dist): %_dist:
503 make -C drivers/input/$* dist
504
505 .PHONY: $(INPUT_DRIVERS) $(INPUT_DRIVERS:%=%_implib) $(INPUT_DRIVERS:%=%_clean)\
506 $(INPUT_DRIVERS:%=%_install) $(INPUT_DRIVERS:%=%_dist)
507
508 $(FS_DRIVERS): %:
509 make -C drivers/fs/$*
510
511 $(FS_DRIVERS:%=%_implib): %_implib:
512 make -C drivers/fs/$* implib
513
514 $(FS_DRIVERS:%=%_clean): %_clean:
515 make -C drivers/fs/$* clean
516
517 $(FS_DRIVERS:%=%_install): %_install:
518 make -C drivers/fs/$* install
519
520 $(FS_DRIVERS:%=%_dist): %_dist:
521 make -C drivers/fs/$* dist
522
523 .PHONY: $(FS_DRIVERS) $(FS_DRIVERS:%=%_implib) $(FS_DRIVERS:%=%_clean) \
524 $(FS_DRIVERS:%=%_install) $(FS_DRIVERS:%=%_dist)
525
526 #
527 # Network driver rules
528 #
529 $(NET_DRIVERS): %:
530 make -C drivers/net/$*
531
532 $(NET_DRIVERS:%=%_implib): %_implib:
533 make -C drivers/net/$* implib
534
535 $(NET_DRIVERS:%=%_clean): %_clean:
536 make -C drivers/net/$* clean
537
538 $(NET_DRIVERS:%=%_install): %_install:
539 make -C drivers/net/$* install
540
541 $(NET_DRIVERS:%=%_dist): %_dist:
542 make -C drivers/net/$* dist
543
544 .PHONY: $(NET_DRIVERS) $(NET_DRIVERS:%=%_implib) $(NET_DRIVERS:%=%_clean) \
545 $(NET_DRIVERS:%=%_install) $(NET_DRIVERS:%=%_dist)
546
547 $(NET_DEVICE_DRIVERS): %:
548 make -C drivers/net/dd/$*
549
550 $(NET_DEVICE_DRIVERS:%=%_implib): %_implib:
551 make -C drivers/net/dd/$* implib
552
553 $(NET_DEVICE_DRIVERS:%=%_clean): %_clean:
554 make -C drivers/net/dd/$* clean
555
556 $(NET_DEVICE_DRIVERS:%=%_install): %_install:
557 make -C drivers/net/dd/$* install
558
559 $(NET_DEVICE_DRIVERS:%=%_dist): %_dist:
560 make -C drivers/net/dd/$* dist
561
562 .PHONY: $(NET_DEVICE_DRIVERS) $(NET_DEVICE_DRIVERS:%=%_clean) $(NET_DEVICE_DRIVERS:%=%_implib) \
563 $(NET_DEVICE_DRIVERS:%=%_install) $(NET_DEVICE_DRIVERS:%=%_dist)
564
565 #
566 # storage driver rules
567 #
568 $(STORAGE_DRIVERS): %:
569 make -C drivers/storage/$*
570
571 $(STORAGE_DRIVERS:%=%_implib): %_implib:
572 make -C drivers/storage/$* implib
573
574 $(STORAGE_DRIVERS:%=%_clean): %_clean:
575 make -C drivers/storage/$* clean
576
577 $(STORAGE_DRIVERS:%=%_install): %_install:
578 make -C drivers/storage/$* install
579
580 $(STORAGE_DRIVERS:%=%_dist): %_dist:
581 make -C drivers/storage/$* dist
582
583 .PHONY: $(STORAGE_DRIVERS) $(STORAGE_DRIVERS:%=%_clean) \
584 $(STORAGE_DRIVERS:%=%_install) $(STORAGE_DRIVERS:%=%_dist)
585
586 #
587 # Kernel loaders
588 #
589
590 $(LOADERS): %:
591 make -C loaders/$*
592
593 $(LOADERS:%=%_implib): %_implib:
594
595 $(LOADERS:%=%_clean): %_clean:
596 make -C loaders/$* clean
597
598 $(LOADERS:%=%_install): %_install:
599 make -C loaders/$* install
600
601 $(LOADERS:%=%_dist): %_dist:
602 make -C loaders/$* dist
603
604 .PHONY: $(LOADERS) $(LOADERS:%=%_implib) $(LOADERS:%=%_clean) $(LOADERS:%=%_install) \
605 $(LOADERS:%=%_dist)
606
607 #
608 # Required system components
609 #
610
611 ntoskrnl:
612 make -C ntoskrnl
613
614 ntoskrnl_implib:
615 make -C ntoskrnl implib
616
617 ntoskrnl_clean:
618 make -C ntoskrnl clean
619
620 ntoskrnl_install:
621 make -C ntoskrnl install
622
623 ntoskrnl_dist:
624 make -C ntoskrnl dist
625
626 .PHONY: ntoskrnl ntoskrnl_implib ntoskrnl_clean ntoskrnl_install ntoskrnl_dist
627
628 #
629 # Hardware Abstraction Layer import library
630 #
631
632 hallib:
633 make -C hal/hal
634
635 hallib_implib:
636 make -C hal/hal implib
637
638 hallib_clean:
639 make -C hal/hal clean
640
641 hallib_install:
642 make -C hal/hal install
643
644 hallib_dist:
645 make -C hal/hal dist
646
647 .PHONY: hallib hallib_implib hallib_clean hallib_install hallib_dist
648
649 #
650 # Hardware Abstraction Layers
651 #
652
653 $(HALS): %:
654 make -C hal/$*
655
656 $(HALS:%=%_implib): %_implib:
657 make -C hal/$* implib
658
659 $(HALS:%=%_clean): %_clean:
660 make -C hal/$* clean
661
662 $(HALS:%=%_install): %_install:
663 make -C hal/$* install
664
665 $(HALS:%=%_dist): %_dist:
666 make -C hal/$* dist
667
668 .PHONY: $(HALS) $(HALS:%=%_implib) $(HALS:%=%_clean) $(HALS:%=%_install) $(HALS:%=%_dist)
669
670 #
671 # Required DLLs
672 #
673
674 $(DLLS): %:
675 make -C lib/$*
676
677 $(DLLS:%=%_implib): %_implib:
678 make -C lib/$* implib
679
680 $(DLLS:%=%_clean): %_clean:
681 make -C lib/$* clean
682
683 $(DLLS:%=%_install): %_install:
684 make -C lib/$* install
685
686 $(DLLS:%=%_dist): %_dist:
687 make -C lib/$* dist
688
689 .PHONY: $(DLLS) $(DLLS:%=%_implib) $(DLLS:%=%_clean) $(DLLS:%=%_install) $(DLLS:%=%_dist)
690
691 #
692 # Subsystem support modules
693 #
694
695 $(SUBSYS): %:
696 make -C subsys/$*
697
698 $(SUBSYS:%=%_implib): %_implib:
699 make -C subsys/$* implib
700
701 $(SUBSYS:%=%_clean): %_clean:
702 make -C subsys/$* clean
703
704 $(SUBSYS:%=%_install): %_install:
705 make -C subsys/$* install
706
707 $(SUBSYS:%=%_dist): %_dist:
708 make -C subsys/$* dist
709
710 .PHONY: $(SUBSYS) $(SUBSYS:%=%_implib) $(SUBSYS:%=%_clean) $(SUBSYS:%=%_install) \
711 $(SUBSYS:%=%_dist)
712
713 #
714 # Create an installation
715 #
716
717 install_clean:
718 $(RM) $(INSTALL_DIR)/system32/drivers/*.*
719 $(RM) $(INSTALL_DIR)/system32/config/*.*
720 $(RM) $(INSTALL_DIR)/system32/*.*
721 $(RM) $(INSTALL_DIR)/symbols/*.*
722 $(RM) $(INSTALL_DIR)/media/fonts/*.*
723 $(RM) $(INSTALL_DIR)/media/*.*
724 $(RM) $(INSTALL_DIR)/bin/*.*
725 $(RM) $(INSTALL_DIR)/*.com
726 $(RM) $(INSTALL_DIR)/*.bat
727 $(RMDIR) $(INSTALL_DIR)/system32/drivers
728 $(RMDIR) $(INSTALL_DIR)/system32/config
729 $(RMDIR) $(INSTALL_DIR)/system32
730 $(RMDIR) $(INSTALL_DIR)/symbols
731 $(RMDIR) $(INSTALL_DIR)/media/fonts
732 $(RMDIR) $(INSTALL_DIR)/media
733 $(RMDIR) $(INSTALL_DIR)/bin
734 $(RMDIR) $(INSTALL_DIR)
735
736 install_dirs:
737 $(RMKDIR) $(INSTALL_DIR)
738 $(RMKDIR) $(INSTALL_DIR)/bin
739 $(RMKDIR) $(INSTALL_DIR)/media
740 $(RMKDIR) $(INSTALL_DIR)/media/fonts
741 $(RMKDIR) $(INSTALL_DIR)/symbols
742 $(RMKDIR) $(INSTALL_DIR)/system32
743 $(RMKDIR) $(INSTALL_DIR)/system32/config
744 $(RMKDIR) $(INSTALL_DIR)/system32/drivers
745
746 install_before:
747 $(CP) bootc.lst $(INSTALL_DIR)/bootc.lst
748 $(CP) boot.bat $(INSTALL_DIR)/boot.bat
749 $(CP) aboot.bat $(INSTALL_DIR)/aboot.bat
750 $(CP) system.hiv $(INSTALL_DIR)/system32/config/system.hiv
751 $(CP) media/fonts/helb____.ttf $(INSTALL_DIR)/media/fonts/helb____.ttf
752 $(CP) media/fonts/timr____.ttf $(INSTALL_DIR)/media/fonts/timr____.ttf
753
754 .PHONY: install_clean install_dirs install_before
755
756
757 #
758 # Make a distribution saveset
759 #
760
761 dist_clean:
762 $(RM) $(DIST_DIR)/symbols/*.sym
763 $(RM) $(DIST_DIR)/drivers/*.sys
764 $(RM) $(DIST_DIR)/subsys/*.exe
765 $(RM) $(DIST_DIR)/dlls/*.dll
766 $(RM) $(DIST_DIR)/apps/*.exe
767 $(RM) $(DIST_DIR)/*.exe
768 $(RMDIR) $(DIST_DIR)/symbols
769 $(RMDIR) $(DIST_DIR)/subsys
770 $(RMDIR) $(DIST_DIR)/drivers
771 $(RMDIR) $(DIST_DIR)/dlls
772 $(RMDIR) $(DIST_DIR)/apps
773 $(RMDIR) $(DIST_DIR)
774
775 dist_dirs:
776 $(RMKDIR) $(DIST_DIR)
777 $(RMKDIR) $(DIST_DIR)/apps
778 $(RMKDIR) $(DIST_DIR)/dlls
779 $(RMKDIR) $(DIST_DIR)/drivers
780 $(RMKDIR) $(DIST_DIR)/subsys
781 $(RMKDIR) $(DIST_DIR)/symbols
782
783 .PHONY: dist_clean dist_dirs
784
785
786 etags:
787 find . -name "*.[ch]" -print | etags --language=c -
788
789 # EOF
790