shithub: riscv

ref: 37a8fc6168b3bf82df198fb20be5a8a53996187c
dir: /sys/src/cmd/audio/flacenc/mkfile/

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

TARGET=flacenc

CC=pcc
CFLAGS=-I. -I../libFLAC -I../libFLAC/FLAC -D_POSIX_SOURCE -D_BSD_EXTENSION -DPlan9 -c

%.$O: %.c
	$CC $CFLAGS -c $stem.c

$O.%: %.$O ../libFLAC/libFLAC.a$O
	$CC -o $target $prereq

all:V: $O.$TARGET

clean:V:
	rm -f *.[$OS] [$OS].$TARGET

install:V: $O.$TARGET
	cp $O.$TARGET $BIN/$TARGET

test:VQ:
	# nothing