aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw/mkfile
blob: 6bcf18909e7d274c5ce24048c15895c0dffb1d85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<$PLAN9/src/mkhdr
<|osxvers

TARG=devdraw

SHORTLIB=draw memdraw

WSYSOFILES=\
	devdraw.$O\
	latin1.$O\
	mouseswap.$O\
	srv.$O\
	winsize.$O\

<|sh ./mkwsysrules.sh

OFILES=$WSYSOFILES

HFILES=\
	bigarrow.h\
	devdraw.h\
	glendapng.h\
	latin1.h\
	$WSYSHFILES\

<$PLAN9/src/mkone

$O.drawclient: drawclient.$O
	$LD -o $target $prereq

$O.mklatinkbd: mklatinkbd.$O
	$LD -o $target $prereq

latin1.$O: latin1.h

latin1.h: $PLAN9/lib/keyboard $O.mklatinkbd
	./$O.mklatinkbd -r $PLAN9/lib/keyboard | sed 's/, }/ }/' >$target

$O.macargv: $MACARGV
	$LD -o $target $prereq

%.$O: %.m
	$CC $CFLAGS $OBJCFLAGS -fobjc-arc -o $target $stem.m

CLEANFILES=$O.devdraw $O.macargv $O.drawclient $O.mklatinkbd latin1.h

install: mklatinkbd.install
install:Q:
	if [ $MACARGV ]; then
		mk $MKFLAGS macargv.install
	fi