Files
git-crypt/Makefile
Jon Sailor 66a2266968 Pull out openssl code into separate crypto-openssl.cpp file
This will allow the use of different crypto libraries in the future.

Modified-by: Andrew Ayer <agwa@andrewayer.name>

  * Don't include openssl/err.h from git-crypt.cpp
  * Fix whitespace and other style to conform to project conventions
  * Remove unnecessary operators from Aes_ctr_encryptor
  * Rename crypto_init to init_crypto, for consistency with init_std_streams()
2014-07-23 19:22:48 -07:00

32 lines
514 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
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:
install -m 755 git-crypt $(DESTDIR)$(PREFIX)/bin/
.PHONY: all clean install