Makefile
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. include $(APPS)/Rules.elinux
  2. all:
  3. install: src/bluetooth.c include/btcommon.h
  4. ln -sfn ../../arch/cris/drivers/bluetooth/include ../../../../include/linux/bluetooth
  5. if ! grep arch/cris/drivers/bluetooth/src/Config.in ../Config.in; then 
  6.   echo '' >> ../Config.in; 
  7.   echo '# The following if statement was added by arch/cris/drivers/bluetooth/Makefile' >> ../Config.in; 
  8.   echo 'if [ "$$CONFIG_ETRAX_SERIAL" = "y" ]; then' >> ../Config.in; 
  9.   echo '  source arch/cris/drivers/bluetooth/src/Config.in' >> ../Config.in; 
  10.   echo 'fi' >> ../Config.in; 
  11. fi
  12. if ! grep bluetooth/src/bt.o ../Makefile; then 
  13.   perl -pi -e "s:include:# The following two lines were added by arch/cris/drivers/bluetooth/Makefilenobj-\$$(CONFIG_BLUETOOTH)                 += bluetooth/src/bt.onsubdir-\$$(CONFIG_BLUETOOTH)              += bluetooth/srcnninclude:" ../Makefile; 
  14. fi
  15. clean:
  16. src/bluetooth.c:
  17. @echo "You must install the OpenBT src directory before install can be done here!"
  18. @exit 1
  19. include/btcommon.h:
  20. @echo "You must install the OpenBT include directory before install can be done here!"
  21. @exit 1