blob: a982678d893270b0a9aeb2f36299f509dad09ac5 [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#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denkba94a1b2006-05-30 15:56:48 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB := $(obj)libnpe.o
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020011
Marek Vasut61e12982012-07-21 05:02:26 +000012LOCAL_CFLAGS += -I$(TOPDIR)/drivers/net/npe/include -DCONFIG_IXP425_COMPONENT_ETHDB -D__linux
Marian Balakowiczf9328632006-09-01 19:49:50 +020013CFLAGS += $(LOCAL_CFLAGS)
Michael Schwingen3053fa02011-05-23 00:00:01 +020014CPPFLAGS += $(LOCAL_CFLAGS) # needed for depend
Mike Frysinger9aef7382009-07-19 15:17:03 -040015HOSTCFLAGS += $(LOCAL_CFLAGS)
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020016
Jean-Christophe PLAGNIOL-VILLARD1b017ba2009-01-30 09:45:23 +010017COBJS-$(CONFIG_IXP4XX_NPE) := npe.o \
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020018 miiphy.o \
19 IxOsalBufferMgt.o \
20 IxOsalIoMem.o \
21 IxOsalOsCacheMMU.o \
22 IxOsalOsMsgQ.o \
23 IxOsalOsSemaphore.o \
24 IxOsalOsServices.o \
25 IxOsalOsThread.o \
26 IxEthAcc.o \
27 IxEthAccCommon.o \
28 IxEthAccControlInterface.o \
29 IxEthAccDataPlane.o \
30 IxEthAccMac.o \
31 IxEthAccMii.o \
32 IxEthDBAPI.o \
33 IxEthDBAPISupport.o \
34 IxEthDBCore.o \
35 IxEthDBEvents.o \
36 IxEthDBFeatures.o \
37 IxEthDBFirewall.o \
38 IxEthDBHashtable.o \
39 IxEthDBLearning.o \
40 IxEthDBMem.o \
41 IxEthDBNPEAdaptor.o \
42 IxEthDBPortUpdate.o \
43 IxEthDBReports.o \
44 IxEthDBSearch.o \
45 IxEthDBSpanningTree.o \
46 IxEthDBUtil.o \
47 IxEthDBVlan.o \
48 IxEthDBWiFi.o \
49 IxEthMii.o \
50 IxQMgrAqmIf.o \
51 IxQMgrDispatcher.o \
52 IxQMgrInit.o \
53 IxQMgrQAccess.o \
54 IxQMgrQCfg.o \
55 IxFeatureCtrl.o \
56 IxNpeDl.o \
57 IxNpeDlImageMgr.o \
58 IxNpeDlNpeMgr.o \
59 IxNpeDlNpeMgrUtils.o \
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020060 IxNpeMh.o \
61 IxNpeMhConfig.o \
62 IxNpeMhReceive.o \
63 IxNpeMhSend.o \
64 IxNpeMhSolicitedCbMgr.o \
65 IxNpeMhUnsolicitedCbMgr.o
66
Jean-Christophe PLAGNIOL-VILLARD1b017ba2009-01-30 09:45:23 +010067SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
68OBJS := $(addprefix $(obj),$(COBJS-y))
69SOBJS := $(addprefix $(obj),$(SOBJS))
Marian Balakowiczf9328632006-09-01 19:49:50 +020070
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020071all: $(LIB)
72
Jean-Christophe PLAGNIOL-VILLARD1b017ba2009-01-30 09:45:23 +010073$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010074 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020075
76#########################################################################
77
Marian Balakowiczf9328632006-09-01 19:49:50 +020078# defines $(obj).depend target
79include $(SRCTREE)/rules.mk
Wolfgang Denkba94a1b2006-05-30 15:56:48 +020080
Marian Balakowiczf9328632006-09-01 19:49:50 +020081sinclude $(obj).depend
82
83#########################################################################