|
@@ -481,9 +481,17 @@ endif
|
|
|
# set the directory where to install the binaries
|
|
|
ifndef INSTALL_BINDIR
|
|
|
ifdef UNIXINSTALLDIR
|
|
|
+ifdef CROSSCOMPILE
|
|
|
+INSTALL_BINDIR:=$(INSTALL_BASEDIR)/cross/$(FULL_TARGET)/bin
|
|
|
+else
|
|
|
INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
|
|
|
+endif
|
|
|
+else
|
|
|
+ifdef CROSSCOMPILE
|
|
|
+INSTALL_BINDIR:=$(INSTALL_BASEDIR)/cross/$(FULL_TARGET)/bin
|
|
|
else
|
|
|
INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
|
|
|
+endif
|
|
|
# for FPC packages install the binaries under their os target subdir
|
|
|
ifdef INSTALL_FPCPACKAGE
|
|
|
INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(OS_TARGET)
|