From 7d89df5d1bc9a57315f0a5acfab9e9c116a80906 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 1 Dec 2006 10:55:54 +0000 Subject: [PATCH] =?UTF-8?q?=D0=B1=D0=BB=D0=B0=D0=B1=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://kolibrios.org@225 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/metcc/trunk/libc/makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/programs/develop/metcc/trunk/libc/makefile b/programs/develop/metcc/trunk/libc/makefile index a88aa8e2c5..782eac7055 100644 --- a/programs/develop/metcc/trunk/libc/makefile +++ b/programs/develop/metcc/trunk/libc/makefile @@ -11,6 +11,12 @@ cfiles := $(foreach dir,$(DIRS),$(patsubst %.c, %.o, $(wildcard $(dir)/*.c))) .PHONY: clean all +ifdef windir +doClean = del /F /Q $(subst /,\,$(cfiles)) $(subst /,\,$(asmfiles)) +else +doClean = rm $(cfiles) $(asmfiles) +endif + all: $(cfiles) $(asmfiles) ar -ru $(LIBNAME) $^ @@ -20,4 +26,4 @@ $(asmfiles): fasm $*.asm $*.o clean: - del /F /Q $(subst /,\,$(cfiles)) $(subst /,\,$(asmfiles)) + $(doClean)