1CFLAGS_M32=-m32 2CFLAGS_M64=-m64 3ASM_INCLUDES = -I$(SRC_PATH)codec/common/x86/ 4ifneq ($(ENABLE64BIT),) 5ifeq ($(ENABLE64BIT), Yes) 6ARCH = x86_64 7else 8ARCH = x86 9endif 10endif 11ifeq ($(ARCH), x86_64) 12CFLAGS += $(CFLAGS_M64) 13LDFLAGS += $(CFLAGS_M64) 14ASMFLAGS_PLATFORM = -DUNIX64 15else 16CFLAGS += $(CFLAGS_M32) 17LDFLAGS += $(CFLAGS_M32) 18ASMFLAGS_PLATFORM = -DX86_32 19ifeq ($(ENABLEPIC), Yes) 20CFLAGS += -DX86_32_PICASM 21CXXFLAGS += -DX86_32_PICASM 22ASMFLAGS += -DX86_32_PICASM 23endif 24endif 25ifeq ($(USE_ASM),Yes) 26CFLAGS += -DX86_ASM 27ifneq ($(ARCH), x86_64) 28CFLAGS += -DX86_32_ASM 29endif 30ASM_ARCH = x86 31endif 32ASM = nasm 33ASMFLAGS += $(ASMFLAGS_PLATFORM) 34