shithub: riscv

ref: 0a7d581eec1319c643337d302176b3f9ba565ea5
dir: /sys/src/cmd/audio/mp3enc/mkfile/

View raw version
</$objtype/mkfile
<../config

TARG=mp3enc
OFILES=\
	VbrTag.$O\
	bitstream.$O\
	encoder.$O\
	fft.$O\
	get_audio.$O\
	id3tag.$O\
	lame.$O\
	lametime.$O\
	main.$O\
	mpglib_interface.$O\
	newmdct.$O\
	parse.$O\
	pcm.$O\
	portableio.$O\
	psymodel.$O\
	quantize.$O\
	quantize_pvt.$O\
	reservoir.$O\
	set_get.$O\
	tables.$O\
	takehiro.$O\
	timestatus.$O\
	tools.$O\
	util.$O\
	vbrquantize.$O\
	version.$O\
	vorbis_interface.$O\

# need a way to ignore this on non-386en
# LIB=/$objtype/lib/lib387.a
</sys/src/cmd/mkone

CC=pcc
CFLAGS=\
	-I.\
	-D_POSIX_SOURCE\
	-DSTDC_HEADERS\
	-DUSE_LAYER_1\
	-DUSE_LAYER_2\
	-D'CHAR_BIT=8'\
	-D'SIZEOF_DOUBLE=8'\
	-D'SIZEOF_FLOAT=4'\
	-D'SIZEOF_INT=4'\
	-D'SIZEOF_LONG=4'\
	-D'SIZEOF_LONG_DOUBLE=8'\
	-D'SIZEOF_LONG_LONG=8'\
	-D'SIZEOF_SHORT=2'\
	-D'SIZEOF_UNSIGNED_INT=4'\
	-D'SIZEOF_UNSIGNED_LONG=4'\
	-D'SIZEOF_UNSIGNED_LONG_LONG=8'\
	-D'SIZEOF_UNSIGNED_SHORT=2'\
	-+ -c
LDFLAGS= # -p

testcase.new.mp3: testcase.wav $O.out
	$O.out --nores -h testcase.wav testcase.new.mp3