From b666cc1867e04d697f381fa8033803b9e7d0f61d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 15 Oct 2009 21:12:52 -0500 Subject: Building a basic library starting out. --- src/Makefile.am | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 2139b62..bcaba37 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -32,6 +32,39 @@ indicator_custom_service_CFLAGS = \ indicator_custom_service_LDADD = \ $(INDICATOR_LIBS) +################################## +# Library +################################## + +lib_LTLIBRARIES = \ + libcustomindicator.la + +libcustomindicatorincludedir=$(includedir)/libcustomindicator-0.1/libcustomindicator + +libcustomindicator_headers = \ + libcustomindicator/custom-indicator.h + +libcustomindicatorinclude_HEADERS = \ + $(libcustomindicator_headers) + +libcustomindicator_la_SOURCES = \ + $(libcustomindicator_headers) \ + notification-watcher-client.h \ + notification-item-server.h \ + libcustomindicator/custom-indicator.c + +libcustomindicator_la_LDFLAGS = \ + -version-info 0:0:0 \ + -no-undefined \ + -export-symbols-regex "^[^_d].*" + +libcustomindicator_la_CFLAGS = \ + $(INDICATOR_CFLAGS) \ + -Wall -Werror + +libcustomindicator_la_LIBADD = \ + $(INDICATOR_LIBS) + ################################## # DBus Specs ################################## -- cgit v1.2.3 From 5b8ab09e59342e7214117d2ebb02b89da6fa6503 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 16 Oct 2009 13:20:56 -0500 Subject: Setting up build to build the enums. --- src/Makefile.am | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index bcaba37..ca5de35 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,3 +1,9 @@ +CLEANFILES = +DISTCLEANFILES = +BUILT_SOURCES = +EXTRA_DIST = + +include $(top_srcdir)/Makefile.am.enum ################################## # Indicator @@ -36,6 +42,10 @@ indicator_custom_service_LDADD = \ # Library ################################## +glib_enum_h = libcustomindicator/custom-indicator-enum.h +glib_enum_c = libcustomindicator/custom-indicator-enum.c +glib_enum_headers = $(libcustomindicator_headers) + lib_LTLIBRARIES = \ libcustomindicator.la @@ -45,7 +55,8 @@ libcustomindicator_headers = \ libcustomindicator/custom-indicator.h libcustomindicatorinclude_HEADERS = \ - $(libcustomindicator_headers) + $(libcustomindicator_headers) \ + $(glib_enum_h) libcustomindicator_la_SOURCES = \ $(libcustomindicator_headers) \ @@ -87,10 +98,10 @@ DBUS_SPECS = \ --output=$@ \ $< -BUILT_SOURCES = \ +BUILT_SOURCES += \ $(DBUS_SPECS:.xml=-client.h) \ $(DBUS_SPECS:.xml=-server.h) -CLEANFILES = $(BUILT_SOURCES) +CLEANFILES += $(BUILT_SOURCES) -EXTRA_DIST = $(DBUS_SPECS) +EXTRA_DIST += $(DBUS_SPECS) -- cgit v1.2.3 From ba81d4a04a4291ad065c64f4fc79fd51c4b68bc9 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 16 Oct 2009 13:43:47 -0500 Subject: Putting in the enum templates and building them. --- src/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index ca5de35..4989c51 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -42,8 +42,8 @@ indicator_custom_service_LDADD = \ # Library ################################## -glib_enum_h = libcustomindicator/custom-indicator-enum.h -glib_enum_c = libcustomindicator/custom-indicator-enum.c +glib_enum_h = libcustomindicator/custom-indicator-enum-types.h +glib_enum_c = libcustomindicator/custom-indicator-enum-types.c glib_enum_headers = $(libcustomindicator_headers) lib_LTLIBRARIES = \ -- cgit v1.2.3 From d7e37560395505724e611326203b31e4649b773f Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 16 Oct 2009 14:08:47 -0500 Subject: Adding the C file into the build as well. --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 4989c51..07f3887 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -60,6 +60,7 @@ libcustomindicatorinclude_HEADERS = \ libcustomindicator_la_SOURCES = \ $(libcustomindicator_headers) \ + $(glib_enum_c) \ notification-watcher-client.h \ notification-item-server.h \ libcustomindicator/custom-indicator.c -- cgit v1.2.3 From f4f482c9f5a87ac7544e45f53f02117a50abf2d6 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 16 Oct 2009 14:47:28 -0500 Subject: Some small changes to make 'distcheck' happy. --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 07f3887..ff5b26e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -52,7 +52,7 @@ lib_LTLIBRARIES = \ libcustomindicatorincludedir=$(includedir)/libcustomindicator-0.1/libcustomindicator libcustomindicator_headers = \ - libcustomindicator/custom-indicator.h + $(srcdir)/libcustomindicator/custom-indicator.h libcustomindicatorinclude_HEADERS = \ $(libcustomindicator_headers) \ -- cgit v1.2.3