OSDN Git Service

v19
[android-x86/external-wireless-tools.git] / wireless_tools / Makefile
1 CC = gcc
2 RM = rm -f
3
4 RM_CMD = $(RM) *.BAK *.bak *.o ,* *~ *.a
5
6 CFLAGS=-O2 -Wall
7
8 PROGS=iwconfig iwpriv iwspy
9 LIBS=-lm
10
11 all:: $(PROGS)
12
13 .c.o:
14         $(CC) $(CFLAGS) -c $<
15
16 iwconfig: iwconfig.o iwcommon.o
17         gcc -O2 -o $@ $^ $(LIBS)
18
19 iwpriv: iwpriv.o iwcommon.o
20         gcc -O2 -o $@ $^ $(LIBS)
21
22 iwspy: iwspy.o iwcommon.o
23         gcc -O2 -o $@ $^ $(LIBS)
24
25 clean::
26         $(RM_CMD) 
27
28 depend::
29         makedepend -s "# DO NOT DELETE" -- $(INCLUDES) -- $(SRCS)
30 # DO NOT DELETE