add asm files for macos

dev
MITSUNARI Shigeo 8 years ago
parent 299fb3fcf9
commit 9532c0215d
  1. 6
      Makefile
  2. 3
      common.mk
  3. 13830
      src/asm/x86-64mac.bmi2.s
  4. 16313
      src/asm/x86-64mac.s

@ -30,7 +30,11 @@ all: $(MCL_LIB)
LLVM_LLC=llc$(LLVM_VER)
LLVM_OPT=opt$(LLVM_VER)
GEN_EXE=src/gen
ASM_SRC_PATH_NAME=src/asm/$(CPU)
ifeq ($(OS),mac)
ASM_SRC_PATH_NAME=src/asm/$(CPU)mac
else
ASM_SRC_PATH_NAME=src/asm/$(CPU)
endif
ifneq ($(CPU),)
ASM_SRC=$(ASM_SRC_PATH_NAME).s
endif

@ -4,7 +4,10 @@ ifeq ($(UNAME_S),Linux)
OS=Linux
endif
ifeq ($(UNAME_S),Darwin)
OS=mac
ARCH=x86_64
CFLAGS+=-I/usr/local/opt/openssl/include
LDFLAGS+=-L/usr/local/opt/openssl/lib
endif
ARCH?=$(shell arch)
ifeq ($(ARCH),x86_64)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save