35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
# g++ and clang++ both have pretty garbage errors
|
|
CXX=g++
|
|
FLAGS=-std=c++17 -g
|
|
CXX_FLAGS=$(FLAGS) -c
|
|
L_FLAGS=$(FLAGS)
|
|
LIBS=-lsodium
|
|
|
|
bmc_test: bmc_test.o base64.o expiring_signature.o receiver.o sodium_helpers.o string_helpers.o time_helpers.o
|
|
$(CXX) -o $@ $^ $(L_FLAGS) $(LIBS)
|
|
|
|
bmc_test.o: bmc_test.cpp expiring_signature.h receiver.h sodium_helpers.h string_helpers.h time_helpers.h
|
|
$(CXX) -o $@ $(CXX_FLAGS) $<
|
|
|
|
base64.o: cpp-base64/base64.cpp cpp-base64/base64.h
|
|
$(CXX) -o $@ $(CXX_FLAGS) $<
|
|
|
|
expiring_signature.o: expiring_signature.cpp expiring_signature.h
|
|
$(CXX) -o $@ $(CXX_FLAGS) $<
|
|
|
|
receiver.o: receiver.cpp receiver.h expiring_signature.h sodium_helpers.h string_helpers.h time_helpers.h
|
|
$(CXX) -o $@ $(CXX_FLAGS) $<
|
|
|
|
sodium_helpers.o: sodium_helpers.cpp sodium_helpers.h
|
|
$(CXX) -o $@ $(CXX_FLAGS) $<
|
|
|
|
string_helpers.o: string_helpers.cpp string_helpers.h cpp-base64/base64.h
|
|
$(CXX) -o $@ $(CXX_FLAGS) $<
|
|
|
|
time_helpers.o: time_helpers.cpp time_helpers.h
|
|
$(CXX) -o $@ $(CXX_FLAGS) $<
|
|
|
|
clean:
|
|
rm -f bmc_test bmc_test.o base64.o expiring_signature.o receiver.o sodium_helpers.o string_helpers.o time_helpers.o
|
|
|