Files
git-crypt/Makefile
Andrew Ayer 44f70e6b48 Add Coprocess class
It provides a convenient way to spawn a process and read from/write to
its stdin/stdout.
2015-05-24 18:54:11 -07:00

35 lines
596 B
Makefile

CXX := c++
CXXFLAGS := -Wall -pedantic -Wno-long-long -O2
LDFLAGS :=
PREFIX := /usr/local
OBJFILES = \
git-crypt.o \
commands.o \
crypto.o \
gpg.o \
key.o \
util.o \
parse_options.o \
coprocess.o \
fhstream.o
OBJFILES += crypto-openssl.o
LDFLAGS += -lcrypto
all: git-crypt
git-crypt: $(OBJFILES)
$(CXX) $(CXXFLAGS) -o $@ $(OBJFILES) $(LDFLAGS)
util.o: util.cpp util-unix.cpp util-win32.cpp
clean:
rm -f *.o git-crypt
install: git-crypt
install -d $(DESTDIR)$(PREFIX)/bin/
install -m 755 git-crypt $(DESTDIR)$(PREFIX)/bin/
.PHONY: all clean install