mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add asm routines
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
# GNU makefile
|
# GNU makefile
|
||||||
#
|
#
|
||||||
|
|
||||||
|
SUFFIXES = .nasm
|
||||||
|
.nasm.o:
|
||||||
|
$(NASM) -f elf -d ELF -i i386/ $< -o $@
|
||||||
|
|
||||||
lib_LTLIBRARIES = libFLAC.la
|
lib_LTLIBRARIES = libFLAC.la
|
||||||
if DEBUG
|
if DEBUG
|
||||||
CFLAGS += @CFLAGS@ -DFLAC__PRECOMPUTE_PARTITION_SUMS -DFLAC__OVERFLOW_DETECT
|
CFLAGS += @CFLAGS@ -DFLAC__PRECOMPUTE_PARTITION_SUMS -DFLAC__OVERFLOW_DETECT
|
||||||
@@ -9,10 +13,31 @@ else
|
|||||||
CFLAGS = @CFLAGS@ -DFLAC__PRECOMPUTE_PARTITION_SUMS
|
CFLAGS = @CFLAGS@ -DFLAC__PRECOMPUTE_PARTITION_SUMS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if FLaC__CPU_IA32
|
||||||
|
if FLaC__HAS_NASM
|
||||||
libFLAC_la_SOURCES = \
|
libFLAC_la_SOURCES = \
|
||||||
bitbuffer.c \
|
bitbuffer.c \
|
||||||
bitmath.c \
|
bitmath.c \
|
||||||
crc.c \
|
crc.c \
|
||||||
|
cpu.c \
|
||||||
|
encoder.c \
|
||||||
|
encoder_framing.c \
|
||||||
|
file_decoder.c \
|
||||||
|
fixed.c \
|
||||||
|
format.c \
|
||||||
|
lpc.c \
|
||||||
|
md5.c \
|
||||||
|
seek_table.c \
|
||||||
|
stream_decoder.c \
|
||||||
|
i386/cpu_asm.nasm \
|
||||||
|
i386/fixed_asm.nasm \
|
||||||
|
i386/lpc_asm.nasm
|
||||||
|
else
|
||||||
|
libFLAC_la_SOURCES = \
|
||||||
|
bitbuffer.c \
|
||||||
|
bitmath.c \
|
||||||
|
crc.c \
|
||||||
|
cpu.c \
|
||||||
encoder.c \
|
encoder.c \
|
||||||
encoder_framing.c \
|
encoder_framing.c \
|
||||||
file_decoder.c \
|
file_decoder.c \
|
||||||
@@ -22,3 +47,20 @@ libFLAC_la_SOURCES = \
|
|||||||
md5.c \
|
md5.c \
|
||||||
seek_table.c \
|
seek_table.c \
|
||||||
stream_decoder.c
|
stream_decoder.c
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
libFLAC_la_SOURCES = \
|
||||||
|
bitbuffer.c \
|
||||||
|
bitmath.c \
|
||||||
|
crc.c \
|
||||||
|
cpu.c \
|
||||||
|
encoder.c \
|
||||||
|
encoder_framing.c \
|
||||||
|
file_decoder.c \
|
||||||
|
fixed.c \
|
||||||
|
format.c \
|
||||||
|
lpc.c \
|
||||||
|
md5.c \
|
||||||
|
seek_table.c \
|
||||||
|
stream_decoder.c
|
||||||
|
endif
|
||||||
|
|||||||
@@ -3,13 +3,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
LIB_NAME = libFLAC
|
LIB_NAME = libFLAC
|
||||||
DEFINES = -DFLAC__PRECOMPUTE_PARTITION_SUMS -DFLAC__ALIGN_MALLOC_DATA
|
DEFINES = -DFLAC__CPU_IA32 -DFLAC__HAS_NASM -DFLAC__PRECOMPUTE_PARTITION_SUMS -DFLAC__ALIGN_MALLOC_DATA
|
||||||
INCLUDES = -I./include -I../../include
|
INCLUDES = -I./include -I../../include
|
||||||
DEBUG_CFLAGS = -DFLAC__OVERFLOW_DETECT
|
DEBUG_CFLAGS = -DFLAC__OVERFLOW_DETECT
|
||||||
|
|
||||||
OBJS = \
|
OBJS = \
|
||||||
bitbuffer.o \
|
bitbuffer.o \
|
||||||
bitmath.o \
|
bitmath.o \
|
||||||
|
cpu.o \
|
||||||
crc.o \
|
crc.o \
|
||||||
encoder.o \
|
encoder.o \
|
||||||
encoder_framing.o \
|
encoder_framing.o \
|
||||||
@@ -20,7 +21,10 @@ OBJS = \
|
|||||||
md5.o \
|
md5.o \
|
||||||
memory.o \
|
memory.o \
|
||||||
seek_table.o \
|
seek_table.o \
|
||||||
stream_decoder.o
|
stream_decoder.o \
|
||||||
|
i386/cpu_asm.o \
|
||||||
|
i386/fixed_asm.o \
|
||||||
|
i386/lpc_asm.o
|
||||||
|
|
||||||
include ../../build/lib.mk
|
include ../../build/lib.mk
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user