shithub: equis

ref: b76e8ecc732cb311ceee6fd6c807b7e784d3fe31
dir: /sys/src/ape/X11/lib/lbxutil/mkfile/

View raw version
X11=/sys/src/ape/X11
<$X11/config

LIB=$X11LIB/liblbxutil.a

OFILES=\
# delta \
	lbxdelta.$O\
# image \
	misc.$O\
	dpackbits.$O\
	epackbits.$O\
	dfaxg42d.$O\
	efaxg42d.$O\
# lbx_zlib \
	lbx_zlib_io.$O\
	lbx_zlib.$O\
	reqstats.$O\

CLEANFILES=\
	$cputype.mkg3states\
	g3states.h\

</sys/src/cmd/mksyslib

CFLAGS=-c $X11CFLAGS -I.

%.$O: delta/%.c
	$CC $CFLAGS delta/$stem.c

%.$O: image/%.c
	$CC $CFLAGS image/$stem.c

%.$O: lbx_zlib/%.c
	$CC $CFLAGS lbx_zlib/$stem.c

g3states.h:D: $cputype.mkg3states 
	./$cputype.mkg3states -c > g3states.h

$cputype.mkg3states: image/mkg3states.c
	objtype=$cputype $CC -B -D_POSIX_SOURCE -D_BSD_EXTENSION -o $target $prereq

dfaxg42d.$O: g3states.h