2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 # The rbspeex Makefile has problems with msys' path mangling as well as running
12 # MSVC's lib tool. Use TOP instead of pwd. This means the resulting files will
13 # always be placed in this folder.
14 # On Linux use the current folder instead.
15 TOP
:= $(dir $(abspath
$(lastword
$(MAKEFILE_LIST
))))
17 LIBS
= ipodpatcher sansapatcher chinachippatcher \
18 mkamsboot mkimxboot mkmpioboot mktccboot \
21 ifeq ($(findstring Linux
,$(shell uname
)),Linux
)
30 dll
: $(addsuffix .dll
,$(LIBS
))
33 $(SILENT
)$(MAKE
) -C ..
/..
/..
/tools
/ucl
/src \
34 TARGET_DIR
=$(PWD
)/ OBJDIR
=$(PWD
)/build-dll
/$(basename $@
) \
35 CROSS
=$(CROSS
) CC
=$(CC
) APPVERSION
=dll dll
37 $(SILENT
)$(MAKE
) -C ..
/..
/..
/tools
/rbspeex \
38 TARGET_DIR
=$(PWD
)/ BUILD_DIR
=$(PWD
)/build-dll
/$(basename $@
) \
39 CROSS
=$(CROSS
) CC
=$(CC
) STATIC
=1 APPVERSION
=dll dll
42 $(SILENT
)$(MAKE
) -C ..
/..
/$(basename $@
) \
43 TARGET_DIR
=$(PWD
)/ BUILD_DIR
=$(PWD
)/build-dll
/$(basename $@
) \
44 CROSS
=$(CROSS
) CC
=$(CC
) APPVERSION
=dll dll
46 lib
: $(addsuffix .lib
,$(LIBS
))
50 @lib
/machine
:x86
/nologo
/def
:$(basename $<).def
53 rm -rf
$(addsuffix .dll
,$(LIBS
))
54 rm -rf
$(addsuffix .def
,$(LIBS
))
55 rm -rf
$(addsuffix .exp
,$(LIBS
))
56 rm -rf
$(addsuffix .lib
,$(LIBS
))