makefile 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ########################################################################
  2. # $Id:: makefile 814 2008-06-19 19:57:32Z pdurgesh $
  3. #
  4. # Project: Standard compile makefile
  5. #
  6. # Description:
  7. # Makefile
  8. #
  9. ########################################################################
  10. # Software that is described herein is for illustrative purposes only
  11. # which provides customers with programming information regarding the
  12. # products. This software is supplied "AS IS" without any warranties.
  13. # NXP Semiconductors assumes no responsibility or liability for the
  14. # use of the software, conveys no license or title under any patent,
  15. # copyright, or mask work right to the product. NXP Semiconductors
  16. # reserves the right to make changes in the software without
  17. # notification. NXP Semiconductors also make no representation or
  18. # warranty that such application will be suitable for the specified
  19. # use without further testing or modification.
  20. ########################################################################
  21. ########################################################################
  22. #
  23. # Get the project root
  24. #
  25. ########################################################################
  26. PROJ_ROOT = $(CURDIR)/../..
  27. ########################################################################
  28. #
  29. # Pick up the configuration file in make section
  30. #
  31. ########################################################################
  32. include ../../makesection/makeconfig
  33. ########################################################################
  34. #
  35. # Pick up the default build rules
  36. #
  37. ########################################################################
  38. include $(PROJ_ROOT)/makesection/makerule/LPC/make.LPC.$(TOOL)
  39. ########################################################################
  40. #
  41. # Pick up the assembler and C source files in the directory
  42. #
  43. ########################################################################
  44. include $(PROJ_ROOT)/makesection/makerule/common/make.rules.ftypes
  45. AFLAGS +=-I../include
  46. CFLAGS +=-I../include
  47. ########################################################################
  48. #
  49. # Build the library
  50. #
  51. ########################################################################
  52. $(TARGET_FWLIB_LIB) : .vias $(OBJS) $(FWLIB_LIB_DIR)
  53. $(ECHO) "creating" $(FWLIB) "Firmware support package library"
  54. $(AR) $@ $(OBJS)
  55. $(FWLIB_LIB_DIR):
  56. $(MKDIR) $(FWLIB_LIB_DIR)
  57. # delete all targets this Makefile can make
  58. lib_clean:
  59. -@$(RM) $(TARGET_FWLIB_LIB)
  60. # delete all targets this Makefile can make and all built libraries
  61. # linked in
  62. lib_realclean:
  63. -@$(RM) $(FWLIB_LIB_DIR)/*.a
  64. -@$(RMDIR) $(FWLIB_LIB_DIR)
  65. clean: lib_clean
  66. realclean: lib_realclean
  67. ########################################################################
  68. #
  69. # Compile the code base
  70. #
  71. ########################################################################
  72. include $(PROJ_ROOT)/makesection/makerule/common/make.rules.build
  73. .PHONY: all lib_clean lib_realclean