summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/rbutilqt/Makefile.libs10
1 files changed, 9 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/Makefile.libs b/rbutil/rbutilqt/Makefile.libs
index b3a4c31..a3119f2 100644
--- a/rbutil/rbutilqt/Makefile.libs
+++ b/rbutil/rbutilqt/Makefile.libs
@@ -12,15 +12,23 @@ endif
TARGET_DIR ?= $(abspath .)/build/
BUILD_DIR ?= $(abspath .)/build/
+# 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
# 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.
export SYS_SPEEX
export TARGET_DIR
+export RBBASE_DIR
export CFLAGS=$(EXTRALIB_CFLAGS)
export CC=$(EXTRALIBS_CC)
-export AR=$(EXTRALIB_AR)
+export AR=$(EXTRALIBS_AR)
libs: librbspeex libucl libipodpatcher libsansapatcher libmkamsboot libmktccboot libmkmpioboot libchinachippatcher libmkimxboot