fixed 'make all' and added some missing clean:: rules
authorRoyce Mitchell III <royce3@ev1.net>
Fri, 25 Feb 2005 20:00:27 +0000 (20:00 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Fri, 25 Feb 2005 20:00:27 +0000 (20:00 +0000)
svn path=/branches/xmlbuildsystem/; revision=13743

reactos/Makefile
reactos/tools/Makefile
reactos/tools/nci/makefile
reactos/tools/rbuild/makefile
reactos/tools/wmc/makefile

index 5bc7919..bc4cdcd 100644 (file)
@@ -4,15 +4,17 @@ ifeq ($(HOST),mingw32-linux)
        host_gcc = gcc
        host_gpp = g++
        nmkdir = mkdir -p
+       rm = rm
 else # mingw32-windows
        EXEPOSTFIX = .exe
        SEP = \$(EMPTY_VAR)
        host_gcc = gcc
        host_gpp = g++
        nmkdir = mkdir
+       rm = del /f /q
 endif
 
-default: Makefile.auto
+all: Makefile.auto
 
 ifneq ($(ROS_INTERMEDIATE),)
 $(ROS_INTERMEDIATE)tools: $(ROS_INTERMEDIATE)
@@ -46,3 +48,6 @@ include$(SEP)reactos$(SEP)bugcodes.h ntoskrnl$(SEP)bugcodes.rc: $(WMC_TARGET) nt
 
 include$(SEP)reactos$(SEP)errcodes.h lib$(SEP)kernel32$(SEP)errcodes.rc: $(WMC_TARGET) lib$(SEP)kernel32$(SEP)kernel32.mc
        $(WMC_TARGET) -H include$(SEP)reactos$(SEP)errcodes.h -o lib$(SEP)kernel32$(SEP)errcodes.rc lib$(SEP)kernel32$(SEP)kernel32.mc
+
+clean::
+       -@$(rm) Makefile.auto $(PREAUTO)
index 956cb1e..dcc935a 100644 (file)
@@ -19,6 +19,9 @@ $(RMKDIR_TARGET): $(RMKDIR_OBJECTS)
 $(RMKDIR_OBJECTS): %.o : %.c
        ${host_gcc} $(RMKDIR_HOST_CFLAGS) -c $< -o $@
 
+clean::
+       -@$(rm) $(RMKDIR_TARGET) $(RMKDIR_OBJECTS) 2>$(NUL)
+
 
 
 BUILDNO_BASE = tools
@@ -42,6 +45,9 @@ $(BUILDNO_TARGET): $(BUILDNO_OBJECTS)
 $(BUILDNO_OBJECTS): %.o : %.c
        ${host_gcc} $(BUILDNO_HOST_CFLAGS) -c $< -o $@
 
+clean::
+       -@$(rm) $(BUILDNO_TARGET) $(BUILDNO_OBJECTS) 2>$(NUL)
+
 include$(SEP)reactos$(SEP)buildno.h: $(BUILDNO_TARGET)
        $(EXEPREFIX)$(BUILDNO_TARGET) include$(SEP)reactos$(SEP)buildno.h
 
index 9f0123f..f284c3e 100644 (file)
@@ -19,6 +19,9 @@ $(NCI_TARGET): $(NCI_OBJECTS)
 $(NCI_OBJECTS): %.o : %.c
        ${host_gcc} $(NCI_HOST_CFLAGS) -c $< -o $@
 
+clean::
+       -@$(rm) $(NCI_TARGET) $(NCI_OBJECTS) 2>$(NUL)
+
 # WIN32K.SYS
 WIN32K_SVC_DB = $(NCI_BASE)$(SEP)w32ksvc.db
 WIN32K_SERVICE_TABLE = subsys$(SEP)win32k$(SEP)main$(SEP)svctab.c
@@ -49,3 +52,6 @@ $(NCI_SERVICE_FILES): $(NCI_TARGET)
                $(KERNEL_STUBS) \
                $(WIN32K_GDI_STUBS) \
                $(WIN32K_USER_STUBS)
+
+clean::
+       -@$(rm) $(NCI_SERVICE_FILES) 2>$(NUL)
index 222c786..3dedb3c 100644 (file)
@@ -100,3 +100,6 @@ $(RBUILD_TEST_SPECIAL_OBJECTS): %.o: %.cpp
 \r
 rbuild_test: $(RBUILD_TEST_TARGET)\r
        $(RBUILD_TEST_TARGET)\r
+\r
+clean::\r
+       -@$(rm) $(RBUILD_TARGET) $(RBUILD_OBJECTS) $(RBUILD_TEST_TARGET) $(RBUILD_TEST_OBJECTS) 2>$(NUL)\r
index 679562a..ef6c2e5 100644 (file)
@@ -25,3 +25,6 @@ $(WMC_TARGET): $(WMC_OBJECTS)
 
 $(WMC_OBJECTS): %.o : %.c
        ${host_gcc} $(WMC_HOST_CXXFLAGS) -c $< -o $@
+
+clean::
+       -@$(rm) $(WMC_TARGET) $(WMC_OBJECTS) 2>$(NUL)