#%DEPENDS = std_compat_header_wrapper

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

INCLUDES = -I../std_compat_header_wrapper/include

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

all: test

library:

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

comstream-test: comstream-test.o comstream.h commandbuf.h
	$(CXX) -o comstream-test comstream-test.o $(CXXFLAGS)

test: comstream-test
	./comstream-test

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

.PHONY: all library library-only build-test test clean

##
comstream-test.o: comstream-test.cc commandbuf.h comstream.h
