OSDN Git Service

v20
[android-x86/external-wireless-tools.git] / wireless_tools / xwireless.make
1 # Makefile for Xwireless
2 CC = gcc
3 RM = rm -f
4
5 RM_CMD = $(RM) *.BAK *.bak *.o ,* *~ *.a
6
7 INCLUDES =      $(SYS_INCLUDES) $(LOCAL_INCLUDES)
8 LIBRARIES =     $(LOCAL_LIBRARIES) $(SYS_LIBRARIES)
9 LIBPATH = $(SYS_LIBPATH) $(LOCAL_LIBPATH)
10
11 #
12 # System stuff
13 #
14 SYS_INCLUDES =  -I/usr/include  -I/usr/X11R6/include
15 SYS_LIBRARIES = -lXaw -lXmu -lXt -lXext  -lSM -lICE -lX11       
16 SYS_LIBPATH = -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib
17
18 #
19 # Local stuff
20 #
21 LOCAL_INCLUDES  = 
22 LOCAL_LIBRARIES = 
23 LOCAL_LIBPATH = 
24
25 XTRACFLAGS=-Wall -pipe -I.
26
27 # Uncomment these lines for a production compile
28 #CFLAGS=-O3 -m486 -fomit-frame-pointer
29 #LDFLAGS=-s
30 CFLAGS=-g
31
32 #
33 # Files to make
34 #
35 PROGS=xwireless
36
37 SRCS = $(PROGS).c
38 OBJS = $(PROGS).o
39
40 all:: $(PROGS)
41
42 xwireless: $(OBJS)
43         $(CC) $(CFLAGS) -o $@ $(OBJS) $(INCLUDES) $(LIBPATH) $(LIBRARIES) 
44
45 .c.o:
46         $(CC) $(CFLAGS) $(XTRACFLAGS) -c $(INCLUDES) -DNARROWPROTO $<
47
48 clean::
49         $(RM_CMD) 
50
51 depend::
52         makedepend -s "# DO NOT DELETE" -- $(INCLUDES) -- $(SRCS)
53 # DO NOT DELETE