📄 makefile.legacy
字号:
# legacy Makefile for mpg123# copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1# see COPYING and AUTHORS files in distribution or http://mpg123.de# initially written by Michael Hipp# Where to install binary and manpage on "make install":PREFIX=/usr/localBINDIR=$(PREFIX)/binMANDIR=$(PREFIX)/manMAKEFILE=Makefile.legacyMAKE=make -f $(MAKEFILE)SECTION=1PENTIUM_DECODE=decode_i586#PENTIUM_DECODE=decode_i586_dither######################################################### ############ End of user-configurable settings ############ #########################################################nothing-specified: @echo "" @echo "You must specify the system which you want to compile for:" @echo "" @echo "make linux-help Linux, more help" @echo "make freebsd-help FreeBSD more help" @echo "make solaris Solaris 2.x (tested: 2.5 and 2.5.1) using SparcWorks cc" @echo "make solaris-gcc Solaris 2.x using GNU cc (somewhat slower)" @echo "make solaris-gcc-esd Solaris 2.x using gnu cc and Esound as audio output" @echo "make solaris-x86-gcc-oss Solaris with (commercial) OSS" @echo "make solaris-gcc-nas Solaris with gcc and NAS" @echo "make sunos SunOS 4.x (tested: 4.1.4)" @echo "make hpux HP/UX 9/10, /7xx" @echo "make hpux-gcc HP/UX 9/10, /7xx using GCC cc" @echo "make hpux-alib HP/UX with ALIB audio" @echo "make sgi SGI running IRIX" @echo "make sgi-gcc SGI running IRIX using GCC cc" @echo "make dec DEC Unix (tested: 3.2 and 4.0), OSF/1" @echo "make ultrix DEC Ultrix (tested: 4.4)" @echo "make aix-gcc IBM AIX using gcc (tested: 4.2)" @echo "make aix-xlc IBM AIX using xlc (tested: 4.3)" @echo "make os2 IBM OS/2" @echo "make netbsd NetBSD" @echo "make netbsd-x86 NetBSD with i486 optimization" @echo "make netbsd-rt NetBSD with realtime priority code" @echo "make netbsd-x86-rt NetBSD with i486 optimization and realtime priority code" @echo "make bsdos BSDI BSD/OS" @echo "make bsdos4 BSDI BSD/OS 4.0" @echo "make bsdos-nas BSDI BSD/OS with NAS support" @echo "make mint MiNT on Atari" @echo "make generic try this one if your system isn't listed above" @echo "" @echo "Please read the file INSTALL for additional information." @echo ""linux-help: @echo "" @echo "There are several Linux flavours. Choose one:" @echo "" @echo "make linux Linux (any supported architecture)" @echo "make linux-x86 Linux/x86 (i386, Pentium or unlisted platform)" @echo "make linux-i486 Linux/x86 (optimized for i486 ONLY)" @echo "make linux-3dnow Linux/x86, output 3DNow!(TM) optimized code" @echo "make linux-mmx Linux/x86, output MMX optimized code" @echo " (ie with 'as' from binutils-2.9.1.0.19a or later)" @echo "make linux-alpha make with minor changes for ALPHA-Linux" @echo "" @echo "The folowing targets need testing and some are likely (or even known) not to work atm!" @echo "" @echo "make linux-ppc LinuxPPC or MkLinux for the PowerPC" @echo "make linux-m68k Linux/m68k (Amiga, Atari) using OSS" @echo "make linux-arm Linux on the StrongArm" @echo "make linux-hppa Linux/hppa HP-PARISC using OSS" @echo "make linux-nas Linux, output to Network Audio System" @echo "make linux-ppc-nas Linux/PPC, output to Network Audio System" @echo "make linux-sparc Linux/Sparc" @echo "make linux-alsa Linux with ALSA sound driver" @echo "make linux-mips-alsa Linux/MIPS with ALSA sound driver" @echo "" @echo "make linux-esd Linux, output to EsounD" @echo "make linux-alpha-esd Linux/Alpha, output to EsounD" @echo "make linux-ppc-esd Linux/PPC, output to EsounD" @echo " NOTE: esd flavours require libaudiofile, available from: " @echo " http://www.68k.org/~michael/audiofile/" @echo "" @echo "Please read the file INSTALL for additional information." @echo ""freebsd-help: @echo "" @echo "There are several FreeBSD flavours. Choose one:" @echo "" @echo "make freebsd FreeBSD" @echo "make freebsd-esd FreeBSD, output to EsounD" @echo "" @echo "Please read the file INSTALL for additional information." @echo ""linux-devel: $(MAKE) OBJECTS="decode_i386.o dct64_i386.o audio_oss.o" \ CC=gcc \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DREAL_IS_FLOAT -DLINUX -Wall -g -mcpu=i486 \ -DREAD_MMAP -DOSS -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-profile: $(MAKE) OBJECTS="decode_i386.o dct64_i386.o audio_oss.o" \ CC=gcc LDFLAGS="$(LDFLAGS) -pg" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DREAL_IS_FLOAT -DLINUX -Wall -pg -mcpu=i486 \ -DREAD_MMAP -DOSS -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux: $(MAKE) CC=gcc \ OBJECTS="decode.o dct64.o audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DREAL_IS_FLOAT -DLINUX -O2 -funroll-all-loops \ -DOSS -DHAVE_TERMIOS \ -Wall" \ mpg123-makelinux-x86: $(MAKE) CC=gcc \ OBJECTS="decode_i386.o dct64_i386.o $(PENTIUM_DECODE).o \ audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX \ -DOSS -DHAVE_TERMIOS\ -Wall -O2 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-make#just for development... gapless will be on for normal builds when stablelinux-x86-gapless: $(MAKE) CC=gcc \ OBJECTS="decode_i386.o dct64_i386.o $(PENTIUM_DECODE).o \ audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DGAPLESS -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX \ -DOSS -DHAVE_TERMIOS\ -Wall -O2 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-mmx: $(MAKE) CC=gcc \ OBJECTS="decode_i386.o dct64_mmx.o tabinit_mmx.o decode_mmx.o \ audio_oss.o term.o" \ CFLAGS=" $(CFLAGS) -DUSE_MMX -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT \ -DLINUX -DOSS -DHAVE_TERMIOS\ -Wall -O2 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-mmap: $(MAKE) CC=gcc \ OBJECTS="decode_i386.o dct64_i386.o $(PENTIUM_DECODE).o \ audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX \ -DREAD_MMAP -DOSS -DHAVE_TERMIOS\ -Wall -O2 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-3dnow: $(MAKE) CC=gcc \ OBJECTS="decode_i386.o decode_3dnow.o dct64_3dnow.o \ dct64_i386.o dct36_3dnow.o getcpuflags.o \ equalizer_3dnow.o $(PENTIUM_DECODE).o audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DI386_ASSEM -DREAL_IS_FLOAT -DPENTIUM_OPT -DLINUX \ -DUSE_3DNOW -DOSS -DHAVE_TERMIOS\ -Wall -O2 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-i486: $(MAKE) CC=gcc \ OBJECTS="decode_i386.o dct64_i386.o \ decode_i486.o dct64_i486.o audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DI386_ASSEM -DREAL_IS_FLOAT -DI486_OPT -DLINUX \ -DOSS -DHAVE_TERMIOS\ -Wall -O2 -march=i486 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-esd: $(MAKE) CC=gcc \ AUDIO_LIB="-lesd -laudiofile" \ OBJECTS="decode_i386.o dct64_i386.o $(PENTIUM_DECODE).o \ audio_esd.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DI386_ASSEM -DREAL_IS_FLOAT -DPENTIUM_OPT -DLINUX \ -DOSS -DUSE_ESD -DHAVE_TERMIOS\ -Wall -O2 -mcpu=i486 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-alsa: $(MAKE) CC=gcc \ AUDIO_LIB="-lasound" \ OBJECTS="decode_i386.o dct64_i386.o $(PENTIUM_DECODE).o \ audio_alsa.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DI386_ASSEM -DREAL_IS_FLOAT -DPENTIUM_OPT -DLINUX \ -DALSA -DHAVE_TERMIOS\ -Wall -O2 -mcpu=i486 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-mips-alsa: $(MAKE) CC=gcc \ AUDIO_LIB="-lasound" \ OBJECTS="decode.o dct64.o audio_alsa.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DREAL_IS_FLOAT -DLINUX -DALSA \ -DHAVE_TERMIOS -Wall -O2 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-alpha: $(MAKE) CC=gcc OBJECTS="decode.o dct64.o audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DLINUX -DOSS -DHAVE_TERMIOS -Wall -O2 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math \ -Wall -O6 -DHAVE_MMAP" \ mpg123-makelinux-alpha-esd: $(MAKE) CC=gcc \ AUDIO_LIB="-lesd -laudiofile" \ OBJECTS="decode.o dct64.o audio_esd.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DLINUX -DOSS -DHAVE_TERMIOS -Wall -O2 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math \ -Wall -O6 -DHAVE_MMAP" \ mpg123-make#linux-ppc:# $(MAKE) CC=gcc LDFLAGS= \# OBJECTS="decode.o dct64.o audio_oss.o" \# CFLAGS="-DREAL_IS_FLOAT -DLINUX -Wall -O2 -mcpu=ppc \# -DOSS -DPPC_ENDIAN \# -fomit-frame-pointer -funroll-all-loops \# -finline-functions -ffast-math" \# mpg123-make#linux-ppc-esd:# $(MAKE) CC=gcc LDFLAGS= \# AUDIO_LIB="-lesd -laudiofile" \# OBJECTS="decode.o dct64.o audio_esd.o" \# CFLAGS="-DREAL_IS_FLOAT -DLINUX -Wall -O2 -mcpu=ppc \# -DOSS -DPPC_ENDIAN \# -fomit-frame-pointer -funroll-all-loops \# -finline-functions -ffast-math" \# mpg123-makelinux-ppc: $(MAKE) CC=gcc \ OBJECTS="decode.o dct64.o audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DREAL_IS_FLOAT -DLINUX -Wall -O2 -mcpu=powerpc \ -DOSS -DHAVE_TERMIOS\ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-ppc-esd: $(MAKE) CC=gcc \ AUDIO_LIB="-lesd -laudiofile" \ OBJECTS="decode.o dct64.o audio_esd.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DREAL_IS_FLOAT -DLINUX -Wall -O2 -mcpu=powerpc \ -DOSS -DHAVE_TERMIOS\ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-ppc-nas: $(MAKE) CC=gcc LDFLAGS='-L/usr/X11R6/lib' \ AUDIO_LIB='-laudio -lXau -lXt' \ OBJECTS='decode.o dct64.o audio_nas.o term.o' \ CFLAGS="-I/usr/X11R6/include -DREAL_IS_FLOAT -DLINUX -DNAS -DTERM_CONTROL \ -Wall -O2 -mcpu=powerpc \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-sparc: $(MAKE) CC=gcc \ OBJECTS="decode.o dct64.o audio_sun.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DREAL_IS_FLOAT -DHAVE_MMAP -DSPARCLINUX -Wall -O2 \ -DHAVE_TERMIOS \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-hppa: $(MAKE) CC=gcc \ OBJECTS="decode.o dct64.o audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DREAL_IS_FLOAT -DLINUX -Wall -O2 \ -DHAVE_TERMIOS \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-m68k: $(MAKE) CC=gcc OBJECTS="decode.o dct64.o audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DREAL_IS_FLOAT -DLINUX -DHAVE_TERMIOS \ -DOSS -DOSS_BIG_ENDIAN -Wall -O2 -m68040 \ -fomit-frame-pointer -funroll-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-arm: $(MAKE) CC=gcc OBJECTS="decode.o dct64.o audio_oss.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -DREAL_IS_FIXED -DLINUX -DHAVE_TERMIOS \ -DOSS -Wall -O6 -mtune=xscale \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-makelinux-nas: $(MAKE) CC=gcc LDFLAGS="$(LDFLAGS) -L/usr/X11R6/lib" \ AUDIO_LIB="-laudio -lXau -lXt" \ OBJECTS="decode_i386.o dct64_i386.o audio_nas.o term.o" \ CFLAGS="$(CFLAGS) $(CPPFLAGS) -I/usr/X11R6/include \ -DI386_ASSEM -DREAL_IS_FLOAT -DLINUX -DNAS \ -DHAVE_TERMIOS \ -Wall -O2 -mcpu=i486 \ -fomit-frame-pointer -funroll-all-loops \ -finline-functions -ffast-math" \ mpg123-make#### the following defines are for experimental use ... ##CFLAGS='-pg -DI386_ASSEM -DREAL_IS_FLOAT -DLINUX -Wall -O2 -mcpu=i486 -funroll-all-loops -finline-functions -ffast-math' mpg123#CFLAGS='-DI386_ASSEM -O2 -DREAL_IS_FLOAT -DLINUX -Wall -g'#CFLAGS='-DI386_ASSEM -DREAL_IS_FLOAT -DLINUX -Wall -O2 -mcpu=i486 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -malign-loops=2 -malign-jumps=2 -malign-functions=2'freebsd: $(MAKE) CC=cc \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -