From e5bfd356671e7c06527922ee5f2d8bf64fe37622 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 27 Apr 1999 14:51:27 +0000 Subject: [PATCH] Fixed the 'clean' rule. svn path=/trunk/; revision=419 --- reactos/lib/crtdll/makefile | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/reactos/lib/crtdll/makefile b/reactos/lib/crtdll/makefile index f01f0d0a274..1cb766e79ce 100644 --- a/reactos/lib/crtdll/makefile +++ b/reactos/lib/crtdll/makefile @@ -111,7 +111,7 @@ MATH_OBJECTS = math/acos.o math/acosh.o math/asin.o math/asinh.o math/atan.o mat OLD_OBJECTS = $(MISC_OBJECTS) stdlib/malloc.o stdlib/abort.o \ - stdlib/_exit.o stdlib/atexit.o stdio/fileno.o io/fmode.o \ + stdlib/_exit.o stdlib/atexit.o stdio/fileno.o io/fmode.o \ float/fpreset.o stdio/stdhnd.o io/setmode.o io/open.o \ stdio/vsprintf.o $(CTYPE_OBJECTS) stdlib/atoi.o stdlib/strtol.o \ stdio/flsbuf.o stdio/putc.o stdio/vfprintf.o $(STRING_OBJECTS)\ @@ -122,13 +122,26 @@ OLD_OBJECTS = $(MISC_OBJECTS) stdlib/malloc.o stdlib/abort.o \ RESOURCE_OBJECT = crtdll.coff OBJECTS = $(MISC_OBJECTS) $(STDLIB_OBJECTS) $(IO_OBJECTS) \ - $(FLOAT_OBJECTS) $(ASSERT_OBJECTS) $(PROCESS_OBJECTS) \ + $(FLOAT_OBJECTS) $(ASSERT_OBJECTS) $(PROCESS_OBJECTS) \ $(STDIO_OBJECTS) $(CTYPE_OBJECTS) $(MATH_OBJECTS) \ $(STRING_OBJECTS) $(TIME_OBJECTS) $(WCHAR_OBJECTS) \ $(SYS_STAT_OBJECTS) misc/dllmain.o $(MALLOC_OBJECTS) \ $(SEARCH_OBJECTS) $(CONIO_OBJECTS) $(DIRECT_OBJECTS) \ $(SIGNAL_OBJECTS) $(RESOURCE_OBJECT) +ifeq ($(DOSCLI), yes) +CLEAN_FILES = assert\*.o conio\*.o ctype\*.o direct\*.o dirent\*.o \ + except\*.o float\*.o io\*.o libc\*.o locale\*.o malloc\*.o \ + math\*.o mbstring\*.o misc\*.o process\*.o quad\*.o search\*.o \ + setjmp\*.o stdio\*.o stdlib\*.o string\*.o sys_stat\*.o tchar\*.o \ + time\*.o wchar\*.o crtdll.a crtdll.o crtdll.dll crtdll.sym +else +CLEAN_FILES = assert/*.o conio/*.o ctype/*.o direct/*.o dirent/*.o \ + except/*.o float/*.o io/*.o libc/*.o locale/*.o malloc/*.o \ + math/*.o mbstring/*.o misc/*.o process/*.o quad/*.o search/*.o \ + setjmp/*.o stdio/*.o stdlib/*.o string/*.o sys_stat/*.o tchar/*.o \ + time/*.o wchar/*.o crtdll.a crtdll.o crtdll.dll crtdll.sym +endif crtdll.coff: crtdll.rc ../../include/reactos/resource.h windres crtdll.rc crtdll.coff @@ -155,7 +168,11 @@ crtdll.dll: $(DLLMAIN) $(OBJECTS) crtdll.def - $(RM) temp.exp $(NM) --numeric-sort crtdll.dll > crtdll.sym -clean: +clean: $(CLEAN_FILES:%=%_clean) + +$(CLEAN_FILES:%=%_clean): %_clean: + - $(RM) $* + include ../../rules.mak