################################################################################
#
# Builds the RunBatch2019 tool
#
# Dependences and Recommended Versions:
#  openssl: 1.1.1f
#  boost: 1.17.0
#
# Supported operations:
# 	make - outputs the single binary named RunBatch2019
# 	make clean - cleans up the build
#
################################################################################

CXX=g++

IDIR =.
CFLAGS=-I$(IDIR) -std=c++17

ODIR=.
LDIR =.

LIBS=-lm -lboost_program_options -lssl -lcrypto

_DEPS = .
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))

_OBJ = RunBatch2019.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))


$(ODIR)/%.o: %.cpp $(DEPS)
		$(CXX) -c -o $@ $< $(CFLAGS)

RunBatch2019: $(OBJ)
		$(CXX) -o $@ $^ $(CFLAGS) $(LIBS)

.PHONY: clean

clean:
		rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~ RunBatch2019
