shithub: treason

ref: 3d30208102fc4f2c19bad785d20a3201fa32879f
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
	hget https://github.com/qwx9/alienpatch/archive/master.tar.gz | tar zx
	for(o in opus libopusenc opusfile opus-tools){
		hget https://github.com/xiph/$o/archive/master.tar.gz | tar zx && \
		@{mv $o-master $o && cd $o && ape/patch -p0 <../alienpatch-master/$o}
	}
	cd opus-tools && \
		ape/patch -p0 <../alienpatch-master/opus-tools-defaults && \
		ape/patch -p0 <../alienpatch-master/opus-tools-seek && \
		cd ..
	rm -r alienpatch-master

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

</sys/src/cmd/mkone