mirror of
https://github.com/reactos/reactos.git
synced 2024-11-16 03:42:49 +00:00
Added a clean rule
svn path=/trunk/; revision=239
This commit is contained in:
parent
6752566cd2
commit
ace5da2d0d
3 changed files with 54 additions and 78 deletions
|
@ -11,8 +11,8 @@ genntdll$(EXE_POSTFIX): genntdll.c
|
||||||
sysfuncs.lst: dummy
|
sysfuncs.lst: dummy
|
||||||
|
|
||||||
clean: dummy
|
clean: dummy
|
||||||
$(RM) ../../lib/ntdll/sysfuncs.lst
|
- $(RM) ../../lib/ntdll/sysfuncs.lst
|
||||||
$(RM) ../../include/ntdll/napi.h
|
- $(RM) ../../include/ntdll/napi.h
|
||||||
|
|
||||||
dummy:
|
dummy:
|
||||||
|
|
||||||
|
|
|
@ -15,128 +15,103 @@ include rules.mak
|
||||||
#
|
#
|
||||||
# Required to run the system
|
# Required to run the system
|
||||||
#
|
#
|
||||||
COMPONENTS = iface_native ntoskrnl kernel32 ntdll crtdll mingw32
|
LIBRARIES = kernel32 ntdll crtdll mingw32
|
||||||
|
COMPONENTS = iface_native ntoskrnl $(LIBRARIES)
|
||||||
|
.PHONY: $(COMPONENTS) $(COMPONENTS:%=%_clean)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Select the server(s) you want to build
|
# Select the server(s) you want to build
|
||||||
#
|
#
|
||||||
SERVERS = win32 posix linux os2
|
SERVERS = win32 posix linux os2
|
||||||
|
.PHONY: $(SERVERS) $(SERVERS:%=%_clean)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Select the loader(s) you want to build
|
# Select the loader(s) you want to build
|
||||||
#
|
#
|
||||||
LOADERS = dos
|
LOADERS = dos
|
||||||
|
.PHONY: $(LOADERS) $(LOADERS:%=%_clean)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Select the device drivers and filesystems you want
|
# Select the device drivers and filesystems you want
|
||||||
#
|
#
|
||||||
KERNEL_SERVICES = parallel keyboard blues null mouse serial sound ide test sdisk \
|
DD_SERVICES = blue ide keyboard mouse null parallel sdisk serial sound test
|
||||||
minix vfat ext2
|
FS_SERVICES = minix vfat ext2
|
||||||
|
KERNEL_SERVICES = $(DD_SERVICES) $(FS_SERVICES)
|
||||||
|
.PHONY: $(KERNEL_SERVICES) $(KERNEL_SERVICES:%=%_clean)
|
||||||
|
|
||||||
APPS = hello shell args
|
APPS = hello shell # args
|
||||||
|
.PHONY: $(APPS:%=%) $(APPS:%=%_clean)
|
||||||
|
|
||||||
all: $(COMPONENTS) $(LOADERS) $(KERNEL_SERVICES) $(APPS)
|
all: $(COMPONENTS) $(LOADERS) $(KERNEL_SERVICES) $(APPS)
|
||||||
|
.PHONY: all
|
||||||
|
|
||||||
clean: dummy
|
clean: $(COMPONENTS:%=%_clean) $(LOADERS:%=%_clean) \
|
||||||
make -C iface/native clean
|
$(KERNEL_SERVICES:%=%_clean) $(APPS:%=%_clean)
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
#
|
#
|
||||||
# Applications
|
# Applications
|
||||||
#
|
#
|
||||||
hello: dummy
|
$(APPS): %:
|
||||||
make -C apps/hello
|
make -C apps/$*
|
||||||
|
|
||||||
args: dummy
|
$(APPS:%=%_clean): %_clean:
|
||||||
make -C apps/args
|
make -C apps/$* clean
|
||||||
|
|
||||||
cmd: dummy
|
|
||||||
make -C apps/cmd
|
|
||||||
|
|
||||||
shell: dummy
|
|
||||||
make -C apps/shell
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Interfaces
|
# Interfaces
|
||||||
#
|
#
|
||||||
iface_native: dummy
|
|
||||||
|
iface_native:
|
||||||
make -C iface/native
|
make -C iface/native
|
||||||
|
|
||||||
|
iface_native_clean:
|
||||||
|
make -C iface/native clean
|
||||||
|
|
||||||
#
|
#
|
||||||
# Device driver rules
|
# Device driver rules
|
||||||
#
|
#
|
||||||
vfat: dummy
|
|
||||||
make -C services/fs/vfat
|
|
||||||
|
|
||||||
sdisk: dummy
|
|
||||||
make -C services/dd/sdisk
|
|
||||||
|
|
||||||
minix: dummy
|
|
||||||
make -C services/fs/minix
|
|
||||||
|
|
||||||
template: dummy
|
|
||||||
make -C services/fs/template
|
|
||||||
|
|
||||||
|
$(DD_SERVICES): %:
|
||||||
|
make -C services/dd/$*
|
||||||
|
|
||||||
ide-test: dummy
|
$(DD_SERVICES:%=%_clean): %_clean:
|
||||||
make -C services/dd/ide-test
|
make -C services/dd/$* clean
|
||||||
|
|
||||||
ide: dummy
|
$(FS_SERVICES): %:
|
||||||
make -C services/dd/ide
|
make -C services/fs/$*
|
||||||
|
|
||||||
test: dummy
|
$(FS_SERVICES:%=%_clean): %_clean:
|
||||||
make -C services/dd/test
|
make -C services/fs/$* clean
|
||||||
|
|
||||||
test1: dummy
|
|
||||||
make -C services/dd/test1
|
|
||||||
|
|
||||||
null: dummy
|
|
||||||
make -C services/dd/null
|
|
||||||
|
|
||||||
parallel: dummy
|
|
||||||
make -C services/dd/parallel
|
|
||||||
|
|
||||||
keyboard: dummy
|
|
||||||
make -C services/dd/keyboard
|
|
||||||
|
|
||||||
blues: dummy
|
|
||||||
make -C services/dd/blue
|
|
||||||
|
|
||||||
mouse: dummy
|
|
||||||
make -C services/dd/mouse
|
|
||||||
|
|
||||||
serial: dummy
|
|
||||||
make -C services/dd/serial
|
|
||||||
|
|
||||||
sound: dummy
|
|
||||||
make -C services/dd/sound
|
|
||||||
|
|
||||||
ext2: dummy
|
|
||||||
make -C services/fs/ext2
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Kernel loaders
|
# Kernel loaders
|
||||||
#
|
#
|
||||||
|
|
||||||
dos: dummy
|
$(LOADERS): %:
|
||||||
make -C loaders/dos
|
make -C loaders/$*
|
||||||
|
|
||||||
|
$(LOADERS:%=%_clean): %_clean:
|
||||||
|
make -C loaders/$* clean
|
||||||
|
|
||||||
|
#
|
||||||
|
# Libraries
|
||||||
|
#
|
||||||
|
|
||||||
|
$(LIBRARIES): %:
|
||||||
|
make -C lib/$*
|
||||||
|
|
||||||
|
$(LIBRARIES:%=%_clean): %_clean:
|
||||||
|
make -C lib/$* clean
|
||||||
|
|
||||||
#
|
#
|
||||||
# Required system components
|
# Required system components
|
||||||
#
|
#
|
||||||
|
|
||||||
ntoskrnl: dummy
|
ntoskrnl:
|
||||||
make -C ntoskrnl
|
make -C ntoskrnl
|
||||||
|
|
||||||
kernel32: dummy
|
ntoskrnl_clean:
|
||||||
make -C lib/kernel32
|
make -C ntoskrnl clean
|
||||||
|
|
||||||
ntdll: dummy
|
|
||||||
make -C lib/ntdll
|
|
||||||
|
|
||||||
crtdll: dummy
|
|
||||||
make -C lib/crtdll
|
|
||||||
|
|
||||||
mingw32: dummy
|
|
||||||
make -C lib/mingw32
|
|
||||||
|
|
||||||
dummy:
|
|
||||||
|
|
|
@ -41,7 +41,8 @@ NASM_FORMAT = coff
|
||||||
PREFIX =
|
PREFIX =
|
||||||
KERNEL_BFD_TARGET = --oformat=coff-go32
|
KERNEL_BFD_TARGET = --oformat=coff-go32
|
||||||
EXE_POSTFIX = .exe
|
EXE_POSTFIX = .exe
|
||||||
CP = copy
|
CP = COPY
|
||||||
|
RM = DELETE
|
||||||
LIBGCC = libgcc.a
|
LIBGCC = libgcc.a
|
||||||
NASM_CMD = nasm
|
NASM_CMD = nasm
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue