malta: disable 64 builds as the userland has been broken for ages
[openwrt.git] / include / scons.mk
1 export PLATFORM=posix
2
3 SCONS_VARS = \
4         CC="$(TARGET_CC_NOCACHE)" \
5         CXX="$(TARGET_CXX_NOCACHE)" \
6         CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
7         CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
8         CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
9         LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
10         DESTDIR="$(PKG_INSTALL_DIR)"
11
12 define Build/Configure/Default
13         (cd $(PKG_BUILD_DIR); \
14                 $(SCONS_VARS) \
15                 scons \
16                         prefix=/usr \
17                         $(SCONS_OPTIONS) \
18                 install \
19         )
20 endef
21
22 define Build/Compile
23 endef