diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -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 |