Mercurial > mxe-octave
comparison src/binutils.mk @ 3012:100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
BUILD_TOOLS_PREFIX variables in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 10:31:04 -0400 |
parents | 4f9b72cf7ee7 |
children | bcc26ffe9a0f |
comparison
equal
deleted
inserted
replaced
3011:75e142c0004b | 3012:100e618349f7 |
---|---|
18 endef | 18 endef |
19 | 19 |
20 ifneq ($(USE_SYSTEM_GCC),yes) | 20 ifneq ($(USE_SYSTEM_GCC),yes) |
21 define $(PKG)_BUILD | 21 define $(PKG)_BUILD |
22 # install config.guess for general use | 22 # install config.guess for general use |
23 $(INSTALL) -d '$(PREFIX)/bin' | 23 $(INSTALL) -d '$(BUILD_TOOLS_PREFIX)/bin' |
24 $(INSTALL) -m755 '$(1)/config.guess' '$(PREFIX)/bin/' | 24 $(INSTALL) -m755 '$(1)/config.guess' '$(BUILD_TOOLS_PREFIX)/bin/' |
25 | 25 |
26 # install target-specific autotools config file | 26 # install target-specific autotools config file |
27 $(INSTALL) -d '$(PREFIX)/$(TARGET)/share' | 27 $(INSTALL) -d '$(HOST_PREFIX)/share' |
28 echo "ac_cv_build=`$(1)/config.guess`" > '$(PREFIX)/$(TARGET)/share/config.site' | 28 echo "ac_cv_build=`$(1)/config.guess`" > '$(HOST_PREFIX)/share/config.site' |
29 | 29 |
30 cd '$(1)' && ./configure \ | 30 cd '$(1)' && ./configure \ |
31 --target='$(TARGET)' \ | 31 --target='$(TARGET)' \ |
32 --build="`config.guess`" \ | 32 --build="`config.guess`" \ |
33 --prefix='$(PREFIX)' \ | 33 --prefix='$(BUILD_TOOLS_PREFIX)' \ |
34 --with-gcc \ | 34 --with-gcc \ |
35 --with-gnu-ld \ | 35 --with-gnu-ld \ |
36 --with-gnu-as \ | 36 --with-gnu-as \ |
37 --disable-nls \ | 37 --disable-nls \ |
38 $(ENABLE_SHARED_OR_STATIC) \ | 38 $(ENABLE_SHARED_OR_STATIC) \ |
39 --disable-werror | 39 --disable-werror |
40 $(MAKE) -C '$(1)' -j '$(JOBS)' | 40 $(MAKE) -C '$(1)' -j '$(JOBS)' |
41 $(MAKE) -C '$(1)' -j 1 install | 41 $(MAKE) -C '$(1)' -j 1 install |
42 $(MAKE) -C '$(1)' -j 1 DESTDIR=$(PREFIX)/../cross-tools install | 42 $(MAKE) -C '$(1)' -j 1 DESTDIR=$(TOP_DIR)/cross-tools install |
43 endef | 43 endef |
44 else | 44 else |
45 define $(PKG)_BUILD | 45 define $(PKG)_BUILD |
46 endef | 46 endef |
47 endif | 47 endif |