Temporarily remove last few wine build targets that need some more work.
[reactos.git] / reactos / Makefile
index b8ce9b6..8e7b22d 100644 (file)
@@ -28,10 +28,10 @@ HALS = halx86
 BUS = acpi isapnp pci
 
 # User mode libraries
-# advapi32 crtdll fmifs gdi32 kernel32 msafd msvcrt ntdll ole32
-# oleaut32 psapi rpcrt4 secur32 shell32 user32 version ws2_32
-DLLS = advapi32 crtdll fmifs gdi32 kernel32 msafd msvcrt ntdll \
-       secur32 user32 version ws2_32
+# 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
 
 #
@@ -49,8 +49,8 @@ LOADERS = dos
 DRIVERS_LIB = bzip2 zlib
 
 # Kernel mode device drivers
-# beep blue floppy ide keyboard mouse null parallel ramdrv serial vga vidport
-DEVICE_DRIVERS = blue floppy ide null vga vidport
+# 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
@@ -58,11 +58,11 @@ INPUT_DRIVERS = keyboard mouclass psaux
 
 # Kernel mode file system drivers
 # cdfs ext2 fs_rec ms np vfat
-FS_DRIVERS = cdfs fs_rec ms np vfat
+FS_DRIVERS = cdfs fs_rec ms np vfat mup ntfs
 
 # Kernel mode networking drivers
-# afd ndis tcpip tdi wshtcpip
-NET_DRIVERS = afd ndis tcpip tdi wshtcpip
+# afd ndis packet tcpip tdi wshtcpip
+NET_DRIVERS = afd ndis packet tcpip tdi wshtcpip
 
 # Kernel mode networking device drivers
 # ne2000
@@ -74,7 +74,11 @@ STORAGE_DRIVERS = atapi cdrom class2 disk scsiport
 
 # System applications
 # autochk lsass services shell winlogon
-SYS_APPS = autochk 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
@@ -82,28 +86,36 @@ SYS_APPS = autochk services shell winlogon
 # 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 vmtest winhello
+            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
 
 #
-# Wine userspace win32 subsystem plus other stuff. This will all be moved
-# to helper makefile down the road and there will be peace on earth.
+# Win32 Subsystem support (Based on WINE)
+# FIXME: Move to this its own Makefile
 #
 
-WINE_OTHER = unicode
+WINE_OTHER = unicode library
+
+WINE_TOOLS = bin2res wrc winebuild
 
-WINE_TOOLS = wrc winebuild
+WINE_DLLS = comcat crtdll comctl32 commdlg dsound dplayx imagehlp ole32 richedit \
+shlwapi shell32 shdocvw twain winspool
 
-WINE_DLLS = rpcrt4 mapi32 ole32 oleaut32 oledlg olepro32 olecli olesvr \
-            shell32 shlwapi comctl32 shfolder shdocvw commdlg \
-            ddraw dinput dplay dplayx \
-            psapi richedit serialui tapi32 urlmon winspool wintrust
-            #lzexpand (missing imports)
-            #dsound (missing winmm.dll)
+#wininet urlmon winspool \
+#rpcrt4 # needed to make rcprt4 implib 
 
+# mapi32 oleaut32 oledlg olepro32 olecli olesvr shfolder
+# winmm ddraw dinput dplay serialui tapi32 urlmon 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
 
-WINE_PROGS = clock cmdlgtst control notepad osversioncheck \
-             progman uninstaller view wcmd winefile winemine \
-             winver
 
 ifeq ($(ROS_BUILD_WINE),yes)
 WINE_MODULES = $(WINE_OTHER) $(WINE_TOOLS) $(WINE_DLLS) $(WINE_PROGS)
@@ -115,20 +127,22 @@ KERNEL_DRIVERS = $(DRIVERS_LIB) $(DEVICE_DRIVERS) $(INPUT_DRIVERS) $(FS_DRIVERS)
        $(NET_DRIVERS) $(NET_DEVICE_DRIVERS) $(STORAGE_DRIVERS)
 
 all: tools dk implib $(COMPONENTS) $(HALS) $(BUS) $(DLLS) $(SUBSYS) \
