Files
git-crypt/Makefile
Andrew Ayer 0774ed018c Lay groundwork for Windows support
Move Unix-specific code to util-unix.cpp, and place Windows equivalents
in util-win32.cpp.  Most of the Windows functions are just stubs at
the moment, and we need a build system that works on Windows.
2014-06-12 21:23:02 -07:00

22 lines
406 B
Makefile

CXX := c++
CXXFLAGS := -Wall -pedantic -Wno-long-long -O2
LDFLAGS := -lcrypto
PREFIX := /usr/local
OBJFILES = git-crypt.o commands.o crypto.o gpg.o key.o util.o
all: git-crypt
git-crypt: $(OBJFILES)
$(CXX) $(CXXFLAGS) -o $@ $^ $(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