summaryrefslogtreecommitdiff
path: root/zap/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'zap/GNUmakefile')
-rw-r--r--zap/GNUmakefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/zap/GNUmakefile b/zap/GNUmakefile
index ecc858b..9c85885 100644
--- a/zap/GNUmakefile
+++ b/zap/GNUmakefile
@@ -25,11 +25,16 @@ OBJ_MEM_UTF8ENCLEN := source/any/mem/utf8enclen.o
OBJ_MEM_WIN1252DEC := source/any/mem/win1252dec.o
OBJ_MEM_WIN1252ENC := source/any/mem/win1252enc.o
+ifeq "$(arch)" "amd64"
+OBJ_MATH_ABS := source/$(arch)/math/abs
+OBJ_MEM_CP := source/$(arch)/mem/cp.o.o
+else ifeq "$(arch)" "arm64"
+OBJ_MATH_ABS := source/$(arch)/math/abs
+OBJ_MEM_CP := source/$(arch)/mem/cp.o
+endif
+
OBJS := \
$(OBJ_BS_TRAP) \
- $(OBJ_MATH_ABS) \
- $(OBJ_MATH_DIV0) \
- $(OBJ_MATH_DIVMOD) \
$(OBJ_MEM_CP) \
$(OBJ_MEM_EQ) \
$(OBJ_MEM_FILL) \
@@ -39,7 +44,10 @@ OBJS := \
$(OBJ_MEM_UTF8ENC) \
$(OBJ_MEM_UTF8ENCLEN) \
$(OBJ_MEM_WIN1252DEC) \
- $(OBJ_MEM_WIN1252ENC)
+ $(OBJ_MEM_WIN1252ENC) \
+ $(OBJ_MATH_ABS) \
+ $(OBJ_MATH_DIV0) \
+ $(OBJ_MATH_DIVMOD)
LIB := libzap.a