K2.6 patches and update.
[tomato.git] / release / src-rt / wl / nas / nas / Makefile
blobc6f198cf42336b29861b4d18dc5b6213f5aee831
2 # 802.1x Authenticator (Network Access Server) Embedded Linux Build Makefile
4 # Copyright (C) 2010, Broadcom Corporation
5 # All Rights Reserved.
6 #
7 # This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
8 # the contents of this file may not be disclosed to third parties, copied
9 # or duplicated in any form, in whole or in part, without the prior
10 # written permission of Broadcom Corporation.
12 # $Id: Makefile 247479 2011-03-19 02:27:10Z simonk $
15 CFLAGS += -I.. -I$(SRCBASE)/include -I$(SRCBASE)/router/shared -Wall -Werror
17 #CFLAGS += -g -DDEBUG
18 CFLAGS += -s
19 CFLAGS += -DNAS_WKSP_BUILD_NAS_AUTH
20 CFLAGS += -DNAS_WKSP_BUILD_NAS_SUPPL
21 CFLAGS += -DNAS_RADIUS
22 CFLAGS += -DNAS_WKSP_ON_DEMAND
25 CFLAGS += -DBCMSUPPL
27 # EAPD include path
28 CFLAGS += -I$(SRCBASE)/router/eapd
30 LDFLAGS += -L$(TOP)/nvram -L$(INSTALLDIR)/nvram/usr/lib -lnvram
31 LDFLAGS += -L$(TOP)/shared -L$(INSTALLDIR)/shared/usr/lib -lshared
32 LDFLAGS += -L$(TOP)/libbcmcrypto -L$(INSTALLDIR)/libbcmcrypto/usr/lib -lbcmcrypto
34 vpath %.c $(SRCBASE)/router/nas $(SRCBASE)/shared $(SRCBASE)/router/shared
36 # build target
37 NASOBJS = mppe.o wpa.o nas.o nas_linux.o nas_wl.o nas_wksp.o
38 NASOBJS += nas_radius.o nas_wksp_radius.o
39 UTLOBJS = bcmwpa.o bcmutils.o
41 all: nas
43 nas: $(NASOBJS) $(UTLOBJS)
44 $(CC) -o $@ $^ $(LDFLAGS)
46 # install to target
47 install: all
48 install -D nas $(INSTALLDIR)/usr/sbin/nas
49 $(STRIP) $(INSTALLDIR)/usr/sbin/nas
51 # clean up mess
52 clean:
53 rm -f *.o *~ nas