ptth/bare_minimum_crypto/cpp/Makefile

26 lines
647 B
Makefile
Raw Normal View History

2021-01-17 15:11:21 +00:00
# g++ and clang++ both have pretty garbage errors
CXX=g++
2021-01-17 15:11:21 +00:00
FLAGS=-std=c++17 -g
CXX_FLAGS=$(FLAGS) -c
L_FLAGS=$(FLAGS)
LIBS=-lsodium
2021-01-17 21:45:59 +00:00
bmc_test: bmc_test.o base64.o string_helpers.o time_helpers.o
$(CXX) -o $@ $^ $(L_FLAGS) $(LIBS)
2021-01-17 21:45:59 +00:00
bmc_test.o: bmc_test.cpp string_helpers.h time_helpers.h
$(CXX) -o $@ $(CXX_FLAGS) $<
base64.o: cpp-base64/base64.cpp cpp-base64/base64.h
$(CXX) -o $@ $(CXX_FLAGS) $<
string_helpers.o: string_helpers.cpp string_helpers.h cpp-base64/base64.h
$(CXX) -o $@ $(CXX_FLAGS) $<
2021-01-17 21:45:59 +00:00
time_helpers.o: time_helpers.cpp time_helpers.h
$(CXX) -o $@ $(CXX_FLAGS) $<
clean:
rm -f bmc_test bmc_test.o base64.o string_helpers.o