# scbcpp/demo/Makefile -- step.144 G3: the standalone link test.
#
# scbdemo #includes ONLY ../include (the ccsscb clone headers) and links
# ../../lib/libscbcpp.a ALONE -- no libruntime.a, no libgenerate.a, no
# -I../../include / -I../../incloc. If this links and runs, the clone's
# dependency closure is complete and self-contained.

STDCPP ?= c++17
CXXFLAGS = -std=$(STDCPP) -Wall -Werror -g -I../include

LIBSCBCPP = ../../lib/libscbcpp.a

all: scbdemo

scbdemo: scbdemo.cc $(LIBSCBCPP)
	$(CXX) $(CXXFLAGS) -o $@ scbdemo.cc $(LIBSCBCPP)
	@echo "$@ created (linked $(LIBSCBCPP) ALONE)"

clean:
	rm -f scbdemo

.PHONY: all clean
