2013-05-03 22:15:18 +00:00
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
#
|
|
|
|
|
|
|
|
ifndef V
|
|
|
|
SILENT = @
|
|
|
|
endif
|
|
|
|
|
|
|
|
TARGET_DIR ?= $(abspath .)/build/
|
|
|
|
BUILD_DIR ?= $(abspath .)/build/
|
2013-05-09 14:11:00 +00:00
|
|
|
# allow using this Makefile directly. Otherwise those variables are set via
|
|
|
|
# the generated one.
|
|
|
|
ifndef RBBASE_DIR
|
|
|
|
RBBASE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))/../../
|
|
|
|
endif
|
|
|
|
EXTRALIBS_CC ?= gcc
|
|
|
|
EXTRALIBS_AR ?= ar
|
2013-05-03 22:15:18 +00:00
|
|
|
|
|
|
|
# re-export variables that might have been set via command line.
|
|
|
|
# If set via command line sub-makefiles cannot override them, so use different
|
|
|
|
# variable names in the calling makefile.
|
2013-05-10 15:45:37 +00:00
|
|
|
export APPVERSION=\"rbutil\"
|
2013-05-03 22:15:18 +00:00
|
|
|
export SYS_SPEEX
|
|
|
|
export TARGET_DIR
|
2013-05-09 14:11:00 +00:00
|
|
|
export RBBASE_DIR
|
2013-05-03 22:15:18 +00:00
|
|
|
export CFLAGS=$(EXTRALIB_CFLAGS)
|
|
|
|
export CC=$(EXTRALIBS_CC)
|
2013-05-09 14:11:00 +00:00
|
|
|
export AR=$(EXTRALIBS_AR)
|
2013-05-03 22:15:18 +00:00
|
|
|
|
2016-02-04 23:25:31 +00:00
|
|
|
libs: librbspeex libucl libipodpatcher libsansapatcher libmkamsboot libmktccboot libmkmpioboot libchinachippatcher libmkimxboot libmks5lboot
|
2013-05-03 22:15:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
librbspeex:
|
|
|
|
$(SILENT) $(MAKE) -C $(RBBASE_DIR)/tools/rbspeex BUILD_DIR=$(BUILD_DIR)/libspeex librbspeex.a
|
|
|
|
|
|
|
|
libucl:
|
|
|
|
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/tools/ucl/src BUILD_DIR=$(BUILD_DIR)/ucl libucl.a
|
|
|
|
|
|
|
|
libipodpatcher:
|
2013-05-10 15:45:37 +00:00
|
|
|
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/ipodpatcher BUILD_DIR=$(BUILD_DIR)/ipodpatcher libipodpatcher.a
|
2013-05-03 22:15:18 +00:00
|
|
|
|
|
|
|
libsansapatcher:
|
2013-05-10 15:45:37 +00:00
|
|
|
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/sansapatcher BUILD_DIR=$(BUILD_DIR)/sansapatcher libsansapatcher.a
|
2013-05-03 22:15:18 +00:00
|
|
|
|
|
|
|
libmkamsboot:
|
2013-05-10 15:45:37 +00:00
|
|
|
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkamsboot BUILD_DIR=$(BUILD_DIR)/mkamsboot libmkamsboot.a
|
2013-05-03 22:15:18 +00:00
|
|
|
|
|
|
|
libmktccboot:
|
2013-05-10 15:45:37 +00:00
|
|
|
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mktccboot BUILD_DIR=$(BUILD_DIR)/mktccboot libmktccboot.a
|
2013-05-03 22:15:18 +00:00
|
|
|
|
|
|
|
libmkmpioboot:
|
2013-05-10 15:45:37 +00:00
|
|
|
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkmpioboot BUILD_DIR=$(BUILD_DIR)/mkmpioboot libmkmpioboot.a
|
2013-05-03 22:15:18 +00:00
|
|
|
|
|
|
|
libchinachippatcher:
|
2013-05-10 15:45:37 +00:00
|
|
|
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/chinachippatcher BUILD_DIR=$(BUILD_DIR)/chinachippatcher libchinachippatcher.a
|
2013-05-03 22:15:18 +00:00
|
|
|
|
|
|
|
libmkimxboot:
|
2013-05-10 15:45:37 +00:00
|
|
|
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mkimxboot BUILD_DIR=$(BUILD_DIR)/mkimxboot libmkimxboot.a
|
2013-05-03 22:15:18 +00:00
|
|
|
|
2016-02-04 23:25:31 +00:00
|
|
|
libmks5lboot:
|
|
|
|
$(SILENT)$(MAKE) -C $(RBBASE_DIR)/rbutil/mks5lboot BUILD_DIR=$(BUILD_DIR)/mks5lboot libmks5lboot.a
|