Fix advanced EQ menu
[maemo-rb.git] / rbutil / rbutilqt / msvc / Makefile
blob3c1d6a0f36e12c5e9807d041269154b20ba67ebc
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
8 ifndef V
9 SILENT = @
10 endif
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 \
19 ucl rbspeex
21 ifeq ($(findstring Linux,$(shell uname)),Linux)
22 PWD=$(shell pwd)
23 all: dll
24 else
25 PWD=$(abspath $(TOP))
26 all: lib
27 endif
29 CC=gcc
30 dll: $(addsuffix .dll,$(LIBS))
32 ucl.dll:
33 $(SILENT)$(MAKE) -C ../../../tools/ucl/src \
34 TARGET_DIR=$(PWD)/ OBJDIR=$(PWD)/build-dll/$(basename $@) \
35 CROSS=$(CROSS) CC=$(CC) APPVERSION=dll dll
36 rbspeex.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
41 %.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))
48 %.lib: %.dll
49 @echo LIB $@
50 @lib /machine:x86 /nologo /def:$(basename $<).def
52 clean:
53 rm -rf $(addsuffix .dll,$(LIBS))
54 rm -rf $(addsuffix .def,$(LIBS))
55 rm -rf $(addsuffix .exp,$(LIBS))
56 rm -rf $(addsuffix .lib,$(LIBS))
57 rm -rf build-dll