-     $(LOADERS) $(KERNEL_DRIVERS) $(SYS_APPS) $(TEST_APPS) \
-     $(WINE_MODULES)
+     $(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) $(TEST_APPS:%=%_implib) \
+        $(SYS_APPS:%=%_implib) $(SYS_SVC:%=%_implib) \
+        $(TEST_APPS:%=%_implib) $(UTIL_APPS:%=%_implib) \
         $(WINE_MODULES:%=%_implib)
 
-clean: dk_clean $(HALS:%=%_clean) \
+clean: tools dk_clean $(HALS:%=%_clean) \
        $(COMPONENTS:%=%_clean) $(BUS:%=%_clean) $(DLLS:%=%_clean) \
        $(LOADERS:%=%_clean) $(KERNEL_DRIVERS:%=%_clean) $(SUBSYS:%=%_clean) \
-       $(SYS_APPS:%=%_clean) $(TEST_APPS:%=%_clean) $(NET_APPS:%=%_clean) \
-       $(WINE_MODULES:%=%_clean) clean_after tools_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
@@ -137,17 +151,19 @@ install: tools install_dirs install_before \
          $(COMPONENTS:%=%_install) $(HALS:%=%_install) $(BUS:%=%_install) \
          $(DLLS:%=%_install) $(LOADERS:%=%_install) \
          $(KERNEL_DRIVERS:%=%_install) $(SUBSYS:%=%_install) \
-         $(SYS_APPS:%=%_install) $(TEST_APPS:%=%_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_DRIVERS:%=%_dist) $(SUBSYS:%=%_dist) \
-      $(SYS_APPS:%=%_dist) $(TEST_APPS:%=%_dist) $(NET_APPS:%=%_dist) \
-      $(WINE_MODULES:%=%_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
 
+
 #
 # System Applications
 #
@@ -169,7 +185,28 @@ $(SYS_APPS:%=%_install): %_install:
 .PHONY: $(SYS_APPS) $(SYS_APPS:%=%_implib) $(SYS_APPS:%=%_clean) $(SYS_APPS:%=%_install) $(SYS_APPS:%=%_dist)
 
 #
-# Applications
+# System Services
+#
+$(SYS_SVC): %:
+       make -C services/$*
+
+$(SYS_SVC:%=%_implib): %_implib:
+       make -C services/$* implib
+
+$(SYS_SVC:%=%_clean): %_clean:
+       make -C services/$* clean
+
+$(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)
+
+
+#
+# Test Applications
 #
 $(TEST_APPS): %:
        make -C apps/tests/$*
@@ -188,6 +225,28 @@ $(TEST_APPS:%=%_install): %_install:
 
 .PHONY: $(TEST_APPS) $(TEST_APPS:%=%_implib) $(TEST_APPS:%=%_clean) $(TEST_APPS:%=%_install) $(TEST_APPS:%=%_dist)
 
+
+#
+# Utility Applications
+#
+$(UTIL_APPS): %:
+       make -C apps/utils/$*
+
+$(UTIL_APPS:%=%_implib): %_implib:
+       make -C apps/utils/$* implib
+
+$(UTIL_APPS:%=%_clean): %_clean:
+       make -C apps/utils/$* clean
+
+$(UTIL_APPS:%=%_dist): %_dist:
+       make -C apps/utils/$* dist
+
+$(UTIL_APPS:%=%_install): %_install:
+       make -C apps/utils/$* install
+
+.PHONY: $(UTIL_APPS) $(UTIL_APPS:%=%_implib) $(UTIL_APPS:%=%_clean) $(UTIL_APPS:%=%_install) $(UTIL_APPS:%=%_dist)
+
+
 #
 # Other Wine Modules
 #
@@ -208,6 +267,7 @@ $(WINE_OTHER:%=%_install): %_install:
 
 .PHONY: $(WINE_OTHER) $(WINE_OTHER:%=%_implib) $(WINE_OTHER:%=%_clean) $(WINE_OTHER:%=%_install) $(WINE_OTHER:%=%_dist)
 
+
 #
 # Wine Tools
 #
@@ -687,7 +747,7 @@ 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/system.hiv
+       $(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
 
@@ -727,3 +787,4 @@ etags:
        find . -name "*.[ch]" -print | etags --language=c -
 
 # EOF
+