Index: uspace/srv/net/tcp/Makefile
===================================================================
--- uspace/srv/net/tcp/Makefile	(revision 8ebc5b8afff1eee31b5dccfd149defa4473bba75)
+++ uspace/srv/net/tcp/Makefile	(revision e73dbc1172df2b8d470314ee1bd2a68d69c55b5f)
@@ -37,5 +37,5 @@
 BINARY = tcp
 
-SOURCES = \
+SOURCES_COMMON = \
 	conn.c \
 	iqueue.c \
@@ -44,17 +44,20 @@
 	rqueue.c \
 	segment.c \
-	service.c \
 	seq_no.c \
-	tcp.c \
 	test.c \
 	tqueue.c \
 	ucall.c
 
+SOURCES = \
+	$(SOURCES_COMMON) \
+	service.c \
+	tcp.c
+
 TEST_SOURCES = \
-	pdu.c \
-	segment.c \
-	seq_no.c \
+	$(SOURCES_COMMON) \
 	test/main.c \
-	test/pdu.c
+	test/pdu.c \
+	test/segment.c \
+	test/seq_no.c
 
 include $(USPACE_PREFIX)/Makefile.common
