summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt5
-rw-r--r--zap/GNUmakefile8
-rw-r--r--zap/include/zap/bs.h2
3 files changed, 13 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 489f3cc..0378912 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,3 +1,8 @@
+# 16.1
+
+* Add install target to makefile;
+* Fix csys usage;
+
# 16.0
* Rewrite project (the following is the current feature set);
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;