Files
git-crypt/Makefile
Simon Kotlinski 19ea278a31 Makefile: don't compile with -ansi
Fixes build on Cygwin due to [1].  Closes #19 on GitHub.

[1] https://cygwin.com/ml/cygwin/2014-01/msg00130.html
2014-06-03 09:02:40 -07:00

20 lines
347 B
Makefile

CXX := c++
CXXFLAGS := -Wall -pedantic -Wno-long-long -O2
LDFLAGS := -lcrypto
PREFIX := /usr/local
OBJFILES = git-crypt.o commands.o crypto.o util.o
all: git-crypt
git-crypt: $(OBJFILES)
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
clean:
rm -f *.o git-crypt
install:
install -m 755 git-crypt $(DESTDIR)$(PREFIX)/bin/
.PHONY: all clean install