diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-12-22 21:27:21 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-12-22 21:27:21 +0000 |
commit | 893666a734a79885ffb7f701225daf805e437bf5 (patch) | |
tree | 7cfcef1e9f0dcf676290883dc5a46a3da1e43d95 /rbutil/rbutilqt/msvc/Makefile | |
parent | 7f7a2d3b13f96637549998cfaa36148c62f4b8cc (diff) | |
download | rockbox-893666a734a79885ffb7f701225daf805e437bf5.tar.gz rockbox-893666a734a79885ffb7f701225daf805e437bf5.zip |
Rockbox Utility: add description and helper code for VS.
For building Rockbox Utility with Visual Studio some extra steps need to be
done. Visual Studio is also lacking some C99 standard headers. Add the missing
headers (from clang / msinttypes) and a Makefile to automate the extra steps.
See the README file for other requirements and necessary steps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31407 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/msvc/Makefile')
-rw-r--r-- | rbutil/rbutilqt/msvc/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/msvc/Makefile b/rbutil/rbutilqt/msvc/Makefile new file mode 100644 index 0000000000..929529f0fc --- /dev/null +++ b/rbutil/rbutilqt/msvc/Makefile | |||
@@ -0,0 +1,57 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # | ||
7 | |||
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)))) | ||
16 | |||
17 | LIBS = ipodpatcher sansapatcher chinachippatcher \ | ||
18 | mkamsboot mkimxboot mkmpioboot mktccboot \ | ||
19 | ucl rbspeex | ||
20 | |||
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 | ||
28 | |||
29 | CC=gcc | ||
30 | dll: $(addsuffix .dll,$(LIBS)) | ||
31 | |||
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)/ OUT=$(PWD)/build-dll/$(basename $@) \ | ||
39 | CROSS=$(CROSS) CC=$(CC) STATIC=1 APPVERSION=dll dll | ||
40 | |||
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 | ||
45 | |||
46 | lib: $(addsuffix .lib,$(LIBS)) | ||
47 | |||
48 | %.lib: %.dll | ||
49 | @echo LIB $@ | ||
50 | @lib /machine:x86 /nologo /def:$(basename $<).def | ||
51 | |||
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 | ||