From 73bf608efc913589992903ebdbab1da5c115b49d Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 30 Jul 2014 15:37:50 +0200 Subject: MacOSX : Correct issue of compiling assembly files in both 32-bit and 64-bit mode. Modify Makefiles to correct compilation process using latest Xcode. --- src/Volume/Volume.make | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/Volume/Volume.make') diff --git a/src/Volume/Volume.make b/src/Volume/Volume.make index 25c18441..212b1474 100644 --- a/src/Volume/Volume.make +++ b/src/Volume/Volume.make @@ -7,6 +7,7 @@ # OBJS := +OBJSEX := OBJS += Cipher.o OBJS += EncryptionAlgorithm.o OBJS += EncryptionMode.o @@ -24,12 +25,13 @@ OBJS += VolumeLayout.o OBJS += VolumePassword.o OBJS += VolumePasswordCache.o -ifeq "$(CPU_ARCH)" "x86" +ifeq "$(PLATFORM)" "MacOSX" + OBJSEX += ../Crypto/Aes_asm.oo + OBJS += ../Crypto/Aes_hw_cpu.o + OBJS += ../Crypto/Aescrypt.o +else ifeq "$(CPU_ARCH)" "x86" OBJS += ../Crypto/Aes_x86.o OBJS += ../Crypto/Aes_hw_cpu.o - ifeq "$(PLATFORM)" "MacOSX" - OBJS += ../Crypto/Aescrypt.o - endif else ifeq "$(CPU_ARCH)" "x64" OBJS += ../Crypto/Aes_x64.o OBJS += ../Crypto/Aes_hw_cpu.o @@ -53,4 +55,13 @@ OBJS += ../Common/SecurityToken.o VolumeLibrary: Volume.a +ifeq "$(PLATFORM)" "MacOSX" +../Crypto/Aes_asm.oo: ../Crypto/Aes_x86.asm ../Crypto/Aes_x64.asm + @echo Assembling $(