#%DEPENDS = std_compat_header_wrapper iostream_extension mmap_file unit_test

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

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

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

LDFLAGS = $(LDADDITIONALFLAGS)


all: check

library:

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

mmap_fstream-test: mmap_fstream-test.o
	$(CXX) $(CXXFLAGS) -o mmap_fstream-test mmap_fstream-test.o $(LDFLAGS)


check: mmap_fstream-test
	./mmap_fstream-test

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

.PHONY: all library library-lean check clean


##
mmap_fstream-test.o: mmap_fstream-test.cc mmap_fstream.h mmap_ifstreambuf.h
