comparison Makefile @ 3005:c154d525c70e

use config.guess to set TARGET for native builds
author John W. Eaton <jwe@octave.org>
date Thu, 30 May 2013 13:17:57 -0400
parents 7d692ab680ab
children dabfd7db980c
comparison
equal deleted inserted replaced
3004:b994e523cfac 3005:c154d525c70e
15 # installed on your system. 15 # installed on your system.
16 USE_SYSTEM_GCC := no 16 USE_SYSTEM_GCC := no
17 #USE_SYSTEM_GCC := yes 17 #USE_SYSTEM_GCC := yes
18 18
19 # Should match what config.guess prints for your system. 19 # Should match what config.guess prints for your system.
20 TARGET := i686-pc-mingw32 20 # If cross compiling, you must set it manually.
21 #TARGET := x86_64-unknown-linux-gnu 21 ifeq ($(MXE_NATIVE_BUILD),yes)
22 TARGET := `tools/config.guess`
23 else
24 TARGET := i686-pc-mingw32
25 endif
22 26
23 # Enable shared or static libs, or perhaps both. At least one 27 # Enable shared or static libs, or perhaps both. At least one
24 # package uses --with instead of --enable. Probably it doesn't 28 # package uses --with instead of --enable. Probably it doesn't
25 # make sense to disable both... 29 # make sense to disable both...
26 BUILD_SHARED := yes 30 BUILD_SHARED := yes