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

Linux/Unix编程

开发平台:

Unix_Linux

  1. #
  2. # Makefile for the memory technology device drivers.
  3. #
  4. # Note! Dependencies are done automagically by 'make dep', which also
  5. # removes any old dependencies. DON'T put your own dependencies here
  6. # unless it's something special (ie not a .c file).
  7. #
  8. # Note 2! The CFLAGS definitions are now inherited from the
  9. # parent makes..
  10. #
  11. # $Id: Makefile,v 1.65 2002/03/22 07:10:34 dwmw2 Exp $
  12. obj-y           += chips/chipslink.o maps/mapslink.o 
  13. devices/devlink.o nand/nandlink.o
  14. obj-m           :=
  15. obj-n           :=
  16. obj-            :=
  17. O_TARGET := mtdlink.o
  18. export-objs := mtdcore.o mtdpart.o redboot.o bootldr.o afs.o mtdconcat.o
  19. list-multi := nftl.o
  20. mod-subdirs := 
  21. subdir-y := chips maps devices nand
  22. subdir-m := $(subdir-y)
  23. #                       *** BIG UGLY NOTE ***
  24. #
  25. # The shiny new inter_module_xxx has introduced yet another ugly link
  26. # order dependency, which I'd previously taken great care to avoid.
  27. # We now have to ensure that the chip drivers are initialised before the
  28. # map drivers, and that the doc200[01] drivers are initialised before
  29. # docprobe.
  30. #
  31. # We'll hopefully merge the doc200[01] drivers and docprobe back into
  32. # a single driver some time soon, but the CFI drivers are going to have
  33. # to stay like that.
  34. #
  35. # Urgh.
  36. # dwmw2 21/11/0
  37. # Core functionality.
  38. obj-$(CONFIG_MTD) += mtdcore.o
  39. obj-$(CONFIG_MTD_CONCAT) += mtdconcat.o
  40. obj-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
  41. obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o
  42. obj-$(CONFIG_MTD_BOOTLDR_PARTS) += bootldr.o
  43. obj-$(CONFIG_MTD_AFS_PARTS) += afs.o
  44. # 'Users' - code which presents functionality to userspace.
  45. obj-$(CONFIG_MTD_CHAR) += mtdchar.o
  46. obj-$(CONFIG_MTD_BLOCK) += mtdblock.o
  47. obj-$(CONFIG_MTD_BLOCK_RO) += mtdblock_ro.o
  48. obj-$(CONFIG_FTL) += ftl.o
  49. obj-$(CONFIG_NFTL) += nftl.o
  50. nftl-objs := nftlcore.o nftlmount.o
  51. include $(TOPDIR)/Rules.make
  52. nftl.o: $(nftl-objs)
  53. $(LD) -r -o $@ $(nftl-objs)