2 # Copyright (C) 2009, Broadcom Corporation
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
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 \
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
)
43 $(LD
) -r
-o
$@
$(OFILES
)
46 rm -f
$(OFILES
) $(TARGETS
) *~
50 include $(KSRC
)/linux
/linux
/Rules.make