diff --git a/sflphone-common/src/Makefile.am b/sflphone-common/src/Makefile.am
index 3b2eef2031840db651aaaff54afbcfa3d571c6fb..d14c7eb21fb8694dc8f4eb31c473ac008d4254f1 100644
--- a/sflphone-common/src/Makefile.am
+++ b/sflphone-common/src/Makefile.am
@@ -7,21 +7,7 @@ libexec_PROGRAMS = sflphoned
 
 SUBDIRS = dbus audio config plug-in hooks history sip iax im
 
-# Add here the cpp files to be build with sflphone
-sflphoned_SOURCES = \
-		conference.cpp \
-		voiplink.cpp \
-		main.cpp \
-		preferences.cpp \
-		managerimpl.cpp \
-		managerimpl_registration.cpp \
-		eventthread.cpp \
-		accountcreator.cpp \
-		call.cpp \
-		account.cpp \
-		logger.cpp \
-		numbercleaner.cpp \
-		fileutils.cpp
+sflphoned_SOURCES = main.cpp
 
 # Redefine the USE_IAX variable here, so that it could be used in managerimpl
 if USE_IAX
@@ -104,5 +90,15 @@ libsflphone_la_CFLAGS = \
 		@yaml_CFLAGS@ \
 	 	@xml_CFLAGS@
 
-libsflphone_la_SOURCES =
-
+libsflphone_la_SOURCES = conference.cpp \
+		voiplink.cpp \
+		preferences.cpp \
+		managerimpl.cpp \
+		managerimpl_registration.cpp \
+		eventthread.cpp \
+		accountcreator.cpp \
+		call.cpp \
+		account.cpp \
+		logger.cpp \
+		numbercleaner.cpp \
+		fileutils.cpp