URI: 
       tAdd BSD compatible makefile - safe - password protected secret keeper
  HTML git clone git://git.z3bra.org/safe.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 04c4ce005bc16a95427ef80cc32443441b7c50c7
   DIR parent 6dd1e0be30daf1a4e81b42e7bf4013313181e0f9
  HTML Author: z3bra <contactatz3bradotorg>
       Date:   Thu, 23 May 2019 18:32:21 +0200
       
       Add BSD compatible makefile
       
       Diffstat:
         A makefile                            |      36 +++++++++++++++++++++++++++++++
       
       1 file changed, 36 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/makefile b/makefile
       t@@ -0,0 +1,36 @@
       +CC = cc
       +LD = $(CC)
       +
       +PREFIX = /usr/local
       +MANPREFIX = ${PREFIX}/man
       +
       +CPPFLAGS = -D_XOPEN_SOURCE -I/usr/local/include
       +CFLAGS = -Wall -Wextra -pedantic
       +LDFLAGS = -L/usr/local/lib
       +LDLIBS = -lsodium
       +
       +all: safe safe-agent
       +
       +safe-agent: safe-agent.o readpassphrase.o
       +        $(LD) -o $@ safe-agent.o readpassphrase.o $(LDFLAGS) $(LDLIBS)
       +
       +safe: safe.o
       +        $(LD) -o $@ safe.o $(LDFLAGS) $(LDLIBS)
       +
       +clean:
       +        rm -f *.o safe safe-agent
       +
       +install: safe safe-agent
       +        mkdir -p ${DESTDIR}${PREFIX}/bin
       +        cp safe ${DESTDIR}${PREFIX}/bin/safe
       +        cp safe-agent ${DESTDIR}${PREFIX}/bin/safe-agent
       +        chmod 755 ${DESTDIR}${PREFIX}/bin/safe
       +        chmod 755 ${DESTDIR}${PREFIX}/bin/safe-agent
       +        mkdir -p ${DESTDIR}${MANPREFIX}/man1
       +        cp safe.1 ${DESTDIR}${MANPREFIX}/man1/safe.1
       +        chmod 644 ${DESTDIR}${MANPREFIX}/man1/safe.1
       +
       +uninstall::
       +        rm ${DESTDIR}${PREFIX}/bin/safe
       +        rm ${DESTDIR}${PREFIX}/bin/safe-agent
       +        rm ${DESTDIR}${MANPREFIX}/man1/safe.1