Blob


1 <$PLAN9/src/mkhdr
2 <|sh ../devdraw/mkwsysrules.sh # for X11
4 RIOFILES=\
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\
16 CFLAGS=$CFLAGS -DDEBUG
17 HFILES=dat.h fns.h
19 TARG=rio winwatch xshove
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.
25 L64=`[ -d $X11/lib64 ] && echo 64; echo`
26 LDFLAGS=-L$X11/lib$L64/ -lXext -lX11
28 <|sh mkriorules.sh
30 $O.rio: $RIOFILES
32 CFLAGS=$CFLAGS -DSHAPE -DDEBUG_EV -DDEBUG
34 $O.xevents: xevents.$O printevent.$O
35 $LD -o $target $prereq $LDFLAGS
37 xevents.$O printevent.$O: printevent.h
39 error.$O: showevent/ShowEvent.c
41 $O.xshove: xshove.$O
42 $LD -o $O.xshove xshove.$O -lX11