2014-02-19 02:54:27 +01:00
|
|
|
CFLAGS_M32=-m32
|
|
|
|
CFLAGS_M64=-m64
|
2014-03-19 03:47:26 +01:00
|
|
|
ASM_INCLUDES = -Icodec/common/x86/
|
2014-02-19 02:54:27 +01:00
|
|
|
ifeq (, $(ENABLE64BIT))
|
|
|
|
ifeq ($(ARCH), x86_64)
|
|
|
|
ENABLE64BIT=Yes
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(ENABLE64BIT), Yes)
|
|
|
|
CFLAGS += $(CFLAGS_M64)
|
|
|
|
LDFLAGS += $(CFLAGS_M64)
|
|
|
|
ASMFLAGS_PLATFORM = -DUNIX64
|
|
|
|
else
|
|
|
|
CFLAGS += $(CFLAGS_M32)
|
|
|
|
LDFLAGS += $(CFLAGS_M32)
|
|
|
|
ASMFLAGS_PLATFORM = -DX86_32
|
|
|
|
endif
|
|
|
|
ifeq ($(USE_ASM),Yes)
|
|
|
|
CFLAGS += -DX86_ASM
|
2014-05-07 07:40:13 +02:00
|
|
|
ASM_ARCH = x86
|
2014-05-08 10:44:39 +02:00
|
|
|
endif
|
2014-02-28 09:21:48 +01:00
|
|
|
ASM = nasm
|
2014-03-05 14:02:53 +01:00
|
|
|
ASMFLAGS += $(ASMFLAGS_PLATFORM)
|