scons.mk 496 B

1234567891011121314151617181920212223
  1. export PLATFORM=posix
  2. SCONS_VARS = \
  3. CC="$(TARGET_CC_NOCACHE)" \
  4. CXX="$(TARGET_CXX_NOCACHE)" \
  5. CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
  6. CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)" \
  7. CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
  8. LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
  9. DESTDIR="$(PKG_INSTALL_DIR)"
  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. define Build/Compile
  20. endef