x86/ep80579: switch to 3.3
[openwrt/svn-archive/archive.git] / include / scons.mk
1 export PLATFORM=posix
2
3 SCONS_VARS = \
4 CC="$(TARGET_CC)" \
5 CXX="$(TARGET_CXX)" \
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