'cuart' Card-UART abstraction + driver for simple serial reader

Change-Id: Ic7e324d99f78b3bfb98fc667d9a1b7fa363f092d
diff --git a/ccid_host/Makefile b/ccid_host/Makefile
index 2ed6c83..8f75559 100644
--- a/ccid_host/Makefile
+++ b/ccid_host/Makefile
@@ -1,6 +1,8 @@
 CFLAGS=-Wall -g $(shell pkg-config --cflags libosmocore) -I../ccid_common -I.
 LIBS?=-lasan $(shell pkg-config --libs libosmocore)
 
+all: ccid_functionfs hub_functionfs cuart_test
+
 ccid_functionfs: ccid_main_functionfs.o \
 		 ccid_slot_sim.o \
 		 logging.o \
@@ -11,8 +13,14 @@
 hub_functionfs: hub_main_functionfs.o
 	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) -laio
 
+cuart_test:	cuart_test.o \
+		cuart_driver_tty.o \
+		utils_ringbuffer.o \
+		../ccid_common/cuart.o
+	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
+
 %.o: %.c
 	$(CC) $(CFLAGS) -o $@ -c $^
 
 clean:
-	rm -f ccid_functionfs hub_functionfs *.o
+	rm -f ccid_functionfs hub_functionfs cuart_test *.o