shithub: treason

ref: 3f8b11515f7a9576e1eb05d209a163e0cc03b4c3
dir: /mkfile/

View raw version
</$objtype/mkfile

CFLAGS=$CFLAGS -D__plan9__ -p -D__${objtype}__\
 -I../dav1d/include/dav1d -I../dav1d/src/plan9\
 -I../libvpx/vpx\
 -I../openh264/codec -I../openh264/codec/api/svc -I../openh264/codec/common/inc -I../openh264/codec/decoder/core/inc

TARG=treason
BIN=/$objtype/bin
CLEANFILES=$TARG.gz

HFILES=\
	decoder.h\
	frame.h\
	misc.h\
	stream.h\

OFILES=\
	decoder.$O\
	decoder_av1.$O\
	decoder_h264.$O\
	decoder_vpx.$O\
	frame.$O\
	main.$O\
	misc.$O\
	stream.$O\
	stream_audio.$O\
	stream_ivf.$O\
	stream_mc.$O\
	stream_sub.$O\
	yuv.$O\

default:V:	all

release:V: $TARG.gz

../opus:
	mkdir -p ../opus
	cd ../opus
	for(o in opus libopusenc opusfile opus-tools)
		git/clone https://github.com/qwx9/$o

$TARG.gz: ../opus
	disk/mkfs -a -s .. proto | gzip -9 > $target
	du -hs $target

</sys/src/cmd/mkone