summaryrefslogtreecommitdiff
path: root/zap
diff options
context:
space:
mode:
Diffstat (limited to 'zap')
-rw-r--r--zap/GNUmakefile8
-rw-r--r--zap/include/zap/bs.h2
2 files changed, 8 insertions, 2 deletions
diff --git a/zap/GNUmakefile b/zap/GNUmakefile
index 7567c76..ecc858b 100644
--- a/zap/GNUmakefile
+++ b/zap/GNUmakefile
@@ -69,11 +69,17 @@ CFLAGS := \
-Dzap_priv_signaldiv0
endif
-.PHONY: clean purge
+.PHONY: clean install purge
$(LIB): $(OBJS)
$(AR) r $(@) $(^)
+install: $(LIB)
+ mkdir -pm755 "$(HDRDIR)/zap"
+ mkdir -pm755 "$(LIBDIR)"
+ install -m644 "include/zap/"*".h" "$(HDRDIR)/zap"
+ install -m755 "$(LIB)" "$(LIBDIR)"
+
clean:
$(RM) $(OBJS)
diff --git a/zap/include/zap/bs.h b/zap/include/zap/bs.h
index 678b892..3d31a34 100644
--- a/zap/include/zap/bs.h
+++ b/zap/include/zap/bs.h
@@ -68,7 +68,7 @@ typedef unsigned int zap_i02;
#if \
csys_arch_arm \
|| csys_arch_ia32 \
- || (csys_os_cur == csys_os_win && csys_arch_amd64)
+ || (csys_os_win && csys_arch_amd64)
typedef unsigned long long zap_i04;
#else
typedef unsigned long zap_i04;