2 # 802.1x Authenticator (Network Access Server) Embedded Linux Build Makefile
4 # Copyright (C) 2010, Broadcom Corporation
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
19 CFLAGS
+= -DNAS_WKSP_BUILD_NAS_AUTH
20 CFLAGS
+= -DNAS_WKSP_BUILD_NAS_SUPPL
21 CFLAGS
+= -DNAS_RADIUS
22 CFLAGS
+= -DNAS_WKSP_ON_DEMAND
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
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
43 nas
: $(NASOBJS
) $(UTLOBJS
)
44 $(CC
) -o
$@
$^
$(LDFLAGS
)
48 install -D nas
$(INSTALLDIR
)/usr
/sbin
/nas
49 $(STRIP
) $(INSTALLDIR
)/usr
/sbin
/nas