blob: d13391bf9440757d8c613816a10873a3fa09ff3b [file] [log] [blame]
Wolfgang Denkba94a1b2006-05-30 15:56:48 +02001#
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
24include $(TOPDIR)/config.mk
25
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010026LIB := $(obj)libnpe.o
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020027
Marek Vasut61e12982012-07-21 05:02:26 +000028LOCAL_CFLAGS += -I$(TOPDIR)/drivers/net/npe/include -DCONFIG_IXP425_COMPONENT_ETHDB -D__linux
Marian Balakowiczf9328632006-09-01 19:49:50 +020029CFLAGS += $(LOCAL_CFLAGS)
Michael Schwingen3053fa02011-05-23 00:00:01 +020030CPPFLAGS += $(LOCAL_CFLAGS) # needed for depend
Mike Frysinger9aef7382009-07-19 15:17:03 -040031HOSTCFLAGS += $(LOCAL_CFLAGS)
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020032
Jean-Christophe PLAGNIOL-VILLARD1b017ba2009-01-30 09:45:23 +010033COBJS-$(CONFIG_IXP4XX_NPE) := npe.o \
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020034 miiphy.o \
35 IxOsalBufferMgt.o \
36 IxOsalIoMem.o \
37 IxOsalOsCacheMMU.o \
38 IxOsalOsMsgQ.o \
39 IxOsalOsSemaphore.o \
40 IxOsalOsServices.o \
41 IxOsalOsThread.o \
42 IxEthAcc.o \
43 IxEthAccCommon.o \
44 IxEthAccControlInterface.o \
45 IxEthAccDataPlane.o \
46 IxEthAccMac.o \
47 IxEthAccMii.o \
48 IxEthDBAPI.o \
49 IxEthDBAPISupport.o \
50 IxEthDBCore.o \
51 IxEthDBEvents.o \
52 IxEthDBFeatures.o \
53 IxEthDBFirewall.o \
54 IxEthDBHashtable.o \
55 IxEthDBLearning.o \
56 IxEthDBMem.o \
57 IxEthDBNPEAdaptor.o \
58 IxEthDBPortUpdate.o \
59 IxEthDBReports.o \
60 IxEthDBSearch.o \
61 IxEthDBSpanningTree.o \
62 IxEthDBUtil.o \
63 IxEthDBVlan.o \
64 IxEthDBWiFi.o \
65 IxEthMii.o \
66 IxQMgrAqmIf.o \
67 IxQMgrDispatcher.o \
68 IxQMgrInit.o \
69 IxQMgrQAccess.o \
70 IxQMgrQCfg.o \
71 IxFeatureCtrl.o \
72 IxNpeDl.o \
73 IxNpeDlImageMgr.o \
74 IxNpeDlNpeMgr.o \
75 IxNpeDlNpeMgrUtils.o \
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020076 IxNpeMh.o \
77 IxNpeMhConfig.o \
78 IxNpeMhReceive.o \
79 IxNpeMhSend.o \
80 IxNpeMhSolicitedCbMgr.o \
81 IxNpeMhUnsolicitedCbMgr.o
82
Jean-Christophe PLAGNIOL-VILLARD1b017ba2009-01-30 09:45:23 +010083SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
84OBJS := $(addprefix $(obj),$(COBJS-y))
85SOBJS := $(addprefix $(obj),$(SOBJS))
Marian Balakowiczf9328632006-09-01 19:49:50 +020086
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020087all: $(LIB)
88
Jean-Christophe PLAGNIOL-VILLARD1b017ba2009-01-30 09:45:23 +010089$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010090 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020091
92#########################################################################
93
Marian Balakowiczf9328632006-09-01 19:49:50 +020094# defines $(obj).depend target
95include $(SRCTREE)/rules.mk
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020096
Marian Balakowiczf9328632006-09-01 19:49:50 +020097sinclude $(obj).depend
98
99#########################################################################