forked from KolibriOS/kolibrios
блабла
git-svn-id: svn://kolibrios.org@225 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
077f779dea
commit
7d89df5d1b
@ -11,6 +11,12 @@ cfiles := $(foreach dir,$(DIRS),$(patsubst %.c, %.o, $(wildcard $(dir)/*.c)))
|
|||||||
|
|
||||||
.PHONY: clean all
|
.PHONY: clean all
|
||||||
|
|
||||||
|
ifdef windir
|
||||||
|
doClean = del /F /Q $(subst /,\,$(cfiles)) $(subst /,\,$(asmfiles))
|
||||||
|
else
|
||||||
|
doClean = rm $(cfiles) $(asmfiles)
|
||||||
|
endif
|
||||||
|
|
||||||
all: $(cfiles) $(asmfiles)
|
all: $(cfiles) $(asmfiles)
|
||||||
ar -ru $(LIBNAME) $^
|
ar -ru $(LIBNAME) $^
|
||||||
|
|
||||||
@ -20,4 +26,4 @@ $(asmfiles):
|
|||||||
fasm $*.asm $*.o
|
fasm $*.asm $*.o
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
del /F /Q $(subst /,\,$(cfiles)) $(subst /,\,$(asmfiles))
|
$(doClean)
|
||||||
|
Loading…
Reference in New Issue
Block a user