Broadcom SDK and wireless driver: another attempt to update to ver. 5.10.147.0
[tomato.git] / release / src-rt / emf / igs / igs.mk
blob562b0d0f92636f13d65d2eced8b77485dd65363c
2 # Copyright (C) 2009, Broadcom Corporation
3 # All Rights Reserved.
4 #
5 # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
6 # the contents of this file may not be disclosed to third parties, copied
7 # or duplicated in any form, in whole or in part, without the prior
8 # written permission of Broadcom Corporation.
10 # $Id: igs.mk,v 1.1 2007/03/17 03:14:54 Exp $
13 CROSS_COMPILE = mipsel-linux-
14 KSRC := $(shell /bin/pwd)/../../..
15 KINCLUDE = -I$(KSRC)/include -I$(KSRC)/linux/linux/include/asm/gcc \
16 -I$(KSRC)/router/emf/igs -I$(KSRC)/router/emf/emf
18 CC := $(CROSS_COMPILE)gcc
19 LD := $(CROSS_COMPILE)ld
21 OFILES = igsc.o igs_linux.o igsc_sdb.o osl_linux.o
23 IFLAGS1 = -I$(KSRC)/linux/linux/include
24 IFLAGS2 = $(KINCLUDE)
25 DFLAGS += -DMODULE -D__KERNEL__ $(IFLAGS) -G 0 -mno-abicalls \
26 -fno-pic -pipe -gstabs+ -mcpu=r4600 -mips2 -Wa,--trap \
27 -m4710a0kern -mlong-calls -fno-common -nostdinc \
28 -iwithprefix include
31 IGSFLAGS += -DBCMINTERNAL -DBCMDBG
33 WFLAGS = $(IFLAGS1) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
34 -fno-strict-aliasing -fno-common -fomit-frame-pointer $(IFLAGS2)
36 CFLAGS += $(WFLAGS) $(DFLAGS) $(IGSFLAGS)
38 TARGETS = igs.o
40 all: $(TARGETS)
42 igs.o: $(OFILES)
43 $(LD) -r -o $@ $(OFILES)
45 clean:
46 rm -f $(OFILES) $(TARGETS) *~
48 .PHONY: all clean
50 include $(KSRC)/linux/linux/Rules.make