PATH_TO_TOP = .
+#
+# Define to build WINE modules
+#
+ifeq ($(ROS_BUILD_WINE),)
+ROS_BUILD_WINE = no
+else
+ROS_BUILD_WINE = yes
+endif
+
include $(PATH_TO_TOP)/rules.mak
-#
# Required to run the system
-#
COMPONENTS = iface_native iface_additional hallib ntoskrnl
+
+
+# Hardware Abstraction Layers
+# halx86
HALS = halx86
-BUS = acpi isapnp
-DLLS = ntdll kernel32 advapi32 crtdll msvcrt fmifs gdi32 msafd \
- ole32 oleaut32 secur32 shell32 user32 ws2_32 version
+
+# Bus drivers
+# acpi isapnp pci
+BUS = acpi isapnp pci
+
+# User mode libraries
+# advapi32 crtdll fmifs gdi32 kernel32 libpcap packet msafd msvcrt ntdll ole32
+# oleaut32 psapi rpcrt4 secur32 shell32 user32 version ws2help ws2_32 wsock32 wshirda
+DLLS = advapi32 crtdll fmifs gdi32 kernel32 packet msafd msvcrt ntdll \
+ secur32 user32 version winmm ws2help ws2_32 wshirda
SUBSYS = smss win32k csrss
#
#SERVERS = posix linux os2
SERVERS = win32
-#
-# Select the loader(s) you want to build
-#
-#LOADERS = boot dos
+# Boot loaders
+# dos
LOADERS = dos
-#
-# Select the device drivers and filesystems you want
-#
-#DEVICE_DRIVERS = beep floppy mouse sound test parallel serial
-DEVICE_DRIVERS = vidport vga blue ide null floppy
+# Driver support libraries
+#bzip2 zlib
+DRIVERS_LIB = bzip2 zlib
-#INPUT_DRIVERS = keyboard
+# Kernel mode device drivers
+# beep blue floppy ide keyboard mouse null parallel ramdrv serenum serial vga vidport
+DEVICE_DRIVERS = beep blue floppy ide null serial vga vidport
+
+# Kernel mode input drivers
+# keyboard mouclass psaux sermouse
INPUT_DRIVERS = keyboard mouclass psaux
-#FS_DRIVERS = vfat minix ext2 template
-FS_DRIVERS = vfat ms np
+# Kernel mode file system drivers
+# cdfs ext2 fs_rec ms np vfat
+FS_DRIVERS = cdfs fs_rec ms np vfat mup ntfs
-#NET_DRIVERS = ndis tdi tcpip tditest wshtcpip afd
-NET_DRIVERS = ndis tdi tcpip tditest wshtcpip afd
+# Kernel mode networking drivers
+# afd ndis packet tcpip tdi wshtcpip
+NET_DRIVERS = afd ndis packet tcpip tdi wshtcpip
-#NET_DEVICE_DRIVERS = ne2000
+# Kernel mode networking device drivers
+# ne2000
NET_DEVICE_DRIVERS = ne2000
-#
-# storage drivers (don't change the order)
-#
-STORAGE_DRIVERS = class2 scsiport disk
+# Kernel mode storage drivers
+# atapi cdrom class2 disk scsiport
+STORAGE_DRIVERS = atapi cdrom class2 disk scsiport
+
+# System applications
+# autochk lsass services shell winlogon
+SYS_APPS = autochk services shell winlogon gstart usetup
+
+# System services
+# rpcss eventlog
+SYS_SVC = rpcss eventlog
+
+# Test applications
+# alive apc args atomtest bench consume count dump_shared_data
+# event file gditest hello isotest lpc mstest mutex nptest
+# pteb regtest sectest shm simple thread vmtest winhello
+TEST_APPS = alive apc args atomtest bench consume count dump_shared_data \
+ event file gditest hello isotest lpc mstest mutex nptest \
+ pteb regtest sectest shm simple thread tokentest vmtest winhello dibtest
+
+# Test applications
+# cabman cat net objdir partinfo pice ps stats
+UTIL_APPS = cat objdir partinfo stats
#
-# system applications (required for startup)
+# Win32 Subsystem support (Based on WINE)
+# FIXME: Move to this its own Makefile
#
-#SYS_APPS = lsass services shell winlogon
-SYS_APPS = services shell winlogon
-APPS = args hello test cat bench apc shm lpc thread event file gditest \
- pteb consume dump_shared_data vmtest regtest alive mstest nptest \
- objdir atomtest winhello
+WINE_OTHER = unicode library
-#NET_APPS = ping roshttpd telnet
-NET_APPS = ping roshttpd
+WINE_TOOLS = bin2res wrc winebuild
+WINE_DLLS = comcat crtdll comctl32 commdlg dsound dplayx imagehlp ole32 richedit \
+shlwapi shell32 shdocvw twain wininet urlmon winspool \
+rpcrt4 mapi32 # needed to make rcprt4 implib
-KERNEL_SERVICES = $(DEVICE_DRIVERS) $(INPUT_DRIVERS) $(FS_DRIVERS) \
+# oleaut32 oledlg olepro32 olecli olesvr shfolder
+# winmm ddraw dinput dplay serialui tapi32 wintrust
+# msinfo lzexpand (missing imports)
+
+WINE_PROGS = control expand osversioncheck regedit regsvr32 winver
+# uninstaller
+# (waiting on wrc fix for the rest of these)
+# clock cmdlgtst notepad progman wcmd
+# winefile winemine winetest uninstaller
+
+
+ifeq ($(ROS_BUILD_WINE),yes)
+WINE_MODULES = $(WINE_OTHER) $(WINE_TOOLS) $(WINE_DLLS) $(WINE_PROGS)
+else
+WINE_MODULES =
+endif
+
+KERNEL_DRIVERS = $(DRIVERS_LIB) $(DEVICE_DRIVERS) $(INPUT_DRIVERS) $(FS_DRIVERS) \
$(NET_DRIVERS) $(NET_DEVICE_DRIVERS) $(STORAGE_DRIVERS)
-all: tools buildno dk $(COMPONENTS) $(HALS) $(BUS) $(DLLS) $(SUBSYS) \
- $(LOADERS) $(KERNEL_SERVICES) $(SYS_APPS) $(APPS) $(NET_APPS)
+all: tools dk implib $(COMPONENTS) $(HALS) $(BUS) $(DLLS) $(SUBSYS) \
+ $(LOADERS) $(KERNEL_DRIVERS) $(SYS_APPS) $(SYS_SVC) $(TEST_APPS) \
+ $(UTIL_APPS) $(WINE_MODULES)
+
+implib: $(COMPONENTS:%=%_implib) $(HALS:%=%_implib) $(BUS:%=%_implib) \
+ $(DLLS:%=%_implib) $(LOADERS:%=%_implib) \
+ $(KERNEL_DRIVERS:%=%_implib) $(SUBSYS:%=%_implib) \
+ $(SYS_APPS:%=%_implib) $(SYS_SVC:%=%_implib) \
+ $(TEST_APPS:%=%_implib) $(UTIL_APPS:%=%_implib) \
+ $(WINE_MODULES:%=%_implib)
-clean: buildno_clean dk_clean $(HALS:%=%_clean) \
+clean: tools dk_clean $(HALS:%=%_clean) \
$(COMPONENTS:%=%_clean) $(BUS:%=%_clean) $(DLLS:%=%_clean) \
- $(LOADERS:%=%_clean) $(KERNEL_SERVICES:%=%_clean) $(SUBSYS:%=%_clean) \
- $(SYS_APPS:%=%_clean) $(APPS:%=%_clean) $(NET_APPS:%=%_clean) clean_after tools_clean
+ $(LOADERS:%=%_clean) $(KERNEL_DRIVERS:%=%_clean) $(SUBSYS:%=%_clean) \
+ $(SYS_APPS:%=%_clean) $(SYS_SVC:%=%_clean) $(TEST_APPS:%=%_clean) \
+ $(UTIL_APPS:%=%_clean) $(NET_APPS:%=%_clean) $(WINE_MODULES:%=%_clean) \
+ clean_after tools_clean
clean_after:
$(RM) $(PATH_TO_TOP)/include/roscfg.h
-install: tools buildno install_dirs install_before \
- $(COMPONENTS:%=%_install) $(HALS:%=%_install) $(BUS:%=%_install) \
+install: tools install_dirs install_before \
+ $(COMPONENTS:%=%_install) $(HALS:%=%_install) $(BUS:%=%_install) \
$(DLLS:%=%_install) $(LOADERS:%=%_install) \
- $(KERNEL_SERVICES:%=%_install) $(SUBSYS:%=%_install) \
- $(SYS_APPS:%=%_install) $(APPS:%=%_install)
+ $(KERNEL_DRIVERS:%=%_install) $(SUBSYS:%=%_install) \
+ $(SYS_APPS:%=%_install) $(SYS_SVC:%=%_install) \
+ $(TEST_APPS:%=%_install) $(UTIL_APPS:%=%_install) \
+ $(WINE_MODULES:%=%_install)
dist: $(TOOLS_PATH)/rcopy$(EXE_POSTFIX) dist_clean dist_dirs \
$(HALS:%=%_dist) $(COMPONENTS:%=%_dist) $(BUS:%=%_dist) $(DLLS:%=%_dist) \
- $(LOADERS:%=%_dist) $(KERNEL_SERVICES:%=%_dist) $(SUBSYS:%=%_dist) \
- $(SYS_APPS:%=%_dist) $(APPS:%=%_dist) $(NET_APPS:%=%_dist)
+ $(LOADERS:%=%_dist) $(KERNEL_DRIVERS:%=%_dist) $(SUBSYS:%=%_dist) \
+ $(SYS_APPS:%=%_dist) $(SYS_SVC:%=%_dist) $(TEST_APPS:%=%_dist) \
+ $(UTIL_APPS:%=%_dist) $(NET_APPS:%=%_dist) $(WINE_MODULES:%=%_dist)
+
+.PHONY: all implib clean clean_before install dist
-.PHONY: all clean clean_before install dist
#
-# Build number generator
+# System Applications
#
-buildno: include/reactos/version.h
- make -C apps/buildno
+$(SYS_APPS): %:
+ make -C subsys/system/$*
-buildno_clean:
- make -C apps/buildno clean
+$(SYS_APPS:%=%_implib): %_implib:
+ make -C subsys/system/$* implib
-buildno_dist:
+$(SYS_APPS:%=%_clean): %_clean:
+ make -C subsys/system/$* clean
-buildno_install:
+$(SYS_APPS:%=%_dist): %_dist:
+ make -C subsys/system/$* dist
-.PHONY: buildno buildno_clean buildno_dist buildno_install
+$(SYS_APPS:%=%_install): %_install:
+ make -C subsys/system/$* install
+
+.PHONY: $(SYS_APPS) $(SYS_APPS:%=%_implib) $(SYS_APPS:%=%_clean) $(SYS_APPS:%=%_install) $(SYS_APPS:%=%_dist)
#
-# System Applications
+# System Services
#
-$(SYS_APPS): %:
- make -C apps/system/$*
+$(SYS_SVC): %:
+ make -C services/$*
-$(SYS_APPS:%=%_clean): %_clean:
- make -C apps/system/$* clean
+$(SYS_SVC:%=%_implib): %_implib:
+ make -C services/$* implib
-$(SYS_APPS:%=%_dist): %_dist:
- make -C apps/system/$* dist
+$(SYS_SVC:%=%_clean): %_clean:
+ make -C services/$* clean
-$(SYS_APPS:%=%_install): %_install:
- make -C apps/system/$* install
+$(SYS_SVC:%=%_dist): %_dist:
+ make -C services/$* dist
+
+$(SYS_SVC:%=%_install): %_install:
+ make -C services/$* install
+
+.PHONY: $(SYS_SVC) $(SYS_SVC:%=%_implib) $(SYS_SVC:%=%_clean) $(SYS_SVC:%=%_install) $(SYS_SVC:%=%_dist)
-.PHONY: $(SYS_APPS) $(SYS_APPS:%=%_clean) $(SYS_APPS:%=%_install) $(SYS_APPS:%=%_dist)
#
-# Applications
+# Test Applications
#
-$(APPS): %:
- make -C apps/$*
+$(TEST_APPS): %:
+ make -C apps/tests/$*
-$(APPS:%=%_clean): %_clean:
- make -C apps/$* clean
+$(TEST_APPS:%=%_implib): %_implib:
+ make -C apps/tests/$* implib
-$(APPS:%=%_dist): %_dist:
- make -C apps/$* dist
+$(TEST_APPS:%=%_clean): %_clean:
+ make -C apps/tests/$* clean
-$(APPS:%=%_install): %_install:
- make -C apps/$* install
+$(TEST_APPS:%=%_dist): %_dist:
+ make -C apps/tests/$* dist
+
+$(TEST_APPS:%=%_install): %_install:
+ make -C apps/tests/$* install
+
+.PHONY: $(TEST_APPS) $(TEST_APPS:%=%_implib) $(TEST_APPS:%=%_clean) $(TEST_APPS:%=%_install) $(TEST_APPS:%=%_dist)
-.PHONY: $(APPS) $(APPS:%=%_clean) $(APPS:%=%_install) $(APPS:%=%_dist)
#
-# Network applications
+# Utility Applications
#
-$(NET_APPS): %:
- make -C apps/net/$*
+$(UTIL_APPS): %:
+ make -C apps/utils/$*
+
+$(UTIL_APPS:%=%_implib): %_implib:
+ make -C apps/utils/$* implib
+
+$(UTIL_APPS:%=%_clean): %_clean:
+ make -C apps/utils/$* clean
-$(NET_APPS:%=%_clean): %_clean:
- make -C apps/net/$* clean
+$(UTIL_APPS:%=%_dist): %_dist:
+ make -C apps/utils/$* dist
-$(NET_APPS:%=%_dist): %_dist:
- make -C apps/net/$* dist
+$(UTIL_APPS:%=%_install): %_install:
+ make -C apps/utils/$* install
-$(NET_APPS:%=%_install): %_install:
- make -C apps/net/$* install
+.PHONY: $(UTIL_APPS) $(UTIL_APPS:%=%_implib) $(UTIL_APPS:%=%_clean) $(UTIL_APPS:%=%_install) $(UTIL_APPS:%=%_dist)
-.PHONY: $(NET_APPS) $(NET_APPS:%=%_clean) $(NET_APPS:%=%_install) $(NET_APPS:%=%_dist)
+
+#
+# Other Wine Modules
+#
+$(WINE_OTHER): %:
+ make -f makefile.ros -C $(WINE_PATH)/$*
+
+$(WINE_OTHER:%=%_implib): %_implib:
+ make -f makefile.ros -C $(WINE_PATH)/$* implib
+
+$(WINE_OTHER:%=%_clean): %_clean:
+ make -f makefile.ros -C $(WINE_PATH)/$* clean
+
+$(WINE_OTHER:%=%_dist): %_dist:
+ make -f makefile.ros -C $(WINE_PATH)/$* dist
+
+$(WINE_OTHER:%=%_install): %_install:
+ make -f makefile.ros -C $(WINE_PATH)/$* install
+
+.PHONY: $(WINE_OTHER) $(WINE_OTHER:%=%_implib) $(WINE_OTHER:%=%_clean) $(WINE_OTHER:%=%_install) $(WINE_OTHER:%=%_dist)
+
+
+#
+# Wine Tools
+#
+$(WINE_TOOLS): %:
+ make -f makefile.ros -C $(WINE_PATH)/tools/$*
+
+$(WINE_TOOLS:%=%_implib): %_implib:
+ make -f makefile.ros -C $(WINE_PATH)/tools/$* implib
+
+$(WINE_TOOLS:%=%_clean): %_clean:
+ make -f makefile.ros -C $(WINE_PATH)/tools/$* clean
+
+$(WINE_TOOLS:%=%_dist): %_dist:
+ make -f makefile.ros -C $(WINE_PATH)/tools/$* dist
+
+$(WINE_TOOLS:%=%_install): %_install:
+ make -f makefile.ros -C $(WINE_PATH)/tools/$* install
+
+.PHONY: $(WINE_DLLS) $(WINE_DLLS:%=%_implib) $(WINE_DLLS:%=%_clean) $(WINE_DLLS:%=%_install) $(WINE_DLLS:%=%_dist)
+
+
+#
+# Wine DLLs
+#
+$(WINE_DLLS): %:
+ make -f makefile.ros -C $(WINE_PATH)/dlls/$*
+
+$(WINE_DLLS:%=%_implib): %_implib:
+ make -f makefile.ros -C $(WINE_PATH)/dlls/$* implib
+
+$(WINE_DLLS:%=%_clean): %_clean:
+ make -f makefile.ros -C $(WINE_PATH)/dlls/$* clean
+
+$(WINE_DLLS:%=%_dist): %_dist:
+ make -f makefile.ros -C $(WINE_PATH)/dlls/$* dist
+
+$(WINE_DLLS:%=%_install): %_install:
+ make -f makefile.ros -C $(WINE_PATH)/dlls/$* install
+
+.PHONY: $(WINE_DLLS) $(WINE_DLLS:%=%_implib) $(WINE_DLLS:%=%_clean) $(WINE_DLLS:%=%_install) $(WINE_DLLS:%=%_dist)
+
+
+#
+# Wine programs
+#
+$(WINE_PROGS): %:
+ make -f makefile.ros -C $(WINE_PATH)/programs/$*
+
+$(WINE_PROGS:%=%_implib): %_implib:
+ make -f makefile.ros -C $(WINE_PATH)/programs/$* implib
+
+$(WINE_PROGS:%=%_clean): %_clean:
+ make -f makefile.ros -C $(WINE_PATH)/programs/$* clean
+
+$(WINE_PROGS:%=%_dist): %_dist:
+ make -f makefile.ros -C $(WINE_PATH)/programs/$* dist
+
+$(WINE_PROGS:%=%_install): %_install:
+ make -f makefile.ros -C $(WINE_PATH)/programs/$* install
+
+.PHONY: $(WINE_PROGS) $(WINE_PROGS:%=%_implib) $(WINE_PROGS:%=%_clean) $(WINE_PROGS:%=%_install) $(WINE_PROGS:%=%_dist)
#
tools:
make -C tools
+tools_implib:
+
tools_clean:
make -C tools clean
tools_dist:
-.PHONY: tools tools_clean tools_install tools_dist
+.PHONY: tools tools_implib tools_clean tools_install tools_dist
#
$(RMKDIR) $(XDK_PATH_LIB)
$(RMKDIR) $(XDK_PATH_INC)
+dk_implib:
+
# WARNING! Be very sure that there are no important files
# in these directories before cleaning them!!!
dk_clean:
dk_dist:
-.PHONY: dk dk_clean dk_install dk_dist
+.PHONY: dk dk_implib dk_clean dk_install dk_dist
#
iface_native:
make -C iface/native
+iface_native_implib:
+
iface_native_clean:
make -C iface/native clean
iface_additional:
make -C iface/addsys
+iface_additional_implib:
+
iface_additional_clean:
make -C iface/addsys clean
iface_additional_dist:
-.PHONY: iface_native iface_native_clean iface_native_install \
+.PHONY: iface_native iface_native_implib iface_native_clean iface_native_install \
iface_native_dist \
- iface_additional iface_additional_clean iface_additional_install \
- iface_additional_dist
+ iface_additional iface_additional_implib iface_additional_clean \
+ iface_additional_install iface_additional_dist
#
# Bus driver rules
#
$(BUS): %:
- make -C services/bus/$*
+ make -C drivers/bus/$*
+
+$(BUS:%=%_implib): %_implib:
+ make -C drivers/bus/$* implib
$(BUS:%=%_clean): %_clean:
- make -C services/bus/$* clean
+ make -C drivers/bus/$* clean
$(BUS:%=%_install): %_install:
- make -C services/bus/$* install
+ make -C drivers/bus/$* install
$(BUS:%=%_dist): %_dist:
- make -C services/bus/$* dist
+ make -C drivers/bus/$* dist
-.PHONY: $(BUS) $(BUS:%=%_clean) \
+.PHONY: $(BUS) $(BUS:%=%_implib) $(BUS:%=%_clean) \
$(BUS:%=%_install) $(BUS:%=%_dist)
+#
+# Driver support libraries rules
+#
+$(DRIVERS_LIB): %:
+ make -C drivers/lib/$*
+
+$(DRIVERS_LIB:%=%_implib): %_implib:
+ make -C drivers/lib/$* implib
+
+$(DRIVERS_LIB:%=%_clean): %_clean:
+ make -C drivers/lib/$* clean
+
+$(DRIVERS_LIB:%=%_install): %_install:
+ make -C drivers/lib/$* install
+
+$(DRIVERS_LIB:%=%_dist): %_dist:
+ make -C drivers/lib/$* dist
+
+.PHONY: $(DRIVERS_LIB) $(DRIVERS_LIB:%=%_implib) $(DRIVERS_LIB:%=%_clean) \
+ $(DRIVERS_LIB:%=%_install) $(DRIVERS_LIB:%=%_dist)
+
#
# Device driver rules
#
$(DEVICE_DRIVERS): %:
- make -C services/dd/$*
+ make -C drivers/dd/$*
+
+$(DEVICE_DRIVERS:%=%_implib): %_implib:
+ make -C drivers/dd/$* implib
$(DEVICE_DRIVERS:%=%_clean): %_clean:
- make -C services/dd/$* clean
+ make -C drivers/dd/$* clean
$(DEVICE_DRIVERS:%=%_install): %_install:
- make -C services/dd/$* install
+ make -C drivers/dd/$* install
$(DEVICE_DRIVERS:%=%_dist): %_dist:
- make -C services/dd/$* dist
+ make -C drivers/dd/$* dist
-.PHONY: $(DEVICE_DRIVERS) $(DEVICE_DRIVERS:%=%_clean) \
+.PHONY: $(DEVICE_DRIVERS) $(DEVICE_DRIVERS:%=%_implib) $(DEVICE_DRIVERS:%=%_clean) \
$(DEVICE_DRIVERS:%=%_install) $(DEVICE_DRIVERS:%=%_dist)
#
# Input driver rules
#
$(INPUT_DRIVERS): %:
- make -C services/input/$*
+ make -C drivers/input/$*
+
+$(INPUT_DRIVERS:%=%_implib): %_implib:
+ make -C drivers/input/$* implib
$(INPUT_DRIVERS:%=%_clean): %_clean:
- make -C services/input/$* clean
+ make -C drivers/input/$* clean
$(INPUT_DRIVERS:%=%_install): %_install:
- make -C services/input/$* install
+ make -C drivers/input/$* install
$(INPUT_DRIVERS:%=%_dist): %_dist:
- make -C services/input/$* dist
+ make -C drivers/input/$* dist
-.PHONY: $(INPUT_DRIVERS) $(INPUT_DRIVERS:%=%_clean) \
+.PHONY: $(INPUT_DRIVERS) $(INPUT_DRIVERS:%=%_implib) $(INPUT_DRIVERS:%=%_clean)\
$(INPUT_DRIVERS:%=%_install) $(INPUT_DRIVERS:%=%_dist)
$(FS_DRIVERS): %:
- make -C services/fs/$*
+ make -C drivers/fs/$*
+
+$(FS_DRIVERS:%=%_implib): %_implib:
+ make -C drivers/fs/$* implib
$(FS_DRIVERS:%=%_clean): %_clean:
- make -C services/fs/$* clean
+ make -C drivers/fs/$* clean
$(FS_DRIVERS:%=%_install): %_install:
- make -C services/fs/$* install
+ make -C drivers/fs/$* install
$(FS_DRIVERS:%=%_dist): %_dist:
- make -C services/fs/$* dist
+ make -C drivers/fs/$* dist
-.PHONY: $(FS_DRIVERS) $(FS_DRIVERS:%=%_clean) \
+.PHONY: $(FS_DRIVERS) $(FS_DRIVERS:%=%_implib) $(FS_DRIVERS:%=%_clean) \
$(FS_DRIVERS:%=%_install) $(FS_DRIVERS:%=%_dist)
#
# Network driver rules
#
$(NET_DRIVERS): %:
- make -C services/net/$*
+ make -C drivers/net/$*
+
+$(NET_DRIVERS:%=%_implib): %_implib:
+ make -C drivers/net/$* implib
$(NET_DRIVERS:%=%_clean): %_clean:
- make -C services/net/$* clean
+ make -C drivers/net/$* clean
$(NET_DRIVERS:%=%_install): %_install:
- make -C services/net/$* install
+ make -C drivers/net/$* install
$(NET_DRIVERS:%=%_dist): %_dist:
- make -C services/net/$* dist
+ make -C drivers/net/$* dist
-.PHONY: $(NET_DRIVERS) $(NET_DRIVERS:%=%_clean) \
+.PHONY: $(NET_DRIVERS) $(NET_DRIVERS:%=%_implib) $(NET_DRIVERS:%=%_clean) \
$(NET_DRIVERS:%=%_install) $(NET_DRIVERS:%=%_dist)
$(NET_DEVICE_DRIVERS): %:
- make -C services/net/dd/$*
+ make -C drivers/net/dd/$*
+
+$(NET_DEVICE_DRIVERS:%=%_implib): %_implib:
+ make -C drivers/net/dd/$* implib
$(NET_DEVICE_DRIVERS:%=%_clean): %_clean:
- make -C services/net/dd/$* clean
+ make -C drivers/net/dd/$* clean
$(NET_DEVICE_DRIVERS:%=%_install): %_install:
- make -C services/net/dd/$* install
+ make -C drivers/net/dd/$* install
$(NET_DEVICE_DRIVERS:%=%_dist): %_dist:
- make -C services/net/dd/$* dist
+ make -C drivers/net/dd/$* dist
-.PHONY: $(NET_DEVICE_DRIVERS) $(NET_DEVICE_DRIVERS:%=%_clean) \
+.PHONY: $(NET_DEVICE_DRIVERS) $(NET_DEVICE_DRIVERS:%=%_clean) $(NET_DEVICE_DRIVERS:%=%_implib) \
$(NET_DEVICE_DRIVERS:%=%_install) $(NET_DEVICE_DRIVERS:%=%_dist)
#
# storage driver rules
#
$(STORAGE_DRIVERS): %:
- make -C services/storage/$*
+ make -C drivers/storage/$*
+
+$(STORAGE_DRIVERS:%=%_implib): %_implib:
+ make -C drivers/storage/$* implib
$(STORAGE_DRIVERS:%=%_clean): %_clean:
- make -C services/storage/$* clean
+ make -C drivers/storage/$* clean
$(STORAGE_DRIVERS:%=%_install): %_install:
- make -C services/storage/$* install
+ make -C drivers/storage/$* install
$(STORAGE_DRIVERS:%=%_dist): %_dist:
- make -C services/storage/$* dist
+ make -C drivers/storage/$* dist
.PHONY: $(STORAGE_DRIVERS) $(STORAGE_DRIVERS:%=%_clean) \
$(STORAGE_DRIVERS:%=%_install) $(STORAGE_DRIVERS:%=%_dist)
$(LOADERS): %:
make -C loaders/$*
+$(LOADERS:%=%_implib): %_implib:
+
$(LOADERS:%=%_clean): %_clean:
make -C loaders/$* clean
$(LOADERS:%=%_dist): %_dist:
make -C loaders/$* dist
-.PHONY: $(LOADERS) $(LOADERS:%=%_clean) $(LOADERS:%=%_install) \
+.PHONY: $(LOADERS) $(LOADERS:%=%_implib) $(LOADERS:%=%_clean) $(LOADERS:%=%_install) \
$(LOADERS:%=%_dist)
#
ntoskrnl:
make -C ntoskrnl
+ntoskrnl_implib:
+ make -C ntoskrnl implib
+
ntoskrnl_clean:
make -C ntoskrnl clean
ntoskrnl_dist:
make -C ntoskrnl dist
-.PHONY: ntoskrnl ntoskrnl_clean ntoskrnl_install ntoskrnl_dist
+.PHONY: ntoskrnl ntoskrnl_implib ntoskrnl_clean ntoskrnl_install ntoskrnl_dist
#
# Hardware Abstraction Layer import library
hallib:
make -C hal/hal
+hallib_implib:
+ make -C hal/hal implib
+
hallib_clean:
make -C hal/hal clean
hallib_dist:
make -C hal/hal dist
-.PHONY: hallib hallib_clean hallib_install hallib_dist
+.PHONY: hallib hallib_implib hallib_clean hallib_install hallib_dist
#
# Hardware Abstraction Layers
$(HALS): %:
make -C hal/$*
+$(HALS:%=%_implib): %_implib:
+ make -C hal/$* implib
+
$(HALS:%=%_clean): %_clean:
make -C hal/$* clean
$(HALS:%=%_dist): %_dist:
make -C hal/$* dist
-.PHONY: $(HALS) $(HALS:%=%_clean) $(HALS:%=%_install) $(HALS:%=%_dist)
+.PHONY: $(HALS) $(HALS:%=%_implib) $(HALS:%=%_clean) $(HALS:%=%_install) $(HALS:%=%_dist)
#
# Required DLLs
$(DLLS): %:
make -C lib/$*
+$(DLLS:%=%_implib): %_implib:
+ make -C lib/$* implib
+
$(DLLS:%=%_clean): %_clean:
make -C lib/$* clean
$(DLLS:%=%_dist): %_dist:
make -C lib/$* dist
-.PHONY: $(DLLS) $(DLLS:%=%_clean) $(DLLS:%=%_install) $(DLLS:%=%_dist)
+.PHONY: $(DLLS) $(DLLS:%=%_implib) $(DLLS:%=%_clean) $(DLLS:%=%_install) $(DLLS:%=%_dist)
#
-# Kernel Subsystems
+# Subsystem support modules
#
$(SUBSYS): %:
make -C subsys/$*
+$(SUBSYS:%=%_implib): %_implib:
+ make -C subsys/$* implib
+
$(SUBSYS:%=%_clean): %_clean:
make -C subsys/$* clean
$(SUBSYS:%=%_dist): %_dist:
make -C subsys/$* dist
-.PHONY: $(SUBSYS) $(SUBSYS:%=%_clean) $(SUBSYS:%=%_install) \
+.PHONY: $(SUBSYS) $(SUBSYS:%=%_implib) $(SUBSYS:%=%_clean) $(SUBSYS:%=%_install) \
$(SUBSYS:%=%_dist)
#
$(RMKDIR) $(INSTALL_DIR)/system32/drivers
install_before:
+ $(CP) bootc.lst $(INSTALL_DIR)/bootc.lst
$(CP) boot.bat $(INSTALL_DIR)/boot.bat
$(CP) aboot.bat $(INSTALL_DIR)/aboot.bat
+ $(CP) system.hiv $(INSTALL_DIR)/system32/config/system.hiv
$(CP) media/fonts/helb____.ttf $(INSTALL_DIR)/media/fonts/helb____.ttf
$(CP) media/fonts/timr____.ttf $(INSTALL_DIR)/media/fonts/timr____.ttf
find . -name "*.[ch]" -print | etags --language=c -
# EOF
+