2004-02-07 18:53:59 +00:00
|
|
|
# $Id: Makefile,v 1.210 2004/02/07 18:53:58 mf Exp $
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
|
|
|
# Global makefile
|
|
|
|
#
|
|
|
|
|
2000-12-19 20:20:16 +00:00
|
|
|
PATH_TO_TOP = .
|
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
#
|
2003-01-05 19:15:10 +00:00
|
|
|
# Define to build ReactOS external targets
|
2001-11-03 16:48:07 +00:00
|
|
|
#
|
2003-01-05 19:15:10 +00:00
|
|
|
ifeq ($(ROS_BUILD_EXT),)
|
|
|
|
ROS_BUILD_EXT = no
|
2001-11-03 16:48:07 +00:00
|
|
|
else
|
2003-01-05 19:15:10 +00:00
|
|
|
ROS_BUILD_EXT = yes
|
2001-11-03 16:48:07 +00:00
|
|
|
endif
|
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
include $(PATH_TO_TOP)/rules.mak
|
2000-08-08 17:41:41 +00:00
|
|
|
|
|
|
|
# Required to run the system
|
2001-08-21 20:13:17 +00:00
|
|
|
COMPONENTS = iface_native iface_additional hallib ntoskrnl
|
2002-06-02 19:25:02 +00:00
|
|
|
|
|
|
|
# Hardware Abstraction Layers
|
|
|
|
# halx86
|
2001-08-21 20:13:17 +00:00
|
|
|
HALS = halx86
|
2002-06-02 19:25:02 +00:00
|
|
|
|
|
|
|
# Bus drivers
|
|
|
|
# acpi isapnp pci
|
2001-09-16 13:19:32 +00:00
|
|
|
BUS = acpi isapnp pci
|
2002-06-02 19:25:02 +00:00
|
|
|
|
2003-04-05 19:40:41 +00:00
|
|
|
# Filesystem libraries
|
|
|
|
# vfatlib
|
|
|
|
LIB_FSLIB = vfatlib
|
|
|
|
|
2003-05-27 19:02:26 +00:00
|
|
|
# Static libraries
|
2004-01-15 10:32:19 +00:00
|
|
|
LIB_STATIC = string rosrtl epsapi uuid libwine zlib
|
2003-05-27 19:02:26 +00:00
|
|
|
|
2003-11-01 13:28:54 +00:00
|
|
|
# Keyboard layout libraries
|
2003-12-15 20:03:13 +00:00
|
|
|
DLLS_KBD = kbdus kbdgr kbdfr kbduk
|
2003-11-01 13:28:54 +00:00
|
|
|
|
2004-02-05 19:17:11 +00:00
|
|
|
# Control Panels
|
|
|
|
DLLS_CPL = cpl
|
|
|
|
|
2003-05-27 19:02:26 +00:00
|
|
|
# User mode libraries
|
2004-01-12 23:47:51 +00:00
|
|
|
# advapi32 cards crtdll comdlg32 fmifs gdi32 imagehlp kernel32 libpcap packet msafd msvcrt ntdll
|
2003-09-12 17:51:48 +00:00
|
|
|
# epsapi psapi richedit rpcrt4 secur32 user32 version ws2help ws2_32 wsock32 wshirda mswsock
|
2004-01-12 23:47:51 +00:00
|
|
|
# imagehlp imm32
|
2004-01-15 10:32:19 +00:00
|
|
|
DLLS = advapi32 cabinet cards comctl32 crtdll comdlg32 d3d8thk fmifs freetype gdi32 \
|
2004-02-01 21:41:00 +00:00
|
|
|
imm32 iphlpapi kernel32 lzexpand mpr msafd msgina msimg32 msvcrt msvcrt20 mswsock \
|
2004-02-07 18:53:59 +00:00
|
|
|
ntdll ole32 oleaut32 oledlg packet psapi richedit rpcrt4 samlib secur32 shell32 shlwapi \
|
2004-02-01 21:41:00 +00:00
|
|
|
snmpapi syssetup twain unicode user32 userenv version wininet winmm winspool \
|
2004-02-05 19:17:11 +00:00
|
|
|
ws2help ws2_32 wsock32 wshirda $(DLLS_KBD) $(DLLS_CPL)
|
2003-12-28 10:40:56 +00:00
|
|
|
|
2002-12-28 16:06:11 +00:00
|
|
|
SUBSYS = smss win32k csrss ntvdm
|
2000-08-08 17:41:41 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Select the server(s) you want to build
|
|
|
|
#
|
2001-01-14 17:44:38 +00:00
|
|
|
#SERVERS = posix linux os2
|
2000-08-08 17:41:41 +00:00
|
|
|
SERVERS = win32
|
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
# Boot loaders
|
|
|
|
# dos
|
2000-08-08 17:41:41 +00:00
|
|
|
LOADERS = dos
|
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
# Driver support libraries
|
|
|
|
#bzip2 zlib
|
2003-03-24 01:28:44 +00:00
|
|
|
DRIVERS_LIB = bzip2
|
2002-06-02 19:25:02 +00:00
|
|
|
|
|
|
|
# Kernel mode device drivers
|
2002-12-12 17:04:01 +00:00
|
|
|
# Obsolete: ide
|
2004-01-19 15:56:53 +00:00
|
|
|
# beep blue floppy null parallel ramdrv serenum serial
|
|
|
|
DEVICE_DRIVERS = beep blue debugout floppy null serial bootvid
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
# Kernel mode input drivers
|
2003-07-23 20:03:28 +00:00
|
|
|
INPUT_DRIVERS = keyboard mouclass psaux sermouse
|
2000-10-18 09:39:32 +00:00
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
# Kernel mode file system drivers
|
|
|
|
# cdfs ext2 fs_rec ms np vfat
|
2002-06-25 22:25:17 +00:00
|
|
|
FS_DRIVERS = cdfs fs_rec ms np vfat mup ntfs
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
# Kernel mode networking drivers
|
2002-12-28 16:06:11 +00:00
|
|
|
# afd ndis npf tcpip tdi wshtcpip
|
2003-01-08 19:56:26 +00:00
|
|
|
NET_DRIVERS = afd ndis npf tcpip tdi wshtcpip
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
# Kernel mode networking device drivers
|
2003-09-06 02:19:39 +00:00
|
|
|
# ne2000 pcnet
|
|
|
|
NET_DEVICE_DRIVERS = ne2000 pcnet
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
# Kernel mode storage drivers
|
|
|
|
# atapi cdrom class2 disk scsiport
|
2003-08-27 21:30:37 +00:00
|
|
|
STORAGE_DRIVERS = atapi cdrom class2 disk scsiport diskdump
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
# System applications
|
2003-11-24 20:36:49 +00:00
|
|
|
# autochk cmd format services setup usetup welcome winlogon
|
2004-01-14 02:14:46 +00:00
|
|
|
SYS_APPS = autochk cmd explorer format services setup taskmgr userinit usetup welcome winlogon regedit
|
2000-09-17 09:41:15 +00:00
|
|
|
|
2002-06-25 21:14:26 +00:00
|
|
|
# System services
|
|
|
|
# rpcss eventlog
|
|
|
|
SYS_SVC = rpcss eventlog
|
|
|
|
|
2003-01-15 20:09:52 +00:00
|
|
|
APPS = tests testsets utils
|
|
|
|
|
2002-03-27 04:38:58 +00:00
|
|
|
|
2003-01-05 19:15:10 +00:00
|
|
|
# External (sub)systems for ReactOS
|
2003-01-07 18:20:34 +00:00
|
|
|
# rosapps wine posix os2 (requires c++) java (non-existant)
|
|
|
|
EXTERNALS = rosapps wine posix os2
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2003-01-05 19:15:10 +00:00
|
|
|
ifeq ($(ROS_BUILD_EXT),yes)
|
|
|
|
EXT_MODULES = $(EXTERNALS)
|
2001-11-03 16:48:07 +00:00
|
|
|
else
|
2003-01-05 19:15:10 +00:00
|
|
|
EXT_MODULES =
|
2001-11-03 16:48:07 +00:00
|
|
|
endif
|
2000-09-17 09:41:15 +00:00
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
KERNEL_DRIVERS = $(DRIVERS_LIB) $(DEVICE_DRIVERS) $(INPUT_DRIVERS) $(FS_DRIVERS) \
|
2004-01-10 14:39:21 +00:00
|
|
|
$(NET_DRIVERS) $(NET_DEVICE_DRIVERS) $(STORAGE_DRIVERS) VIDEO_DRIVERS
|
2000-09-05 22:57:43 +00:00
|
|
|
|
2003-07-11 18:13:57 +00:00
|
|
|
# Regression tests
|
|
|
|
REGTESTS = regtests
|
|
|
|
|
2003-05-27 19:02:26 +00:00
|
|
|
all: tools dk implib $(LIB_STATIC) $(COMPONENTS) $(HALS) $(BUS) $(LIB_FSLIB) $(DLLS) $(SUBSYS) \
|
2003-01-05 19:15:10 +00:00
|
|
|
$(LOADERS) $(KERNEL_DRIVERS) $(SYS_APPS) $(SYS_SVC) \
|
2003-07-11 18:13:57 +00:00
|
|
|
$(APPS) $(EXT_MODULES) $(REGTESTS)
|
2003-01-05 19:15:10 +00:00
|
|
|
|
|
|
|
#config: $(TOOLS:%=%_config)
|
|
|
|
|
2003-05-27 19:02:26 +00:00
|
|
|
depends: $(LIB_STATIC:%=%_depends) $(LIB_FSLIB:%=%_depends) $(DLLS:%=%_depends) $(SUBSYS:%=%_depends) $(SYS_SVC:%=%_depends) \
|
2003-01-05 19:15:10 +00:00
|
|
|
$(EXT_MODULES:%=%_depends) $(POSIX_LIBS:%=%_depends)
|
2001-11-03 16:48:07 +00:00
|
|
|
|
|
|
|
implib: $(COMPONENTS:%=%_implib) $(HALS:%=%_implib) $(BUS:%=%_implib) \
|
2003-12-02 20:13:30 +00:00
|
|
|
$(LIB_STATIC:%=%_implib) $(LIB_FSLIB:%=%_implib) $(DLLS:%=%_implib) $(LOADERS:%=%_implib) \
|
|
|
|
$(KERNEL_DRIVERS:%=%_implib) $(SUBSYS:%=%_implib) \
|
2004-01-03 23:12:19 +00:00
|
|
|
$(SYS_SVC:%=%_implib) $(EXT_MODULES:%=%_implib)
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2002-06-14 11:06:03 +00:00
|
|
|
clean: tools dk_clean $(HALS:%=%_clean) \
|
2003-05-27 19:02:26 +00:00
|
|
|
$(COMPONENTS:%=%_clean) $(BUS:%=%_clean) $(LIB_STATIC:%=%_clean) $(LIB_FSLIB:%=%_clean) $(DLLS:%=%_clean) \
|
2002-06-02 19:25:02 +00:00
|
|
|
$(LOADERS:%=%_clean) $(KERNEL_DRIVERS:%=%_clean) $(SUBSYS:%=%_clean) \
|
2003-01-15 20:09:52 +00:00
|
|
|
$(SYS_APPS:%=%_clean) $(SYS_SVC:%=%_clean) \
|
|
|
|
$(NET_APPS:%=%_clean) \
|
2003-07-11 18:13:57 +00:00
|
|
|
$(APPS:%=%_clean) $(EXT_MODULES:%=%_clean) $(REGTESTS:%=%_clean) \
|
2002-06-25 21:14:26 +00:00
|
|
|
clean_after tools_clean
|
2001-08-21 20:13:17 +00:00
|
|
|
|
|
|
|
clean_after:
|
|
|
|
$(RM) $(PATH_TO_TOP)/include/roscfg.h
|
|
|
|
|
2001-08-23 21:43:32 +00:00
|
|
|
install: tools install_dirs install_before \
|
|
|
|
$(COMPONENTS:%=%_install) $(HALS:%=%_install) $(BUS:%=%_install) \
|
2003-05-27 19:02:26 +00:00
|
|
|
$(LIB_STATIC:%=%_install) $(LIB_FSLIB:%=%_install) $(DLLS:%=%_install) $(LOADERS:%=%_install) \
|
2002-06-02 19:25:02 +00:00
|
|
|
$(KERNEL_DRIVERS:%=%_install) $(SUBSYS:%=%_install) \
|
2002-06-25 21:14:26 +00:00
|
|
|
$(SYS_APPS:%=%_install) $(SYS_SVC:%=%_install) \
|
2003-11-24 20:36:49 +00:00
|
|
|
$(APPS:%=%_install) $(EXT_MODULES:%=%_install) $(REGTESTS:%=%_install) \
|
|
|
|
registry
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2003-08-29 18:59:29 +00:00
|
|
|
FREELDR_DIR = ../freeldr
|
|
|
|
|
|
|
|
freeldr:
|
|
|
|
$(MAKE) -C $(FREELDR_DIR)
|
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
bootcd_directory_layout:
|
2003-04-05 09:37:45 +00:00
|
|
|
$(RMKDIR) $(BOOTCD_DIR)
|
|
|
|
$(RMKDIR) $(BOOTCD_DIR)/bootdisk
|
2003-05-28 19:53:53 +00:00
|
|
|
$(RMKDIR) $(BOOTCD_DIR)/loader
|
2003-04-05 09:37:45 +00:00
|
|
|
$(RMKDIR) $(BOOTCD_DIR)/reactos
|
|
|
|
$(RMKDIR) $(BOOTCD_DIR)/reactos/system32
|
2003-08-29 18:59:29 +00:00
|
|
|
$(CP) ${FREELDR_DIR}/bootsect/isoboot.bin ${BOOTCD_DIR}/../isoboot.bin
|
|
|
|
$(CP) ${FREELDR_DIR}/bootsect/dosmbr.bin ${BOOTCD_DIR}/loader/dosmbr.bin
|
|
|
|
$(CP) ${FREELDR_DIR}/bootsect/ext2.bin ${BOOTCD_DIR}/loader/ext2.bin
|
|
|
|
$(CP) ${FREELDR_DIR}/bootsect/fat.bin ${BOOTCD_DIR}/loader/fat.bin
|
|
|
|
$(CP) ${FREELDR_DIR}/bootsect/fat32.bin ${BOOTCD_DIR}/loader/fat32.bin
|
|
|
|
$(CP) ${FREELDR_DIR}/bootsect/isoboot.bin ${BOOTCD_DIR}/loader/isoboot.bin
|
|
|
|
$(CP) ${FREELDR_DIR}/freeldr/obj/i386/freeldr.sys ${BOOTCD_DIR}/loader/freeldr.sys
|
|
|
|
$(CP) ${FREELDR_DIR}/freeldr/obj/i386/setupldr.sys ${BOOTCD_DIR}/loader/setupldr.sys
|
2003-04-05 09:37:45 +00:00
|
|
|
|
|
|
|
bootcd_bootstrap_files: $(COMPONENTS:%=%_bootcd) $(HALS:%=%_bootcd) $(BUS:%=%_bootcd) \
|
2003-05-27 19:02:26 +00:00
|
|
|
$(LIB_STATIC:%=%_bootcd) $(LIB_FSLIB:%=%_bootcd) $(DLLS:%=%_bootcd) $(KERNEL_DRIVERS:%=%_bootcd) \
|
2003-04-05 19:40:41 +00:00
|
|
|
$(SUBSYS:%=%_bootcd) $(SYS_APPS:%=%_bootcd)
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2003-08-24 10:36:07 +00:00
|
|
|
bootcd_install_before:
|
|
|
|
$(RLINE) bootdata/autorun.inf $(BOOTCD_DIR)/autorun.inf
|
|
|
|
$(RLINE) bootdata/readme.txt $(BOOTCD_DIR)/readme.txt
|
|
|
|
$(RLINE) bootdata/hivecls.inf $(BOOTCD_DIR)/reactos/hivecls.inf
|
|
|
|
$(RLINE) bootdata/hivedef.inf $(BOOTCD_DIR)/reactos/hivedef.inf
|
|
|
|
$(RLINE) bootdata/hivesft.inf $(BOOTCD_DIR)/reactos/hivesft.inf
|
|
|
|
$(RLINE) bootdata/hivesys.inf $(BOOTCD_DIR)/reactos/hivesys.inf
|
|
|
|
$(RLINE) bootdata/txtsetup.sif $(BOOTCD_DIR)/reactos/txtsetup.sif
|
|
|
|
$(CP) bootdata/icon.ico $(BOOTCD_DIR)/icon.ico
|
|
|
|
$(CP) media/nls/c_1252.nls $(BOOTCD_DIR)/reactos/c_1252.nls
|
|
|
|
$(CP) media/nls/c_437.nls $(BOOTCD_DIR)/reactos/c_437.nls
|
|
|
|
$(CP) media/nls/l_intl.nls $(BOOTCD_DIR)/reactos/l_intl.nls
|
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
bootcd_basic: bootcd_directory_layout bootcd_bootstrap_files bootcd_install_before
|
2003-10-06 19:22:42 +00:00
|
|
|
|
|
|
|
bootcd_makecd:
|
2003-08-24 10:36:07 +00:00
|
|
|
$(CABMAN) /C bootdata/packages/reactos.dff /L $(BOOTCD_DIR)/reactos /I
|
|
|
|
$(CABMAN) /C bootdata/packages/reactos.dff /RC $(BOOTCD_DIR)/reactos/reactos.inf /L $(BOOTCD_DIR)/reactos /N
|
|
|
|
- $(RM) $(BOOTCD_DIR)/reactos/reactos.inf
|
2003-08-29 18:59:29 +00:00
|
|
|
$(TOOLS_PATH)/cdmake/cdmake -v -m -b $(BOOTCD_DIR)/../isoboot.bin $(BOOTCD_DIR) REACTOS ReactOS.iso
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2003-10-06 19:22:42 +00:00
|
|
|
ubootcd_unattend:
|
|
|
|
$(CP) bootdata/unattend.inf $(BOOTCD_DIR)/reactos/unattend.inf
|
|
|
|
|
|
|
|
bootcd: bootcd_basic bootcd_makecd
|
|
|
|
|
|
|
|
ubootcd: bootcd_basic ubootcd_unattend bootcd_makecd
|
|
|
|
|
2003-10-07 07:47:21 +00:00
|
|
|
registry: tools
|
|
|
|
$(TOOLS_PATH)/mkhive/mkhive$(EXE_POSTFIX) bootdata $(INSTALL_DIR)/system32/config
|
|
|
|
|
2003-11-24 20:36:49 +00:00
|
|
|
.PHONY: all depends implib clean clean_before install freeldr bootcd_directory_layout \
|
2003-10-06 19:22:42 +00:00
|
|
|
bootcd_bootstrap_files bootcd_install_before bootcd_basic bootcd_makecd ubootcd_unattend bootcd
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2002-06-07 23:00:20 +00:00
|
|
|
|
2000-12-05 02:40:51 +00:00
|
|
|
#
|
|
|
|
# System Applications
|
|
|
|
#
|
|
|
|
$(SYS_APPS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C subsys/system/$*
|
2000-12-05 02:40:51 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(SYS_APPS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C subsys/system/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2000-12-05 02:40:51 +00:00
|
|
|
$(SYS_APPS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C subsys/system/$* clean
|
2000-12-05 02:40:51 +00:00
|
|
|
|
|
|
|
$(SYS_APPS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C subsys/system/$* install
|
2000-12-05 02:40:51 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(SYS_APPS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C subsys/system/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: $(SYS_APPS) $(SYS_APPS:%=%_implib) $(SYS_APPS:%=%_clean) $(SYS_APPS:%=%_install) $(SYS_APPS:%=%_bootcd)
|
2000-12-05 02:40:51 +00:00
|
|
|
|
2002-06-25 21:14:26 +00:00
|
|
|
#
|
|
|
|
# System Services
|
|
|
|
#
|
|
|
|
$(SYS_SVC): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C services/$*
|
2002-06-25 21:14:26 +00:00
|
|
|
|
2003-01-05 19:15:10 +00:00
|
|
|
$(SYS_SVC:%=%_depends): %_depends:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C services/$* depends
|
2003-01-05 19:15:10 +00:00
|
|
|
|
2002-06-25 21:14:26 +00:00
|
|
|
$(SYS_SVC:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C services/$* implib
|
2002-06-25 21:14:26 +00:00
|
|
|
|
|
|
|
$(SYS_SVC:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C services/$* clean
|
2002-06-25 21:14:26 +00:00
|
|
|
|
|
|
|
$(SYS_SVC:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C services/$* install
|
2002-06-25 21:14:26 +00:00
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: $(SYS_SVC) $(SYS_SVC:%=%_depends) $(SYS_SVC:%=%_implib) $(SYS_SVC:%=%_clean) $(SYS_SVC:%=%_install)
|
2002-06-25 21:14:26 +00:00
|
|
|
|
2002-06-07 23:00:20 +00:00
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
2003-01-15 20:09:52 +00:00
|
|
|
# Applications
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
2002-06-07 23:00:20 +00:00
|
|
|
#
|
2003-01-15 20:09:52 +00:00
|
|
|
# Extra (optional system) Applications
|
2002-06-07 23:00:20 +00:00
|
|
|
#
|
2003-01-15 20:09:52 +00:00
|
|
|
$(APPS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C apps/$*
|
2002-06-07 23:00:20 +00:00
|
|
|
|
2004-01-10 14:39:21 +00:00
|
|
|
# Not needed
|
|
|
|
# $(APPS:%=%_implib): %_implib:
|
|
|
|
# $(MAKE) -C apps/$* implib
|
2002-06-07 23:00:20 +00:00
|
|
|
|
2003-01-15 20:09:52 +00:00
|
|
|
$(APPS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C apps/$* clean
|
2002-06-07 23:00:20 +00:00
|
|
|
|
2003-01-15 20:09:52 +00:00
|
|
|
$(APPS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C apps/$* install
|
2002-06-07 23:00:20 +00:00
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: $(APPS) $(APPS:%=%_implib) $(APPS:%=%_clean) $(APPS:%=%_install)
|
2002-06-07 23:00:20 +00:00
|
|
|
|
|
|
|
|
2003-01-05 19:15:10 +00:00
|
|
|
#
|
|
|
|
# External ports and subsystem personalities
|
|
|
|
#
|
|
|
|
$(EXTERNALS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C $(ROOT_PATH)/$*
|
2003-01-05 19:15:10 +00:00
|
|
|
|
|
|
|
$(EXTERNALS:%=%_depends): %_depends:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C $(ROOT_PATH)/$* depends
|
2003-01-05 19:15:10 +00:00
|
|
|
|
|
|
|
$(EXTERNALS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C $(ROOT_PATH)/$* implib
|
2003-01-05 19:15:10 +00:00
|
|
|
|
|
|
|
$(EXTERNALS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C $(ROOT_PATH)/$* clean
|
2003-01-05 19:15:10 +00:00
|
|
|
|
|
|
|
$(EXTERNALS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C $(ROOT_PATH)/$* install
|
2003-01-05 19:15:10 +00:00
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: $(EXTERNALS) $(EXTERNALS:%=%_depends) $(EXTERNALS:%=%_implib) $(EXTERNALS:%=%_clean) $(EXTERNALS:%=%_install)
|
2003-01-05 19:15:10 +00:00
|
|
|
|
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
#
|
|
|
|
# Tools
|
|
|
|
#
|
|
|
|
tools:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C tools
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
tools_implib:
|
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
tools_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C tools clean
|
2001-08-21 20:13:17 +00:00
|
|
|
|
|
|
|
tools_install:
|
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: tools tools_implib tools_clean tools_install
|
2001-08-21 20:13:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Developer Kits
|
|
|
|
#
|
|
|
|
dk:
|
|
|
|
$(RMKDIR) $(DK_PATH)
|
|
|
|
$(RMKDIR) $(DDK_PATH)
|
|
|
|
$(RMKDIR) $(DDK_PATH_LIB)
|
|
|
|
$(RMKDIR) $(DDK_PATH_INC)
|
|
|
|
$(RMKDIR) $(SDK_PATH)
|
|
|
|
$(RMKDIR) $(SDK_PATH_LIB)
|
|
|
|
$(RMKDIR) $(SDK_PATH_INC)
|
|
|
|
$(RMKDIR) $(XDK_PATH)
|
|
|
|
$(RMKDIR) $(XDK_PATH_LIB)
|
|
|
|
$(RMKDIR) $(XDK_PATH_INC)
|
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
dk_implib:
|
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
# WARNING! Be very sure that there are no important files
|
|
|
|
# in these directories before cleaning them!!!
|
|
|
|
dk_clean:
|
|
|
|
$(RM) $(DDK_PATH_LIB)/*.a
|
|
|
|
# $(RM) $(DDK_PATH_INC)/*.h
|
|
|
|
$(RMDIR) $(DDK_PATH_LIB)
|
|
|
|
# $(RMDIR) $(DDK_PATH_INC)
|
|
|
|
$(RM) $(SDK_PATH_LIB)/*.a
|
|
|
|
# $(RM) $(SDK_PATH_INC)/*.h
|
|
|
|
$(RMDIR) $(SDK_PATH_LIB)
|
|
|
|
# $(RMDIR) $(SDK_PATH_INC)
|
|
|
|
$(RM) $(XDK_PATH_LIB)/*.a
|
|
|
|
# $(RM) $(XDK_PATH_INC)/*.h
|
|
|
|
$(RMDIR) $(XDK_PATH_LIB)
|
|
|
|
# $(RMDIR) $(XDK_PATH_INC)
|
|
|
|
|
|
|
|
dk_install:
|
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: dk dk_implib dk_clean dk_install
|
2001-08-21 20:13:17 +00:00
|
|
|
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
|
|
|
# Interfaces
|
|
|
|
#
|
|
|
|
iface_native:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C iface/native
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
iface_native_implib:
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
iface_native_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C iface/native clean
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2000-08-11 12:46:47 +00:00
|
|
|
iface_native_install:
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
iface_native_bootcd:
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
iface_additional:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C iface/addsys
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
iface_additional_implib:
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
iface_additional_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C iface/addsys clean
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2000-08-11 12:46:47 +00:00
|
|
|
iface_additional_install:
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
iface_additional_bootcd:
|
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
.PHONY: iface_native iface_native_implib iface_native_clean iface_native_install \
|
2003-11-24 14:41:29 +00:00
|
|
|
iface_native_bootcd \
|
2001-11-03 16:48:07 +00:00
|
|
|
iface_additional iface_additional_implib iface_additional_clean \
|
2003-11-24 14:41:29 +00:00
|
|
|
iface_additional_install iface_additional_bootcd
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-05-01 23:08:21 +00:00
|
|
|
#
|
|
|
|
# Bus driver rules
|
|
|
|
#
|
|
|
|
$(BUS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/bus/$*
|
2001-05-01 23:08:21 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(BUS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/bus/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2001-05-01 23:08:21 +00:00
|
|
|
$(BUS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/bus/$* clean
|
2001-05-01 23:08:21 +00:00
|
|
|
|
|
|
|
$(BUS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/bus/$* install
|
2001-05-01 23:08:21 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(BUS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C drivers/bus/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
.PHONY: $(BUS) $(BUS:%=%_implib) $(BUS:%=%_clean) \
|
2003-11-24 14:41:29 +00:00
|
|
|
$(BUS:%=%_install) $(BUS:%=%_bootcd)
|
|
|
|
|
2001-05-01 23:08:21 +00:00
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
#
|
|
|
|
# Driver support libraries rules
|
|
|
|
#
|
|
|
|
$(DRIVERS_LIB): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/lib/$*
|
2002-06-02 19:25:02 +00:00
|
|
|
|
|
|
|
$(DRIVERS_LIB:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/lib/$* implib
|
2002-06-02 19:25:02 +00:00
|
|
|
|
|
|
|
$(DRIVERS_LIB:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/lib/$* clean
|
2002-06-02 19:25:02 +00:00
|
|
|
|
|
|
|
$(DRIVERS_LIB:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/lib/$* install
|
2002-06-02 19:25:02 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(DRIVERS_LIB:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C drivers/lib/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
.PHONY: $(DRIVERS_LIB) $(DRIVERS_LIB:%=%_implib) $(DRIVERS_LIB:%=%_clean) \
|
2003-11-24 14:41:29 +00:00
|
|
|
$(DRIVERS_LIB:%=%_install) $(DRIVERS_LIB:%=%_bootcd)
|
|
|
|
|
2002-06-02 19:25:02 +00:00
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
|
|
|
# Device driver rules
|
|
|
|
#
|
|
|
|
$(DEVICE_DRIVERS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/dd/$*
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(DEVICE_DRIVERS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/dd/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
$(DEVICE_DRIVERS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/dd/$* clean
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2000-08-11 12:46:47 +00:00
|
|
|
$(DEVICE_DRIVERS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/dd/$* install
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(DEVICE_DRIVERS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C drivers/dd/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
.PHONY: $(DEVICE_DRIVERS) $(DEVICE_DRIVERS:%=%_implib) $(DEVICE_DRIVERS:%=%_clean) \
|
2003-11-24 14:41:29 +00:00
|
|
|
$(DEVICE_DRIVERS:%=%_install) $(DEVICE_DRIVERS:%=%_bootcd)
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2004-01-10 14:39:21 +00:00
|
|
|
#
|
|
|
|
# Video device driver rules
|
|
|
|
#
|
|
|
|
VIDEO_DRIVERS:
|
|
|
|
$(MAKE) -C drivers/video
|
|
|
|
|
|
|
|
VIDEO_DRIVERS_implib:
|
|
|
|
$(MAKE) -C drivers/video implib
|
|
|
|
|
|
|
|
VIDEO_DRIVERS_clean:
|
|
|
|
$(MAKE) -C drivers/video clean
|
|
|
|
|
|
|
|
VIDEO_DRIVERS_install:
|
|
|
|
$(MAKE) -C drivers/video install
|
|
|
|
|
|
|
|
VIDEO_DRIVERS_bootcd:
|
|
|
|
$(MAKE) -C drivers/video bootcd
|
|
|
|
|
|
|
|
.PHONY: VIDEO_DRIVERS VIDEO_DRIVERS_implib VIDEO_DRIVERS_clean \
|
|
|
|
VIDEO_DRIVERS_install VIDEO_DRIVERS_bootcd
|
|
|
|
|
|
|
|
|
2000-10-18 09:39:32 +00:00
|
|
|
#
|
|
|
|
# Input driver rules
|
|
|
|
#
|
|
|
|
$(INPUT_DRIVERS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/input/$*
|
2000-10-18 09:39:32 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(INPUT_DRIVERS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/input/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2000-10-18 09:39:32 +00:00
|
|
|
$(INPUT_DRIVERS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/input/$* clean
|
2000-10-18 09:39:32 +00:00
|
|
|
|
|
|
|
$(INPUT_DRIVERS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/input/$* install
|
2000-10-18 09:39:32 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(INPUT_DRIVERS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C drivers/input/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
.PHONY: $(INPUT_DRIVERS) $(INPUT_DRIVERS:%=%_implib) $(INPUT_DRIVERS:%=%_clean)\
|
2003-11-24 14:41:29 +00:00
|
|
|
$(INPUT_DRIVERS:%=%_install) $(INPUT_DRIVERS:%=%_bootcd)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Filesystem driver rules
|
|
|
|
#
|
2000-08-08 17:41:41 +00:00
|
|
|
$(FS_DRIVERS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/fs/$*
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(FS_DRIVERS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/fs/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
$(FS_DRIVERS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/fs/$* clean
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2000-08-11 12:46:47 +00:00
|
|
|
$(FS_DRIVERS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/fs/$* install
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(FS_DRIVERS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C drivers/fs/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
.PHONY: $(FS_DRIVERS) $(FS_DRIVERS:%=%_implib) $(FS_DRIVERS:%=%_clean) \
|
2003-11-24 14:41:29 +00:00
|
|
|
$(FS_DRIVERS:%=%_install) $(FS_DRIVERS:%=%_bootcd)
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-05-26 16:52:31 +00:00
|
|
|
#
|
|
|
|
# Network driver rules
|
|
|
|
#
|
2000-08-08 17:41:41 +00:00
|
|
|
$(NET_DRIVERS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/net/$*
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(NET_DRIVERS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/net/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
$(NET_DRIVERS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/net/$* clean
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2000-08-11 12:46:47 +00:00
|
|
|
$(NET_DRIVERS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/net/$* install
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(NET_DRIVERS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C drivers/net/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
.PHONY: $(NET_DRIVERS) $(NET_DRIVERS:%=%_implib) $(NET_DRIVERS:%=%_clean) \
|
2003-11-24 14:41:29 +00:00
|
|
|
$(NET_DRIVERS:%=%_install) $(NET_DRIVERS:%=%_bootcd)
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
#
|
|
|
|
# Network device driver rules
|
|
|
|
#
|
2000-08-27 16:35:31 +00:00
|
|
|
$(NET_DEVICE_DRIVERS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/net/dd/$*
|
2000-08-27 16:35:31 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(NET_DEVICE_DRIVERS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/net/dd/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2000-08-27 16:35:31 +00:00
|
|
|
$(NET_DEVICE_DRIVERS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/net/dd/$* clean
|
2000-08-27 16:35:31 +00:00
|
|
|
|
|
|
|
$(NET_DEVICE_DRIVERS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/net/dd/$* install
|
2000-08-27 16:35:31 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(NET_DEVICE_DRIVERS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C drivers/net/dd/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
.PHONY: $(NET_DEVICE_DRIVERS) $(NET_DEVICE_DRIVERS:%=%_clean) $(NET_DEVICE_DRIVERS:%=%_implib) \
|
2003-11-24 14:41:29 +00:00
|
|
|
$(NET_DEVICE_DRIVERS:%=%_install) $(NET_DEVICE_DRIVERS:%=%_bootcd)
|
|
|
|
|
2000-08-27 16:35:31 +00:00
|
|
|
|
2001-07-23 06:15:27 +00:00
|
|
|
#
|
|
|
|
# storage driver rules
|
|
|
|
#
|
|
|
|
$(STORAGE_DRIVERS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/storage/$*
|
2001-07-23 06:15:27 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(STORAGE_DRIVERS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/storage/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2001-07-23 06:15:27 +00:00
|
|
|
$(STORAGE_DRIVERS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/storage/$* clean
|
2001-07-23 06:15:27 +00:00
|
|
|
|
|
|
|
$(STORAGE_DRIVERS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C drivers/storage/$* install
|
2001-07-23 06:15:27 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(STORAGE_DRIVERS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C drivers/storage/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
|
|
|
.PHONY: $(STORAGE_DRIVERS) $(STORAGE_DRIVERS:%=%_clean) $(STORAGE_DRIVERS:%=%_implib) \
|
2003-11-24 14:41:29 +00:00
|
|
|
$(STORAGE_DRIVERS:%=%_install) $(STORAGE_DRIVERS:%=%_bootcd)
|
|
|
|
|
2001-07-23 06:15:27 +00:00
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
|
|
|
# Kernel loaders
|
|
|
|
#
|
|
|
|
$(LOADERS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C loaders/$*
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(LOADERS:%=%_implib): %_implib:
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
$(LOADERS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C loaders/$* clean
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2000-08-11 12:46:47 +00:00
|
|
|
$(LOADERS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C loaders/$* install
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: $(LOADERS) $(LOADERS:%=%_implib) $(LOADERS:%=%_clean) $(LOADERS:%=%_install)
|
2000-08-08 17:41:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Required system components
|
|
|
|
#
|
|
|
|
ntoskrnl:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C ntoskrnl
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
ntoskrnl_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C ntoskrnl implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
ntoskrnl_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C ntoskrnl clean
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2000-08-11 12:46:47 +00:00
|
|
|
ntoskrnl_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C ntoskrnl install
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
ntoskrnl_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C ntoskrnl bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: ntoskrnl ntoskrnl_implib ntoskrnl_clean ntoskrnl_install ntoskrnl_bootcd
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
#
|
|
|
|
# Hardware Abstraction Layer import library
|
|
|
|
#
|
|
|
|
hallib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C hal/hal
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
hallib_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C hal/hal implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
hallib_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C hal/hal clean
|
2001-08-21 20:13:17 +00:00
|
|
|
|
|
|
|
hallib_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C hal/hal install
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
hallib_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C hal/hal bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: hallib hallib_implib hallib_clean hallib_install hallib_bootcd
|
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Hardware Abstraction Layers
|
|
|
|
#
|
|
|
|
$(HALS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C hal/$*
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(HALS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C hal/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
$(HALS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C hal/$* clean
|
2001-08-21 20:13:17 +00:00
|
|
|
|
|
|
|
$(HALS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C hal/$* install
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(HALS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C hal/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: $(HALS) $(HALS:%=%_implib) $(HALS:%=%_clean) $(HALS:%=%_install) $(HALS:%=%_bootcd)
|
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
|
2003-04-05 19:40:41 +00:00
|
|
|
#
|
|
|
|
# File system libraries
|
|
|
|
#
|
|
|
|
$(LIB_FSLIB): %:
|
|
|
|
$(MAKE) -C lib/fslib/$*
|
|
|
|
|
|
|
|
$(LIB_FSLIB:%=%_depends): %_depends:
|
|
|
|
$(MAKE) -C lib/fslib/$* depends
|
|
|
|
|
|
|
|
$(LIB_FSLIB:%=%_implib): %_implib:
|
|
|
|
$(MAKE) -C lib/fslib/$* implib
|
|
|
|
|
|
|
|
$(LIB_FSLIB:%=%_clean): %_clean:
|
|
|
|
$(MAKE) -C lib/fslib/$* clean
|
|
|
|
|
|
|
|
$(LIB_FSLIB:%=%_install): %_install:
|
|
|
|
$(MAKE) -C lib/fslib/$* install
|
|
|
|
|
|
|
|
$(LIB_FSLIB:%=%_bootcd): %_bootcd:
|
|
|
|
$(MAKE) -C lib/fslib/$* bootcd
|
|
|
|
|
|
|
|
.PHONY: $(LIB_FSLIB) $(LIB_FSLIB:%=%_depends) $(LIB_FSLIB:%=%_implib) $(LIB_FSLIB:%=%_clean) \
|
2003-11-24 14:41:29 +00:00
|
|
|
$(LIB_FSLIB:%=%_install) $(LIB_FSLIB:%=%_bootcd)
|
|
|
|
|
2003-04-05 19:40:41 +00:00
|
|
|
|
2003-05-27 19:02:26 +00:00
|
|
|
#
|
|
|
|
# Static libraries
|
|
|
|
#
|
|
|
|
$(LIB_STATIC): %:
|
|
|
|
$(MAKE) -C lib/$*
|
|
|
|
|
|
|
|
$(LIB_STATIC:%=%_depends): %_depends:
|
|
|
|
$(MAKE) -C lib/string depends
|
|
|
|
|
|
|
|
$(LIB_STATIC:%=%_implib): %_implib:
|
|
|
|
$(MAKE) -C lib/$* implib
|
|
|
|
|
|
|
|
$(LIB_STATIC:%=%_clean): %_clean:
|
|
|
|
$(MAKE) -C lib/$* clean
|
|
|
|
|
|
|
|
$(LIB_STATIC:%=%_install): %_install:
|
|
|
|
$(MAKE) -C lib/$* install
|
|
|
|
|
|
|
|
$(LIB_STATIC:%=%_bootcd): %_bootcd:
|
|
|
|
$(MAKE) -C lib/$* bootcd
|
|
|
|
|
|
|
|
.PHONY: $(LIB_STATIC) $(LIB_STATIC:%=%_depends) $(LIB_STATIC:%=%_implib) $(LIB_STATIC:%=%_clean) \
|
2003-11-24 14:41:29 +00:00
|
|
|
$(LIB_STATIC:%=%_install) $(LIB_STATIC:%=%_bootcd)
|
|
|
|
|
2003-05-27 19:02:26 +00:00
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
2003-11-24 14:41:29 +00:00
|
|
|
# DLLs
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
|
|
|
$(DLLS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C lib/$*
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-01-05 19:15:10 +00:00
|
|
|
$(DLLS:%=%_depends): %_depends:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C lib/$* depends
|
2003-01-05 19:15:10 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(DLLS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C lib/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
$(DLLS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C lib/$* clean
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2000-08-11 12:46:47 +00:00
|
|
|
$(DLLS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C lib/$* install
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(DLLS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C lib/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2003-11-24 14:41:29 +00:00
|
|
|
.PHONY: $(DLLS) $(DLLS:%=%_depends) $(DLLS:%=%_implib) $(DLLS:%=%_clean) $(DLLS:%=%_install) \
|
|
|
|
$(DLLS:%=%_bootcd)
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
|
|
|
|
#
|
2002-06-02 19:25:02 +00:00
|
|
|
# Subsystem support modules
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
|
|
|
$(SUBSYS): %:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C subsys/$*
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-01-05 19:15:10 +00:00
|
|
|
$(SUBSYS:%=%_depends): %_depends:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C subsys/$* depends
|
2003-01-05 19:15:10 +00:00
|
|
|
|
2001-11-03 16:48:07 +00:00
|
|
|
$(SUBSYS:%=%_implib): %_implib:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C subsys/$* implib
|
2001-11-03 16:48:07 +00:00
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
$(SUBSYS:%=%_clean): %_clean:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C subsys/$* clean
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2000-08-11 12:46:47 +00:00
|
|
|
$(SUBSYS:%=%_install): %_install:
|
2003-02-28 22:51:17 +00:00
|
|
|
$(MAKE) -C subsys/$* install
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-04-05 09:37:45 +00:00
|
|
|
$(SUBSYS:%=%_bootcd): %_bootcd:
|
2003-04-05 19:40:41 +00:00
|
|
|
$(MAKE) -C subsys/$* bootcd
|
2003-04-05 09:37:45 +00:00
|
|
|
|
2003-01-05 19:15:10 +00:00
|
|
|
.PHONY: $(SUBSYS) $(SUBSYS:%=%_depends) $(SUBSYS:%=%_implib) $(SUBSYS:%=%_clean) $(SUBSYS:%=%_install) \
|
2003-11-24 14:41:29 +00:00
|
|
|
$(SUBSYS:%=%_bootcd)
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2003-07-11 18:13:57 +00:00
|
|
|
#
|
|
|
|
# Regression testsuite
|
|
|
|
#
|
|
|
|
|
|
|
|
$(REGTESTS): %:
|
|
|
|
$(MAKE) -C regtests
|
|
|
|
|
|
|
|
$(REGTESTS:%=%_clean): %_clean:
|
|
|
|
$(MAKE) -C regtests clean
|
|
|
|
|
|
|
|
$(REGTESTS:%=%_install): %_install:
|
|
|
|
$(MAKE) -C regtests install
|
|
|
|
|
|
|
|
.PHONY: $(REGTESTS) $(REGTESTS:%=%_depends) $(SUBSYS:%=%_clean) $(REGTESTS:%=%_install)
|
|
|
|
|
|
|
|
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
2001-08-21 20:13:17 +00:00
|
|
|
# Create an installation
|
2000-08-08 17:41:41 +00:00
|
|
|
#
|
2000-08-27 23:06:36 +00:00
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
install_clean:
|
|
|
|
$(RM) $(INSTALL_DIR)/system32/drivers/*.*
|
|
|
|
$(RM) $(INSTALL_DIR)/system32/config/*.*
|
|
|
|
$(RM) $(INSTALL_DIR)/system32/*.*
|
|
|
|
$(RM) $(INSTALL_DIR)/symbols/*.*
|
|
|
|
$(RM) $(INSTALL_DIR)/media/fonts/*.*
|
|
|
|
$(RM) $(INSTALL_DIR)/media/*.*
|
|
|
|
$(RM) $(INSTALL_DIR)/bin/*.*
|
|
|
|
$(RM) $(INSTALL_DIR)/*.com
|
|
|
|
$(RM) $(INSTALL_DIR)/*.bat
|
|
|
|
$(RMDIR) $(INSTALL_DIR)/system32/drivers
|
|
|
|
$(RMDIR) $(INSTALL_DIR)/system32/config
|
|
|
|
$(RMDIR) $(INSTALL_DIR)/system32
|
|
|
|
$(RMDIR) $(INSTALL_DIR)/symbols
|
|
|
|
$(RMDIR) $(INSTALL_DIR)/media/fonts
|
|
|
|
$(RMDIR) $(INSTALL_DIR)/media
|
|
|
|
$(RMDIR) $(INSTALL_DIR)/bin
|
|
|
|
$(RMDIR) $(INSTALL_DIR)
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
install_dirs:
|
|
|
|
$(RMKDIR) $(INSTALL_DIR)
|
|
|
|
$(RMKDIR) $(INSTALL_DIR)/bin
|
|
|
|
$(RMKDIR) $(INSTALL_DIR)/media
|
|
|
|
$(RMKDIR) $(INSTALL_DIR)/media/fonts
|
|
|
|
$(RMKDIR) $(INSTALL_DIR)/symbols
|
|
|
|
$(RMKDIR) $(INSTALL_DIR)/system32
|
|
|
|
$(RMKDIR) $(INSTALL_DIR)/system32/config
|
|
|
|
$(RMKDIR) $(INSTALL_DIR)/system32/drivers
|
2000-08-08 17:41:41 +00:00
|
|
|
|
2001-08-21 20:13:17 +00:00
|
|
|
install_before:
|
2002-06-02 19:25:02 +00:00
|
|
|
$(CP) bootc.lst $(INSTALL_DIR)/bootc.lst
|
2001-08-21 20:13:17 +00:00
|
|
|
$(CP) boot.bat $(INSTALL_DIR)/boot.bat
|
2001-08-23 17:35:17 +00:00
|
|
|
$(CP) aboot.bat $(INSTALL_DIR)/aboot.bat
|
2003-05-25 11:33:58 +00:00
|
|
|
$(CP) media/fonts $(INSTALL_DIR)/media/fonts
|
|
|
|
$(CP) media/nls $(INSTALL_DIR)/system32
|
|
|
|
$(CP) media/nls/c_1252.nls $(INSTALL_DIR)/system32/ansi.nls
|
|
|
|
$(CP) media/nls/c_437.nls $(INSTALL_DIR)/system32/oem.nls
|
|
|
|
$(CP) media/nls/l_intl.nls $(INSTALL_DIR)/system32/casemap.nls
|
2001-08-21 20:13:17 +00:00
|
|
|
|
|
|
|
.PHONY: install_clean install_dirs install_before
|
2000-08-08 17:41:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
etags:
|
|
|
|
find . -name "*.[ch]" -print | etags --language=c -
|
|
|
|
|
2002-09-25 12:49:12 +00:00
|
|
|
|
2003-12-06 23:11:41 +00:00
|
|
|
docu:
|
|
|
|
echo generating ReactOS NTOSKRNL documentation ...
|
|
|
|
$(MAKE) -C ntoskrnl docu
|
|
|
|
|
|
|
|
echo generating ReactOS drivers documentation ...
|
|
|
|
$(MAKE) -C drivers docu
|
|
|
|
|
2003-12-07 12:08:20 +00:00
|
|
|
echo generating ReactOS NTDLL documentation ...
|
|
|
|
$(MAKE) -C lib/ntdll docu
|
|
|
|
|
|
|
|
echo generating ReactOS Freetype documentation ...
|
|
|
|
$(MAKE) -C lib/freetype docu
|
|
|
|
|
2003-12-07 13:08:02 +00:00
|
|
|
echo generating ReactOS libs documentation ...
|
|
|
|
$(MAKE) -C lib docu
|
|
|
|
|
2003-12-06 23:11:41 +00:00
|
|
|
echo generating ReactOS WIN32K documentation ...
|
|
|
|
$(MAKE) -C subsys/win32k docu
|
|
|
|
|
|
|
|
echo generating ReactOS apps+tools documentation ...
|
|
|
|
$(MAKE) -C apps docu
|
|
|
|
|
2003-12-06 23:22:30 +00:00
|
|
|
echo generating ReactOS explorer documentation ...
|
2003-12-07 16:46:31 +00:00
|
|
|
$(MAKE) -C subsys/system/explorer full-docu
|
2003-12-06 23:22:30 +00:00
|
|
|
|
2003-12-06 23:11:41 +00:00
|
|
|
echo generating remaining ReactOS documentation ...
|
|
|
|
doxygen Doxyfile
|
|
|
|
|
|
|
|
.PHONY: docu
|
|
|
|
|
|
|
|
|
|
|
|
# EOF
|