]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - Makefile
iw: fix android build
[thirdparty/iw.git] / Makefile
index 5bf955d4f2685556cd8a6c8fdf31dd749efdbd7e..58755dc49b3e07fc84aecb515343f7bfcc8f889e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -101,9 +101,11 @@ version.c: version.sh $(patsubst %.o,%.c,$(VERSION_OBJS)) nl80211.h iw.h Makefil
        @$(NQ) ' CC  ' $@
        $(Q)$(CC) $(CFLAGS) -c -o $@ $<
 
+ifeq ($(IW_ANDROID_BUILD),)
 iw:    $(OBJS)
        @$(NQ) ' CC  ' iw
        $(Q)$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o iw
+endif
 
 check:
        $(Q)$(MAKE) all CC="REAL_CC=$(CC) CHECK=\"sparse -Wall\" cgcc"