$NetBSD: patch-aa,v 1.1.1.1 2002/05/12 00:54:04 wiz Exp $ --- Makefile.orig Wed Jan 5 02:47:50 1994 +++ Makefile @@ -1,10 +1,21 @@ ALL : musicin musicout -CFLAGS = -O2 -LDFLAGS= +CFLAGS += -DPREFIX=\"${PREFIX}\" + +all: musicin musicout musicin: musicin.o common.o encode.o subs.o psy.o tonal.o - cc $(LDFLAGS) -o musicin musicin.o common.o encode.o subs.o psy.o tonal.o -lm + ${CC} -o musicin musicin.o common.o encode.o subs.o psy.o tonal.o -lm musicout: musicout.o common.o decode.o subs.o - cc $(LDFLAGS) musicout.o common.o decode.o subs.o -o musicout -lm + ${CC} musicout.o common.o decode.o subs.o -o musicout -lm + +clean: + rm -f *.core *.o musicin musicout + +install: + ${BSD_INSTALL_PROGRAM} musicin ${PREFIX}/bin/mpeg_musicin + ${BSD_INSTALL_PROGRAM} musicout ${PREFIX}/bin/mpeg_musicout + ${BSD_INSTALL_DATA_DIR} ${PREFIX}/lib/mpegaudio/tables + ${BSD_INSTALL_DATA} tables/* ${PREFIX}/lib/mpegaudio/tables/ +