#%DEPENDS = std_compat_header_wrapper iostream_extension unit_test

CXX = ../../bin/g++w
RM  = rm

INCLUDES = -I../std_compat_header_wrapper/include \
	   -I../iostream_extension/include \
	   -I../unit_test/include

CXXFLAGS = -g $(CCXXOPTFLAGS) $(CXXOPTFLAGS) $(INCLUDES) \
	      $(CCXXADDITIONALFLAGS) $(CXXADDITIONALFLAGS)

LDFLAGS = $(LDADDITIONALFLAGS)


all: check

library:

library-lean:
	$(RM) -f *.o

memorystream-test: memorystream-test.o
	$(CXX) $(CXXFLAGS) -o memorystream-test \
		memorystream-test.o $(LDFLAGS)


check: memorystream-test
	./memorystream-test

clean:
	$(RM) -f *.o memorystream-test

.PHONY: all library library-lean check clean

##
memorystream-test.o: memorystream-test.cc \
		     memorystream.h \
		     imemorystreambuf.h
