3 MAKEFLAGS
+= --no-print-directory
6 CFLAGS
+= -Wall
-Wundef
-Wstrict-prototypes
-Wno-trigraphs
-fno-strict-aliasing
-fno-common
-Werror-implicit-function-declaration
7 CFLAGS
+= -I
/lib
/modules
/`uname -r`/build
/include
11 OBJS
= iw.o interface.o
info.o station.o util.o mpath.o
13 ifneq ($(shell which cgcc
),"")
21 all: verify_config
$(ALL
)
24 $(CC
) $(CFLAGS
) $(OBJS
) -o iw
$(LDFLAGS
)
27 @
$(MAKE
) all CC
="REAL_CC=$(CC) CHECK=\"sparse -Wall\" cgcc"
33 @if
[ ! -r .config
]; then \
34 echo
'Building iw requires a configuration file'; \
35 echo
'(.config). cp defconfig .config and edit.'; \