Add some smaller test cases and fix new single protocol/transport C++ test

Reviewed By: aditya


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664944 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/cpp/Makefile.thrift b/test/cpp/Makefile.thrift
index d8ef54d..53f43b3 100644
--- a/test/cpp/Makefile.thrift
+++ b/test/cpp/Makefile.thrift
@@ -32,7 +32,9 @@
 
 # Compiler flags
 DCFL  = -Wall -O3 -g -I./gen-cpp $(include_flags) -L$(thrift_home)/lib/cpp/.libs -lthrift -levent
-CFL   = -Wall -O3 -I./gen-cpp $(include_flags) -L$(thrift_home)/lib/cpp/.libs -lthrift -levent
+LFL   =  -L$(thrift_home)/lib/cpp/.libs -lthrift -levent
+CCFL  = -Wall -O3 -I./gen-cpp $(include_flags)
+CFL   = $(CCFL) $(LFL)
 
 all: server client
 
@@ -53,5 +55,9 @@
 client: stubs
 	g++ -o TestClient $(CFL) src/TestClient.cpp ./gen-cpp/ThriftTest.cpp ./gen-cpp/ThriftTest_types.cpp
 
+small:
+	$(THRIFT) -cpp ../SmallTest.thrift
+	g++ -c $(CCFL) ./gen-cpp/SmallService.cpp ./gen-cpp/SmallTest_types.cpp
+
 clean:
 	rm -fr TestServer TestClient gen-cpp