Add cuart_fsm_test program

Change-Id: I2b4be908b1bbd9b02f591a79b0eefaeae04badb8
diff --git a/ccid_host/Makefile b/ccid_host/Makefile
index 8f75559..d7bc3be 100644
--- a/ccid_host/Makefile
+++ b/ccid_host/Makefile
@@ -1,7 +1,7 @@
 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
+all: ccid_functionfs hub_functionfs cuart_test cuart_fsm_test
 
 ccid_functionfs: ccid_main_functionfs.o \
 		 ccid_slot_sim.o \
@@ -19,8 +19,16 @@
 		../ccid_common/cuart.o
 	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
 
+cuart_fsm_test: cuart_fsm_test.o \
+		logging.o \
+		cuart_driver_tty.o \
+		utils_ringbuffer.o \
+		../ccid_common/iso7816_fsm.o \
+		../ccid_common/cuart.o
+	$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(shell pkg-config --libs libosmosim)
+
 %.o: %.c
 	$(CC) $(CFLAGS) -o $@ -c $^
 
 clean:
-	rm -f ccid_functionfs hub_functionfs cuart_test *.o
+	rm -f ccid_functionfs hub_functionfs cuart_test cuart_fsm_test *.o