mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
rbutil: Merge rbutil with utils folder.
rbutil uses several components from the utils folder, and can be considered part of utils too. Having it in a separate folder is an arbitrary split that doesn't help anymore these days, so merge them. This also allows other utils to easily use libtools.make without the need to navigate to a different folder. Change-Id: I3fc2f4de19e3e776553efb5dea5f779dfec0dc21
This commit is contained in:
parent
6c6f0757d7
commit
c876d3bbef
494 changed files with 13 additions and 13 deletions
61
utils/rbutilqt/msvc/Makefile
Normal file
61
utils/rbutilqt/msvc/Makefile
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
# __________ __ ___.
|
||||
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
#
|
||||
|
||||
ifndef V
|
||||
SILENT = @
|
||||
endif
|
||||
# The rbspeex Makefile has problems with msys' path mangling as well as running
|
||||
# MSVC's lib tool. Use TOP instead of pwd. This means the resulting files will
|
||||
# always be placed in this folder.
|
||||
# On Linux use the current folder instead.
|
||||
TOP := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
LIBS = ipodpatcher sansapatcher chinachippatcher \
|
||||
mkamsboot mkimxboot mkmpioboot mktccboot \
|
||||
ucl rbspeex
|
||||
|
||||
# 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)
|
||||
RM=rm -rf
|
||||
all: dll
|
||||
else
|
||||
PWD=$(abspath $(TOP))
|
||||
RM=del /q /f
|
||||
all: lib
|
||||
endif
|
||||
|
||||
CC=gcc
|
||||
dll: $(addsuffix .dll,$(LIBS))
|
||||
|
||||
ucl.dll:
|
||||
$(SILENT)$(MAKE) -C ../../../tools/ucl/src \
|
||||
TARGET_DIR=$(PWD)/ OBJDIR=$(PWD)/build-dll/$(basename $@) \
|
||||
CROSS=$(CROSS) CC=$(CC) APPVERSION=dll dll
|
||||
rbspeex.dll:
|
||||
$(SILENT)$(MAKE) -C ../../../tools/rbspeex \
|
||||
TARGET_DIR=$(PWD)/ BUILD_DIR=$(PWD)/build-dll/$(basename $@) \
|
||||
CROSS=$(CROSS) CC=$(CC) STATIC=1 APPVERSION=dll dll
|
||||
|
||||
%.dll:
|
||||
$(SILENT)$(MAKE) -C ../../$(basename $@) \
|
||||
TARGET_DIR=$(PWD)/ BUILD_DIR=$(PWD)/build-dll/$(basename $@) \
|
||||
CROSS=$(CROSS) CC=$(CC) APPVERSION=dll dll
|
||||
|
||||
lib: $(addsuffix .lib,$(LIBS))
|
||||
|
||||
%.lib: %.dll
|
||||
@echo LIB $@
|
||||
@lib /machine:x86 /nologo /def:$(basename $<).def
|
||||
|
||||
clean:
|
||||
$(RM) $(addsuffix .dll,$(LIBS))
|
||||
$(RM) $(addsuffix .def,$(LIBS))
|
||||
$(RM) $(addsuffix .exp,$(LIBS))
|
||||
$(RM) $(addsuffix .lib,$(LIBS))
|
||||
$(RM) build-dll
|
||||
Loading…
Add table
Add a link
Reference in a new issue