]> git.ipfire.org Git - thirdparty/iw.git/blob - Makefile
remove README reference
[thirdparty/iw.git] / Makefile
1 -include .config
2
3 CC ?= "gcc"
4 CFLAGS += -Wall -I/lib/modules/`uname -r`/build/include -g
5 LDFLAGS += -lnl
6
7 OBJS = iw.o interface.o
8 ALL = iw
9
10 all: verify_config $(ALL)
11
12 iw: $(OBJS)
13 $(CC) $(CFLAGS) $(OBJS) -o iw $(LDFLAGS)
14
15 clean:
16 rm -f iw *.o *~
17
18 verify_config:
19 @if [ ! -r .config ]; then \
20 echo 'Building iw requires a configuration file'; \
21 echo '(.config). cp defconfig .config and edit.'; \
22 exit 1; \
23 fi