Wolfgang Denk | ba94a1b | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 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 | |
| 24 | include $(TOPDIR)/config.mk |
| 25 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 26 | LIB := $(obj)libnpe.o |
Wolfgang Denk | ba94a1b | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 27 | |
Marek Vasut | 61e1298 | 2012-07-21 05:02:26 +0000 | [diff] [blame^] | 28 | LOCAL_CFLAGS += -I$(TOPDIR)/drivers/net/npe/include -DCONFIG_IXP425_COMPONENT_ETHDB -D__linux |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 29 | CFLAGS += $(LOCAL_CFLAGS) |
Michael Schwingen | 3053fa0 | 2011-05-23 00:00:01 +0200 | [diff] [blame] | 30 | CPPFLAGS += $(LOCAL_CFLAGS) # needed for depend |
Mike Frysinger | 9aef738 | 2009-07-19 15:17:03 -0400 | [diff] [blame] | 31 | HOSTCFLAGS += $(LOCAL_CFLAGS) |
Wolfgang Denk | ba94a1b | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 32 | |
Jean-Christophe PLAGNIOL-VILLARD | 1b017ba | 2009-01-30 09:45:23 +0100 | [diff] [blame] | 33 | COBJS-$(CONFIG_IXP4XX_NPE) := npe.o \ |
Wolfgang Denk | ba94a1b | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 34 | 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 Denk | ba94a1b | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 76 | IxNpeMh.o \ |
| 77 | IxNpeMhConfig.o \ |
| 78 | IxNpeMhReceive.o \ |
| 79 | IxNpeMhSend.o \ |
| 80 | IxNpeMhSolicitedCbMgr.o \ |
| 81 | IxNpeMhUnsolicitedCbMgr.o |
| 82 | |
Jean-Christophe PLAGNIOL-VILLARD | 1b017ba | 2009-01-30 09:45:23 +0100 | [diff] [blame] | 83 | SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 84 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 85 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 86 | |
Wolfgang Denk | ba94a1b | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 87 | all: $(LIB) |
| 88 | |
Jean-Christophe PLAGNIOL-VILLARD | 1b017ba | 2009-01-30 09:45:23 +0100 | [diff] [blame] | 89 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 90 | $(call cmd_link_o_target, $(OBJS)) |
Wolfgang Denk | ba94a1b | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 91 | |
| 92 | ######################################################################### |
| 93 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 94 | # defines $(obj).depend target |
| 95 | include $(SRCTREE)/rules.mk |
Wolfgang Denk | ba94a1b | 2006-05-30 15:56:48 +0200 | [diff] [blame] | 96 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 97 | sinclude $(obj).depend |
| 98 | |
| 99 | ######################################################################### |