2 # Basic and crude Makefile...
6 PROGS= iwconfig iwlist iwpriv iwspy iwgetid
8 # Installation directory. By default, go in local.
9 # Distributions should probably use /usr/sbin, but they probably know better...
10 INSTALL_DIR= /usr/local/sbin
12 # This is our header selection. Try to hide the mess and the misery :-(
13 # Please choose *only one* of the define...
15 # Kernel headers 2.4.X + Glibc 2.2 - Mandrake 8.0 */
16 #HEADERS= -DGLIBC22_HEADERS
18 # Kernel headers 2.0.X + Glibc 2.0 - Debian 2.0, RH 5
19 # Kernel headers 2.2.X + Glibc 2.1 - Debian 2.2, RH 6.1
20 # Kernel headers 2.4.X + Glibc 2.1 - Debian 2.2 upgraded, RH 7.0
21 HEADERS= -DGLIBC_HEADERS
23 # Kernel headers 2.2.X + Glibc 2.0 - Debian 2.1
24 #HEADERS= -DKLUDGE_HEADERS
26 # Kernel headers 2.0.X + libc5 - old systems
27 #HEADERS= -DLIBC5_HEADERS
29 # Use private copy of Wireless Extension definition instead of the
30 # system wide one in /usr/include/linux. Use with care.
31 # Can be used to create multiple versions of the tools on the same system
32 # for multiple kernels or get around broken distributions.
33 #WE_HEADER= -DPRIVATE_WE_HEADER
36 # ------------ End of config --------------
41 RM_CMD = $(RM) *.BAK *.bak *.o ,* *~ *.a
43 CFLAGS=-O2 -Wall $(HEADERS) $(WE_HEADER)
52 iwconfig: iwconfig.o iwcommon.o
53 $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
55 iwlist: iwlist.o iwcommon.o
56 $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
58 iwpriv: iwpriv.o iwcommon.o
59 $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
61 iwspy: iwspy.o iwcommon.o
62 $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
65 $(CC) $(CFLAGS) -o $@ $^
67 # So crude but so effective ;-)
69 cp $(PROGS) $(INSTALL_DIR)
79 makedepend -s "# DO NOT DELETE" -- $(INCLUDES) -- $(SRCS)