Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB := $(obj)libnpe.o |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 11 | |
Marek Vasut | 3c2fe86 | 2012-07-21 05:02:26 +0000 | [diff] [blame] | 12 | LOCAL_CFLAGS += -I$(TOPDIR)/drivers/net/npe/include -DCONFIG_IXP425_COMPONENT_ETHDB -D__linux |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 13 | CFLAGS += $(LOCAL_CFLAGS) |
Michael Schwingen | 3154c3d | 2011-05-23 00:00:01 +0200 | [diff] [blame] | 14 | CPPFLAGS += $(LOCAL_CFLAGS) # needed for depend |
Mike Frysinger | 00d5bfd | 2009-07-19 15:17:03 -0400 | [diff] [blame] | 15 | HOSTCFLAGS += $(LOCAL_CFLAGS) |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 16 | |
Jean-Christophe PLAGNIOL-VILLARD | d7db51b | 2009-01-30 09:45:23 +0100 | [diff] [blame] | 17 | COBJS-$(CONFIG_IXP4XX_NPE) := npe.o \ |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 18 | 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 Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 60 | IxNpeMh.o \ |
| 61 | IxNpeMhConfig.o \ |
| 62 | IxNpeMhReceive.o \ |
| 63 | IxNpeMhSend.o \ |
| 64 | IxNpeMhSolicitedCbMgr.o \ |
| 65 | IxNpeMhUnsolicitedCbMgr.o |
| 66 | |
Jean-Christophe PLAGNIOL-VILLARD | d7db51b | 2009-01-30 09:45:23 +0100 | [diff] [blame] | 67 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 68 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 69 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 70 | |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 71 | all: $(LIB) |
| 72 | |
Jean-Christophe PLAGNIOL-VILLARD | d7db51b | 2009-01-30 09:45:23 +0100 | [diff] [blame] | 73 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 74 | $(call cmd_link_o_target, $(OBJS)) |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 75 | |
| 76 | ######################################################################### |
| 77 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 78 | # defines $(obj).depend target |
| 79 | include $(SRCTREE)/rules.mk |
Wolfgang Denk | 4646d2a | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 80 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 81 | sinclude $(obj).depend |
| 82 | |
| 83 | ######################################################################### |