1999-08-17 06:55:06 +00:00
|
|
|
--- Makefile.orig Wed Jun 16 02:09:06 1999
|
1999-11-11 05:41:25 +00:00
|
|
|
+++ Makefile Thu Nov 11 10:21:40 1999
|
1999-06-15 04:28:02 +00:00
|
|
|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
|
|
# Where to install binary and manpage on "make install":
|
|
|
|
|
|
|
|
-PREFIX=/usr/local
|
|
|
|
+#PREFIX=/usr/local
|
|
|
|
BINDIR=$(PREFIX)/bin
|
|
|
|
MANDIR=$(PREFIX)/man
|
|
|
|
SECTION=1
|
1999-11-11 05:41:25 +00:00
|
|
|
@@ -285,35 +285,42 @@
|
1999-02-01 09:01:09 +00:00
|
|
|
#CFLAGS='-DI386_ASSEM -O2 -DREAL_IS_FLOAT -DLINUX -Wall -g'
|
|
|
|
#CFLAGS='-DI386_ASSEM -DREAL_IS_FLOAT -DLINUX -Wall -O2 -m486 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -malign-loops=2 -malign-jumps=2 -malign-functions=2'
|
|
|
|
|
1999-03-24 13:23:30 +00:00
|
|
|
+CC ?= cc
|
|
|
|
+LDFLAGS =
|
|
|
|
+CFLAGS ?=-O4 -m486
|
1999-08-05 05:53:54 +00:00
|
|
|
+
|
|
|
|
+.if defined(OPT_ARCH)
|
|
|
|
+.if (${OPT_ARCH} == "i486")
|
|
|
|
+ARCHOPT = -DI486_OPT
|
|
|
|
+ARCHFILES = decode_i486.o dct64_i486.o
|
|
|
|
+.elif (${OPT_ARCH} == "i586")
|
|
|
|
+ARCHOPT = -DPENTIUM_OPT
|
|
|
|
+ARCHFILES = decode_i586.o
|
|
|
|
+.endif
|
|
|
|
+.endif
|
|
|
|
+
|
1999-03-24 13:23:30 +00:00
|
|
|
+CFLAGS +=-Wall -ansi -pedantic -fomit-frame-pointer \
|
|
|
|
+ -funroll-all-loops -ffast-math -DROT_I386 \
|
|
|
|
+ -DREAD_MMAP \
|
1999-08-17 06:55:06 +00:00
|
|
|
+ -DI386_ASSEM ${ARCHOPT} -DREAL_IS_FLOAT -DUSE_MMAP -DOSS -DTERM_CONTROL
|
1999-11-11 05:41:25 +00:00
|
|
|
+
|
|
|
|
+.if defined(OPT_ESOUND)
|
|
|
|
+CFLAGS +=-I${PREFIX}/include
|
|
|
|
+LDFLAGS+=-L${PREFIX}/lib
|
|
|
|
+.endif
|
1999-02-01 09:01:09 +00:00
|
|
|
+
|
1998-11-16 16:19:01 +00:00
|
|
|
freebsd:
|
1999-03-24 13:23:30 +00:00
|
|
|
- $(MAKE) CC=cc LDFLAGS= \
|
1999-08-05 05:53:54 +00:00
|
|
|
- OBJECTS='decode_i386.o dct64_i386.o audio_oss.o' \
|
1999-03-24 13:23:30 +00:00
|
|
|
- CFLAGS='-Wall -ansi -pedantic -O4 -m486 -fomit-frame-pointer \
|
|
|
|
- -funroll-all-loops -ffast-math -DROT_I386 \
|
|
|
|
- -DREAD_MMAP \
|
1999-01-19 03:48:58 +00:00
|
|
|
- -DI386_ASSEM -DREAL_IS_FLOAT -DUSE_MMAP -DOSS' \
|
1999-08-05 05:53:54 +00:00
|
|
|
- mpg123-make
|
1999-08-17 06:55:06 +00:00
|
|
|
+ ${MAKE} OBJECTS='decode_i386.o ${ARCHFILES} dct64_i386.o audio_oss.o term.o' \
|
1999-08-05 05:53:54 +00:00
|
|
|
+ mpg123-make
|
|
|
|
|
|
|
|
freebsd-esd:
|
1999-11-11 05:41:25 +00:00
|
|
|
- $(MAKE) CC=cc LDFLAGS= \
|
|
|
|
- AUDIO_LIB='-lesd -laudiofile' \
|
|
|
|
- OBJECTS='decode_i386.o dct64_i386.o $(GETBITS) audio_esd.o' \
|
|
|
|
- CFLAGS='-Wall -ansi -pedantic -O4 -m486 -fomit-frame-pointer \
|
|
|
|
- -funroll-all-loops -ffast-math -DROT_I386 \
|
|
|
|
- -DREAD_MMAP \
|
|
|
|
- -DI386_ASSEM -DREAL_IS_FLOAT -DUSE_MMAP -DOSS \
|
|
|
|
- -I/usr/local/include -L/usr/local/lib \
|
|
|
|
- $(CFLAGS)' \
|
|
|
|
+ $(MAKE) AUDIO_LIB='-lesd -laudiofile' \
|
|
|
|
+ OBJECTS='decode_i386.o ${ARCHFILES} dct64_i386.o audio_esd.o term.o' \
|
1999-02-01 09:01:09 +00:00
|
|
|
mpg123-make
|
|
|
|
|
|
|
|
freebsd-frontend:
|
1999-03-24 13:23:30 +00:00
|
|
|
- $(MAKE) CC=cc LDFLAGS= \
|
1999-08-05 05:53:54 +00:00
|
|
|
- OBJECTS='decode_i386.o dct64_i386.o audio_oss.o \
|
|
|
|
+ $(MAKE) OBJECTS='decode_i386.o ${ARCHFILES} dct64_i386.o audio_oss.o \
|
1999-02-01 09:01:09 +00:00
|
|
|
control_sajber.o control_tk3play.o' \
|
1999-03-24 13:23:30 +00:00
|
|
|
- CFLAGS='-Wall -ansi -pedantic -O4 -m486 -fomit-frame-pointer \
|
|
|
|
- -funroll-all-loops -ffast-math -DROT_I386 \
|
|
|
|
- -DFRONTEND \
|
1999-02-01 09:01:09 +00:00
|
|
|
- -DI386_ASSEM -DREAL_IS_FLOAT -DUSE_MMAP -DOSS' \
|
|
|
|
$(FRONTEND)
|
|
|
|
|
1998-11-16 16:19:01 +00:00
|
|
|
|
1999-11-11 05:41:25 +00:00
|
|
|
@@ -552,7 +559,7 @@
|
|
|
|
@ $(MAKE) CFLAGS='$(CFLAGS)' BINNAME=mpg123m mpg123
|
|
|
|
|
|
|
|
mpg123-make:
|
|
|
|
- @ $(MAKE) CFLAGS='$(CFLAGS)' BINNAME=mpg123 mpg123
|
|
|
|
+ @ $(MAKE) LDFLAGS='$(LDFLAGS)' CFLAGS='$(CFLAGS)' BINNAME=mpg123 mpg123
|
|
|
|
|
|
|
|
mpg123: mpg123.o common.o $(OBJECTS) decode_2to1.o decode_4to1.o \
|
|
|
|
tabinit.o audio.o layer1.o layer2.o layer3.o buffer.o \
|