From d89c3cab7255da434ed582bce822e45ae8cea5df Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 27 Apr 2013 12:27:56 -0400 Subject: build: Better organize some things. --- (limited to 'build') 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//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 -- cgit v0.9.1