forked from len0rd/rockbox
Make clean target work for MSVC dll Makefile on Windows.
Change-Id: Ifb9a00530720e0997421af9a07ae8c133f0edfd0
This commit is contained in:
parent
5877f7b5c0
commit
d30c500b96
1 changed files with 10 additions and 6 deletions
|
|
@ -18,11 +18,15 @@ LIBS = ipodpatcher sansapatcher chinachippatcher \
|
||||||
mkamsboot mkimxboot mkmpioboot mktccboot \
|
mkamsboot mkimxboot mkmpioboot mktccboot \
|
||||||
ucl rbspeex
|
ucl rbspeex
|
||||||
|
|
||||||
ifeq ($(findstring Linux,$(shell uname)),Linux)
|
# on Windows uname is not available. However, the environment variable OS holds
|
||||||
|
# Windows_NT so check that instead.
|
||||||
|
ifneq ($(OS),Windows_NT)
|
||||||
PWD=$(shell pwd)
|
PWD=$(shell pwd)
|
||||||
|
RM=rm -rf
|
||||||
all: dll
|
all: dll
|
||||||
else
|
else
|
||||||
PWD=$(abspath $(TOP))
|
PWD=$(abspath $(TOP))
|
||||||
|
RM=del /q /f
|
||||||
all: lib
|
all: lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
@ -50,8 +54,8 @@ lib: $(addsuffix .lib,$(LIBS))
|
||||||
@lib /machine:x86 /nologo /def:$(basename $<).def
|
@lib /machine:x86 /nologo /def:$(basename $<).def
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(addsuffix .dll,$(LIBS))
|
$(RM) $(addsuffix .dll,$(LIBS))
|
||||||
rm -rf $(addsuffix .def,$(LIBS))
|
$(RM) $(addsuffix .def,$(LIBS))
|
||||||
rm -rf $(addsuffix .exp,$(LIBS))
|
$(RM) $(addsuffix .exp,$(LIBS))
|
||||||
rm -rf $(addsuffix .lib,$(LIBS))
|
$(RM) $(addsuffix .lib,$(LIBS))
|
||||||
rm -rf build-dll
|
$(RM) build-dll
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue