a2f7849d99
- use update-patches
28 lines
980 B
Plaintext
28 lines
980 B
Plaintext
$OpenBSD: patch-Makefile,v 1.1 2003/04/14 09:46:06 avsm Exp $
|
|
--- Makefile.orig Wed Jan 5 01:47:50 1994
|
|
+++ Makefile Mon Apr 14 10:41:07 2003
|
|
@@ -1,10 +1,18 @@
|
|
-ALL : musicin musicout
|
|
+CFLAGS += -DPREFIX=\"${PREFIX}\"
|
|
|
|
-CFLAGS = -O2
|
|
-LDFLAGS=
|
|
+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) $(CFLAGS) -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) $(CFLAGS) -o musicout musicout.o common.o decode.o subs.o -lm
|
|
+
|
|
+clean:
|
|
+ rm -f *.core *.o musicin musicout
|
|
+
|
|
+install:
|
|
+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/lib/mpegaudio/tables
|
|
+ ${BSD_INSTALL_DATA} tables/* ${PREFIX}/lib/mpegaudio/tables
|
|
+ ${BSD_INSTALL_PROGRAM} musicin ${PREFIX}/bin/mpeg_musicin
|
|
+ ${BSD_INSTALL_PROGRAM} musicout ${PREFIX}/bin/mpeg_musicout
|