1<$PLAN9/src/mkhdr
2<|sh ../devdraw/mkwsysrules.sh	# for X11
3
4RIOFILES=\
5	client.$O\
6	color.$O\
7	cursor.$O\
8	error.$O\
9	event.$O\
10	grab.$O\
11	key.$O\
12	main.$O\
13	manage.$O\
14	menu.$O\
15
16CFLAGS=$CFLAGS -DDEBUG
17HFILES=dat.h fns.h
18
19TARG=rio winwatch xshove
20
21# need to add lib64 when it exists (on x86-64), but
22# Darwin complains about the nonexistant directory
23# Bug in mk? "$L64 -lXext" gobbles the space, so
24# add trailing slash.
25L64=`[ -d $X11/lib64 ] && echo 64; echo`
26LDFLAGS=-L$X11/lib$L64/ -lXext -lX11
27
28<|sh mkriorules.sh
29
30$O.rio: $RIOFILES
31
32CFLAGS=$CFLAGS -DSHAPE -DDEBUG_EV -DDEBUG
33
34$O.xevents: xevents.$O printevent.$O
35	$LD -o $target $prereq $LDFLAGS
36
37xevents.$O printevent.$O: printevent.h
38
39error.$O: showevent/ShowEvent.c
40
41$O.xshove: xshove.$O
42	$LD -o $O.xshove xshove.$O -lX11
43