summaryrefslogtreecommitdiff
path: root/zap/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'zap/GNUmakefile')
-rw-r--r--zap/GNUmakefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/zap/GNUmakefile b/zap/GNUmakefile
index e162c98..025f156 100644
--- a/zap/GNUmakefile
+++ b/zap/GNUmakefile
@@ -19,6 +19,7 @@ stdcxx := c++14
endif
OBJ_BS_TRAP := source/any/bs/trap.o
+OBJ_MATH_ABS := source/any/math/abs.o
OBJ_MATH_DIVMOD := source/any/math/divmod.o
OBJ_MEM_CP := source/any/mem/cp.o
OBJ_MEM_EQ := source/any/mem/eq.o
@@ -34,17 +35,25 @@ OBJ_STR_UTF8ENC := source/any/str/utf8enc.o
OBJ_STR_UTF8ENCLEN := source/any/str/utf8enclen.o
OBJ_STR_WIN1252DEC := source/any/str/win1252dec.o
OBJ_STR_WIN1252ENC := source/any/str/win1252enc.o
+OBJ_SYS_SYSCALL := source/any/sys/syscall.o
ifeq "$(arch)" "amd64"
OBJ_BS_TRAP := source/$(arch)/bs/trap.o
OBJ_MEM_CP := source/$(arch)/mem/cp.o
OBJ_MEM_FILL := source/$(arch)/mem/fill.o
+OBJ_SYS_SYSCALL := source/$(arch)/sys/syscall.o
+else ifeq "$(arch)" "arm"
+OBJ_SYS_SYSCALL := source/$(arch)/sys/syscall.o
else ifeq "$(arch)" "arm64"
OBJ_MEM_CP := source/$(arch)/mem/cp.o
+OBJ_SYS_SYSCALL := source/$(arch)/sys/syscall.o
+else ifeq "$(arch)" "ia32"
+OBJ_SYS_SYSCALL := source/$(arch)/sys/syscall.o
endif
OBJS := \
$(OBJ_BS_TRAP) \
+ $(OBJ_MATH_ABS) \
$(OBJ_MATH_DIVMOD) \
$(OBJ_MEM_CP) \
$(OBJ_MEM_EQ) \
@@ -61,6 +70,12 @@ OBJS := \
$(OBJ_STR_WIN1252DEC) \
$(OBJ_STR_WIN1252ENC)
+ifneq "$(nosyscall)" "true"
+OBJS := \
+ $(OBJS) \
+ $(OBJ_SYS_SYSCALL)
+endif
+
LIB := libzap.a
HDRS := \
@@ -101,9 +116,13 @@ $(LIB): $(OBJS)
$(AR) r $(@) $(^)
install: $(LIB)
- mkdir -pm755 "$(HDRDIR)/zap"
+ mkdir -pm755 "$(HDRDIR)/zap/bs.d"
+ mkdir -pm755 "$(HDRDIR)/zap/sys.d"
mkdir -pm755 "$(LIBDIR)"
install -m644 "include/zap/"*".h" "$(HDRDIR)/zap"
+ install -m644 "include/zap/"*".hh" "$(HDRDIR)/zap"
+ install -m644 "include/zap/bs.d/"*".h" "$(HDRDIR)/zap/bs.d"
+ install -m644 "include/zap/sys.d/"*".h" "$(HDRDIR)/zap/sys.d"
install -m755 "$(LIB)" "$(LIBDIR)"
clean: