[ekiga] Do not use unneeded -I flags during compilation



commit af65888a1179e4c08f6db33a685e88a9a3b9ea46
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Sat Sep 24 21:30:27 2011 +0200

    Do not use unneeded -I flags during compilation

 lib/Makefile.am |   34 +++++++++++++---------------------
 1 files changed, 13 insertions(+), 21 deletions(-)
---
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 7f3e00a..d329b7b 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -35,22 +35,18 @@ INCLUDES = \
 	-I$(top_srcdir)/lib/engine/protocol \
 	-I$(top_srcdir)/lib/engine/videoinput \
 	-I$(top_srcdir)/lib/engine/videooutput \
-	-I$(top_srcdir)/lib/engine/components/avahi \
-	-I$(top_srcdir)/lib/engine/components/avahi-publisher \
 	-I$(top_srcdir)/lib/engine/components/call-history \
 	-I$(top_srcdir)/lib/engine/components/common-videooutput \
 	-I$(top_srcdir)/lib/engine/components/dx-videooutput \
 	-I$(top_srcdir)/lib/engine/components/echo \
 	-I$(top_srcdir)/lib/engine/components/gmconf-personal-details \
 	-I$(top_srcdir)/lib/engine/components/hal-dbus \
-	-I$(top_srcdir)/lib/engine/components/libnotify \
 	-I$(top_srcdir)/lib/engine/components/local-roster \
 	-I$(top_srcdir)/lib/engine/components/mlogo-videoinput \
 	-I$(top_srcdir)/lib/engine/components/null-audioinput \
 	-I$(top_srcdir)/lib/engine/components/null-audiooutput \
 	-I$(top_srcdir)/lib/engine/components/opal \
-	-I$(top_srcdir)/lib/engine/components/ptlib \
-	-I$(top_srcdir)/lib/engine/components/x-videooutput
+	-I$(top_srcdir)/lib/engine/components/ptlib
 
 AM_CFLAGS = \
 	$(GLIB_CFLAGS) $(GTK_CFLAGS) $(GCONF_CFLAGS) $(DBUS_CFLAGS)
@@ -662,18 +658,13 @@ libekiga_la_LDFLAGS += $(SHM_LIBS)
 endif
 
 ##
-# Common support for avahi
+# Support for avahi
 ##
 if HAVE_AVAHI
 
-libekiga_la_LDFLAGS += $(AVAHI_LIBS)
-
-endif
-
-##
-# Sources of the avahi publisher component
-##
-if HAVE_AVAHI
+INCLUDES += \
+	-I$(top_srcdir)/lib/engine/components/avahi \
+	-I$(top_srcdir)/lib/engine/components/avahi-publisher
 
 libekiga_la_SOURCES += \
 	$(components_dir)/avahi-publisher/avahi-publisher-main.cpp \
@@ -681,13 +672,6 @@ libekiga_la_SOURCES += \
 	$(components_dir)/avahi-publisher/avahi-publisher.cpp \
 	$(components_dir)/avahi-publisher/avahi-publisher.h
 
-endif
-
-##
-# Sources of the avahi browser component
-##
-if HAVE_AVAHI
-
 libekiga_la_SOURCES += \
 	$(components_dir)/avahi/avahi-heap.h \
 	$(components_dir)/avahi/avahi-heap.cpp \
@@ -696,6 +680,8 @@ libekiga_la_SOURCES += \
 	$(components_dir)/avahi/avahi-main.h \
 	$(components_dir)/avahi/avahi-main.cpp
 
+libekiga_la_LDFLAGS += $(AVAHI_LIBS)
+
 endif
 
 ##
@@ -703,6 +689,9 @@ endif
 ##
 if HAVE_NOTIFY
 
+INCLUDES += \
+	-I$(top_srcdir)/lib/engine/components/libnotify
+
 libekiga_la_SOURCES += \
 	$(components_dir)/libnotify/libnotify-main.h \
 	$(components_dir)/libnotify/libnotify-main.cpp
@@ -725,6 +714,9 @@ libekiga_la_SOURCES += \
 
 if !WIN32
 
+INCLUDES += \
+	-I$(top_srcdir)/lib/engine/components/x-videooutput
+
 libekiga_la_SOURCES += \
 	$(components_dir)/x-videooutput/videooutput-manager-x.cpp \
 	$(components_dir)/x-videooutput/videooutput-manager-x.h \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]