dialog.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Copyright (c) 2006-2011 Nokia Corporation and/or its subsidiary(-ies).
  3. # All rights reserved.
  4. # This component and the accompanying materials are made available
  5. # under the terms of the License "Eclipse Public License v1.0"
  6. # which accompanies this distribution, and is available
  7. # at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8. #
  9. # Initial Contributors:
  10. # Nokia Corporation - initial contribution.
  11. #
  12. # Contributors:
  13. #
  14. # Description:
  15. # Utility makefile
  16. #
  17. # Build dialog for SBSv2 installer
  18. RAPTOR_DIALOG_VER:=1.1-20080819
  19. DIALOG_SOURCEDIR:=$(OUTPUTPATH)/dialog-$(RAPTOR_DIALOG_VER)
  20. DIALOG_TAR:=$(SBS_HOME)/util/ext/dialog-$(RAPTOR_DIALOG_VER).tar.gz
  21. DIALOG_TAR_URL:=http://projects.developer.nokia.com/raptor/files/dialog-$(RAPTOR_DIALOG_VER).tar.gz http://rene.europe.nokia.com/~raptorbot/files/dialog-$(RAPTOR_DIALOG_VER).tar.gz
  22. define b_dialog
  23. .PHONY:: dialog
  24. all:: dialog
  25. dialog: $(INSTALLROOT)/bin/dialog
  26. $(INSTALLROOT)/bin/dialog: $(DIALOG_TAR)
  27. rm -rf $(DIALOG_SOURCEDIR) && \
  28. cd $(OUTPUTPATH) && \
  29. tar -xzf $(DIALOG_TAR) && \
  30. ( \
  31. cd $(DIALOG_SOURCEDIR) && \
  32. CFLAGS="-O3 $(GCCTUNE) -s" ./configure --prefix=$(INSTALLROOT) && \
  33. $(MAKE) -j8 && $(MAKE) install \
  34. )
  35. $(call fetch_gbzip,$(DIALOG_TAR),$(DIALOG_TAR_URL))
  36. endef
  37. $(eval $(b_dialog))