allow coexistance of N build and AC build.
[tomato.git] / release / src-rt-6.x / emf / emf / emf.mk
blob98a47610464bf7832b3fa694b8f07f7bdb0946ca
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: emf.mk,v 1.1 2007/03/17 03:13:50 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/emf -I$(KSRC)/router/emf/igs
18 CC := $(CROSS_COMPILE)gcc
19 LD := $(CROSS_COMPILE)ld
21 OFILES = emfc.o emf_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 RMFLAGS += -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) $(RMFLAGS)
38 TARGETS = emf.o
40 all: $(TARGETS)
42 emf.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