10 HOST = mingw32-windows
15 # Required to run the system
17 COMPONENTS = iface_native ntoskrnl
18 #DLLS = ntdll kernel32 crtdll user32 fmifs gdi32
19 DLLS = ntdll kernel32 crtdll fmifs gdi32
20 #DLLS = crtdll mingw32
24 # Select the server(s) you want to build
27 # SERVERS = posix linux os2
30 # Select the loader(s) you want to build
36 # Select the device drivers and filesystems you want
38 DEVICE_DRIVERS = blue ide keyboard mouse null parallel serial vidport
39 # DEVICE_DRIVERS = beep event floppy ide_test sound test test1
41 # FS_DRIVERS = minix ext2 template
42 KERNEL_SERVICES = $(DEVICE_DRIVERS) $(FS_DRIVERS)
44 APPS = args hello shell test cat bench
47 all: $(COMPONENTS) $(DLLS) $(SUBSYS) $(LOADERS) $(KERNEL_SERVICES) $(APPS)
50 clean: $(COMPONENTS:%=%_clean) $(DLLS:%=%_clean) $(LOADERS:%=%_clean) \
51 $(KERNEL_SERVICES:%=%_clean) $(APPS:%=%_clean)
60 $(APPS:%=%_clean): %_clean:
63 .PHONY: $(APPS) $(APPS:%=%_clean)
72 make -C iface/native clean
74 .PHONY: iface_native iface_native_clean
80 make -C services/dd/$*
82 $(DEVICE_DRIVERS:%=%_clean): %_clean:
83 make -C services/dd/$* clean
85 .PHONY: $(DEVICE_DRIVERS) $(DEVICE_DRIVERS:%=%_clean)
88 make -C services/fs/$*
90 $(FS_DRIVERS:%=%_clean): %_clean:
91 make -C services/fs/$* clean
93 .PHONY: $(FS_DRIVERS) $(FS_DRIVERS:%=%_clean)
102 $(LOADERS:%=%_clean): %_clean:
103 make -C loaders/$* clean
105 .PHONY: $(LOADERS) $(LOADERS:%=%_clean)
108 # Required system components
115 make -C ntoskrnl clean
117 .PHONY: ntoskrnl ntoskrnl_clean
126 $(DLLS:%=%_clean): %_clean:
129 .PHONY: $(DLLS) $(DLLS:%=%_clean)
137 $(SUBSYS:%=%_clean): %_clean:
140 .PHONY: $(SUBSYS) $(SUBSYS:%=%_clean)