plan9port/src/cmd/rio/mkfile

43 lines
775 B
Text
Raw Normal View History

2004-03-21 13:54:34 +00:00
<$PLAN9/src/mkhdr
2006-06-25 19:19:28 +00:00
<|sh ../devdraw/mkwsysrules.sh # for X11
2004-03-21 13:54:34 +00:00
2008-01-31 20:56:23 -05:00
RIOFILES=\
2004-03-21 13:54:34 +00:00
client.$O\
color.$O\
cursor.$O\
error.$O\
event.$O\
grab.$O\
key.$O\
2004-03-21 13:54:34 +00:00
main.$O\
manage.$O\
menu.$O\
CFLAGS=$CFLAGS -DDEBUG
2004-03-21 13:54:34 +00:00
HFILES=dat.h fns.h
2008-01-31 20:56:23 -05:00
TARG=rio xshove
2004-03-21 13:54:34 +00:00
2005-01-19 16:44:22 +00:00
# need to add lib64 when it exists (on x86-64), but
# Darwin complains about the nonexistant directory
2005-07-13 13:44:35 +00:00
# Bug in mk? "$L64 -lXext" gobbles the space, so
# add trailing slash.
2005-01-19 16:44:22 +00:00
L64=`[ -d $X11/lib64 ] && echo 64; echo`
2005-07-13 13:44:35 +00:00
LDFLAGS=-L$X11/lib$L64/ -lXext -lX11
2004-03-21 13:54:34 +00:00
2006-01-27 04:04:56 +00:00
<|sh mkriorules.sh
2004-03-25 23:03:57 +00:00
2008-01-31 20:56:23 -05:00
$O.rio: $RIOFILES
CFLAGS=$CFLAGS -DSHAPE -DDEBUG_EV -DDEBUG
2004-03-25 23:03:57 +00:00
$O.xevents: xevents.$O printevent.$O
$LD -o $target $prereq $LDFLAGS
xevents.$O printevent.$O: printevent.h
2004-03-25 23:03:57 +00:00
error.$O: showevent/ShowEvent.c
2008-01-31 20:56:23 -05:00
$O.xshove: xshove.$O
$LD -o $O.xshove xshove.$O -lX11