summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild23
1 files changed, 12 insertions, 11 deletions
diff --git a/build b/build
index b196741..1d5efea 100755
--- a/build
+++ b/build
@@ -1,7 +1,19 @@
#!/usr/bin/make -f
+# POSIX.1-2008:
+# If the pathname does not begin with a '/' it shall be treated as relative to
+# the current working directory of the process, not relative to the directory
+# containing the makefile.
+include ../source.mk
+include ../targets.mk
+
base_version = $$(printf '%s\n' '$(OPK_SOURCE)' | sed 's/^gcc-//')
+target = $$(printf '%s' '$@' | sed 's/^[a-z]*-//')
+
+builddir = obj-$(target)
+destdir = dest-$(target)
+
# /usr/lib/<target>/ld.so is a symbolic link for use by GCC to find the system's
# dynamic linker. It should be provided by the development package of any
# standard C library.
@@ -42,11 +54,6 @@ bootstrap1_opts = \
--disable-libmudflap \
--disable-libssp
-include ../targets.mk
-target = $$(printf '%s' '$@' | sed 's/^[a-z]*-//')
-builddir = obj-$(target)
-destdir = dest-$(target)
-
nop:
@:
@@ -280,9 +287,3 @@ $(installcross_targets):
oh-installfiles -d "$(destdir)"
install: $(install_targets)
-
-# POSIX.1-2008:
-# If the pathname does not begin with a '/' it shall be treated as relative to
-# the current working directory of the process, not relative to the directory
-# containing the makefile.
-include ../source.mk