blob: a982678d893270b0a9aeb2f36299f509dad09ac5 [file] [log] [blame]
Wolfgang Denk4646d2a2006-05-30 15:56:48 +02001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Wolfgang Denk4646d2a2006-05-30 15:56:48 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB := $(obj)libnpe.o
Wolfgang Denk4646d2a2006-05-30 15:56:48 +020011
Marek Vasut3c2fe862012-07-21 05:02:26 +000012LOCAL_CFLAGS += -I$(TOPDIR)/drivers/net/npe/include -DCONFIG_IXP425_COMPONENT_ETHDB -D__linux
Marian Balakowiczd62379d2006-09-01 19:49:50 +020013CFLAGS += $(LOCAL_CFLAGS)
Michael Schwingen3154c3d2011-05-23 00:00:01 +020014CPPFLAGS += $(LOCAL_CFLAGS) # needed for depend
Mike Frysinger00d5bfd2009-07-19 15:17:03 -040015HOSTCFLAGS += $(LOCAL_CFLAGS)
Wolfgang Denk4646d2a2006-05-30 15:56:48 +020016
Jean-Christophe PLAGNIOL-VILLARDd7db51b2009-01-30 09:45:23 +010017COBJS-$(CONFIG_IXP4XX_NPE) := npe.o \
Wolfgang Denk4646d2a2006-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 Denk4646d2a2006-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-VILLARDd7db51b2009-01-30 09:45:23 +010067SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
68OBJS := $(addprefix $(obj),$(COBJS-y))
69SOBJS := $(addprefix $(obj),$(SOBJS))
Marian Balakowiczd62379d2006-09-01 19:49:50 +020070
Wolfgang Denk4646d2a2006-05-30 15:56:48 +020071all: $(LIB)
72
Jean-Christophe PLAGNIOL-VILLARDd7db51b2009-01-30 09:45:23 +010073$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010074 $(call cmd_link_o_target, $(OBJS))
Wolfgang Denk4646d2a2006-05-30 15:56:48 +020075
76#########################################################################
77
Marian Balakowiczd62379d2006-09-01 19:49:50 +020078# defines $(obj).depend target
79include $(SRCTREE)/rules.mk
Wolfgang Denk4646d2a2006-05-30 15:56:48 +020080
Marian Balakowiczd62379d2006-09-01 19:49:50 +020081sinclude $(obj).depend
82
83#########################################################################