tools: add scons (patch by Dave Taht)
[openwrt/openwrt.git] / include / scons.mk
1 SCONS_VARS = \
2 CC="$(TARGET_CC)" \
3 CXX="$(TARGET_CXX)" \
4 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
5 CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
6 CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
7 LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
8 DESTDIR="$(PKG_INSTALL_DIR)"
9
10 define Build/Configure/Default
11 (cd $(PKG_BUILD_DIR); \
12 $(SCONS_VARS) \
13 scons \
14 prefix=/usr \
15 $(SCONS_OPTIONS) \
16 install \
17 )
18 endef
19
20 define Build/Compile
21 endef