diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-10-08 22:21:24 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-10-08 22:25:04 +0200 |
commit | fc236266f7931cde83c5c136a0a4e0246ab018e0 (patch) | |
tree | e9fd248ec9ae2f6160bbd70004d73449d5d4a89b /envelope/Makefile | |
parent | 067ba4a39729f1e33b41c60c826274a4c4c38b8d (diff) |
Add envelope application using the crypto lib
Diffstat (limited to 'envelope/Makefile')
-rw-r--r-- | envelope/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/envelope/Makefile b/envelope/Makefile new file mode 100644 index 0000000..06b0419 --- /dev/null +++ b/envelope/Makefile @@ -0,0 +1,30 @@ +CXX = g++ +CXXFLAGS = -Wall -Wextra -std=c++0x -fwrapv +LDFLAGS = +ifneq ($(DEBUG),) + CXXFLAGS += -g +else + CXXFLAGS += -O2 +endif +ifeq ($(shell uname),Linux) + LDFLAGS += -lbsd +endif + +BIN = envelope + + +.PHONY: all clean remake + +all: $(BIN) + +clean: + rm -rf $(BIN) *.o *.dSYM + +remake: clean all + + +$(BIN): $(patsubst %.cpp,%.o,$(wildcard *.cpp)) ../cryptolib.a + $(CXX) -o $@ $^ $(LDFLAGS) + +%.o: %.cpp $(wildcard *.h) + $(CXX) $(CXXFLAGS) -c -o $@ $< |