diff options
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 51 |
1 files changed, 48 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 2139b62..ff5b26e 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 @@ -33,6 +39,45 @@ indicator_custom_service_LDADD = \ $(INDICATOR_LIBS) ################################## +# Library +################################## + +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 = \ + libcustomindicator.la + +libcustomindicatorincludedir=$(includedir)/libcustomindicator-0.1/libcustomindicator + +libcustomindicator_headers = \ + $(srcdir)/libcustomindicator/custom-indicator.h + +libcustomindicatorinclude_HEADERS = \ + $(libcustomindicator_headers) \ + $(glib_enum_h) + +libcustomindicator_la_SOURCES = \ + $(libcustomindicator_headers) \ + $(glib_enum_c) \ + 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 ################################## @@ -54,10 +99,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) |