summaryrefslogtreecommitdiff
path: root/zap/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'zap/GNUmakefile')
-rw-r--r--zap/GNUmakefile8
1 files changed, 7 insertions, 1 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)