Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #
  2. # (C) Copyright 2006
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # See file CREDITS for list of people who contributed to this
  6. # project.
  7. #
  8. # This program is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU General Public License as
  10. # published by the Free Software Foundation; either version 2 of
  11. # the License, or (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with this program; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. # MA 02111-1307 USA
  22. #
  23. include $(TOPDIR)/config.mk
  24. LIB := $(obj)libnpe.o
  25. LOCAL_CFLAGS += -I$(TOPDIR)/arch/arm/cpu/ixp/npe/include -DCONFIG_IXP425_COMPONENT_ETHDB -D__linux
  26. CFLAGS += $(LOCAL_CFLAGS)
  27. CPPFLAGS += $(LOCAL_CFLAGS) # needed for depend
  28. HOSTCFLAGS += $(LOCAL_CFLAGS)
  29. COBJS-$(CONFIG_IXP4XX_NPE) := npe.o \
  30. miiphy.o \
  31. IxOsalBufferMgt.o \
  32. IxOsalIoMem.o \
  33. IxOsalOsCacheMMU.o \
  34. IxOsalOsMsgQ.o \
  35. IxOsalOsSemaphore.o \
  36. IxOsalOsServices.o \
  37. IxOsalOsThread.o \
  38. IxEthAcc.o \
  39. IxEthAccCommon.o \
  40. IxEthAccControlInterface.o \
  41. IxEthAccDataPlane.o \
  42. IxEthAccMac.o \
  43. IxEthAccMii.o \
  44. IxEthDBAPI.o \
  45. IxEthDBAPISupport.o \
  46. IxEthDBCore.o \
  47. IxEthDBEvents.o \
  48. IxEthDBFeatures.o \
  49. IxEthDBFirewall.o \
  50. IxEthDBHashtable.o \
  51. IxEthDBLearning.o \
  52. IxEthDBMem.o \
  53. IxEthDBNPEAdaptor.o \
  54. IxEthDBPortUpdate.o \
  55. IxEthDBReports.o \
  56. IxEthDBSearch.o \
  57. IxEthDBSpanningTree.o \
  58. IxEthDBUtil.o \
  59. IxEthDBVlan.o \
  60. IxEthDBWiFi.o \
  61. IxEthMii.o \
  62. IxQMgrAqmIf.o \
  63. IxQMgrDispatcher.o \
  64. IxQMgrInit.o \
  65. IxQMgrQAccess.o \
  66. IxQMgrQCfg.o \
  67. IxFeatureCtrl.o \
  68. IxNpeDl.o \
  69. IxNpeDlImageMgr.o \
  70. IxNpeDlNpeMgr.o \
  71. IxNpeDlNpeMgrUtils.o \
  72. IxNpeMh.o \
  73. IxNpeMhConfig.o \
  74. IxNpeMhReceive.o \
  75. IxNpeMhSend.o \
  76. IxNpeMhSolicitedCbMgr.o \
  77. IxNpeMhUnsolicitedCbMgr.o
  78. SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
  79. OBJS := $(addprefix $(obj),$(COBJS-y))
  80. SOBJS := $(addprefix $(obj),$(SOBJS))
  81. all: $(LIB)
  82. $(LIB): $(obj).depend $(OBJS)
  83. $(call cmd_link_o_target, $(OBJS))
  84. #########################################################################
  85. # defines $(obj).depend target
  86. include $(SRCTREE)/rules.mk
  87. sinclude $(obj).depend
  88. #########################################################################