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