mirror of
https://github.com/AGWA/git-crypt.git
synced 2025-12-27 13:13:20 -08:00
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.
22 lines
406 B
Makefile
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
|