aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw/mkfile
blob: 7f0c2a2031696ea5d3037e3af16b6114966fc8bf (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
52
<$PLAN9/src/mkhdr
<|osxvers

TARG=devdraw

SHORTLIB=draw memdraw

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

<|sh ./mkwsysrules.sh

OFILES=$WSYSOFILES

HFILES=\
	devdraw.h\

<$PLAN9/src/mkone

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

$O.snarf: x11-alloc.$O x11-cload.$O x11-draw.$O x11-fill.$O x11-get.$O x11-init.$O x11-itrans.$O x11-keysym2ucs.$O x11-load.$O x11-pixelbits.$O x11-unload.$O x11-wsys.$O snarf.$O latin1.$O devdraw.$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

cocoa-screen-metal-objc.$O: cocoa-screen-metal.m
	$CC $CFLAGS $OBJCFLAGS -o $target cocoa-screen-metal.m

%-objc.$O: %.m
	$CC $CFLAGS -o $target $stem.m

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

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