1# 2# Makefile for the Broadcom IGS Layer 3# 4# Copyright (C) 2010, Broadcom Corporation. All Rights Reserved. 5# 6# Permission to use, copy, modify, and/or distribute this software for any 7# purpose with or without fee is hereby granted, provided that the above 8# copyright notice and this permission notice appear in all copies. 9# 10# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 13# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 15# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 16# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17# 18# $Id: Makefile,v 1.3 2008/08/13 20:20:16 Exp $ 19# 20 21IGSSRCDIR := ../../../../../router/emf/igs 22IGSCSRCDIR := ../../../../../emf/igs 23EMFDIR := ../../../../../router/emf 24 25IGS_OBJS := $(IGSCSRCDIR)/igsc.o $(IGSCSRCDIR)/igsc_sdb.o $(IGSSRCDIR)/igs_linux.o \ 26 $(IGSCSRCDIR)/osl_linux.o 27 28# Search for sources under src/router/emf/igs 29ifneq ($(wildcard $(src)/$(IGSSRCDIR)),) 30 EXTRA_CFLAGS += -I../../router/emf/igs -I../../router/emf/emf 31 EXTRA_CFLAGS += -I../../include/emf/igs -I../../include/emf/emf 32 igs-objs := $(IGS_OBJS) 33else 34 igs-objs := $(EMFDIR)/igs.o 35endif 36 37obj-$(CONFIG_EMF) := igs.o 38 39ifneq ($(KERNELRELEASE),) 40# kbuild part of makefile 41else 42# Normal makefile 43KERNELDIR := ../../../../../linux/linux-2.6 44all: 45 $(MAKE) -C $(KERNELDIR) M=`pwd` 46 47clean: 48 49endif 50 51clean-files += $(IGSCSRCDIR)/*.o $(IGSSRCDIR)/*.o $(IGSSRCDIR)/.*.o.cmd 52