~ft/aacdec

65c09c021d39fd35afd6f41e66a32057719bd1e6 — Sigrid Solveig Haflínudóttir 6 months ago f04dced
do not install libfaad, build arch-specific archive and use it in the header file instead
3 files changed, 4 insertions(+), 11 deletions(-)

M frontend/mkfile
M include/neaacdec.h
M libfaad/mkfile
M frontend/mkfile => frontend/mkfile +1 -1
@@ 1,7 1,7 @@
</$objtype/mkfile

TARG=aacdec
CFLAGS=$CFLAGS -p -D__plan9__
CFLAGS=$CFLAGS -I../include -p -D__plan9__
BIN=/$objtype/bin/audio

HFILES=\

M include/neaacdec.h => include/neaacdec.h +1 -1
@@ 31,7 31,7 @@
#ifndef __NEAACDEC_H__
#define __NEAACDEC_H__

#pragma	lib	"libfaad.a"
#pragma	lib	"../libfaad/libfaad.$M.a"

#ifdef __cplusplus
extern "C" {

M libfaad/mkfile => libfaad/mkfile +2 -9
@@ 1,12 1,8 @@
</$objtype/mkfile

</$objtype/mkfile
LIB=/$objtype/lib/libfaad.a
LIB=libfaad.$objtype.a
CFLAGS=$CFLAGS -I../include -DPACKAGE_VERSION="2.9.2" -p -D__plan9__

HFILES=\
	/sys/include/neaacdec.h\

OFILES=\
	bits.$O\
	cfft.$O\


@@ 47,7 43,4 @@ OFILES=\
	syntax.$O\
	tns.$O\

/sys/include/%.h:
	cp ../include/$stem.h /sys/include/$stem.h

</sys/src/cmd/mksyslib
</sys/src/cmd/mklib