~indicator-applet-developers/indicator-appmenu/trunk.0.2

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Ted Gould
  • Date: 2010-05-02 00:00:18 UTC
  • mfrom: (2.1.26 build-register)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: ted@gould.cx-20100502000018-0jencrzyxx2ym1mq
Start with the register

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CLEANFILES =
 
2
DISTCLEANFILES =
 
3
BUILT_SOURCES =
 
4
EXTRA_DIST =
 
5
 
 
6
include $(top_srcdir)/Makefile.am.marshal
1
7
 
2
8
######################################
3
9
# Building the indicator
6
12
appmenulibdir = $(INDICATORDIR)
7
13
appmenulib_LTLIBRARIES = libappmenu.la
8
14
libappmenu_la_SOURCES = \
9
 
        indicator-appmenu.c
10
 
libappmenu_la_CFLAGS = $(APPLET_CFLAGS) -Wall -Wl,-Bsymbolic-functions -Wl,-z,defs -Wl,--as-needed -Werror
11
 
libappmenu_la_LIBADD = $(APPLET_LIBS)
 
15
        application-menu-registrar-server.h \
 
16
        indicator-appmenu.c \
 
17
        indicator-appmenu-marshal.c \
 
18
        window-menus.c \
 
19
        window-menus.h
 
20
libappmenu_la_CFLAGS = $(INDICATOR_CFLAGS) -Wall -Wl,-Bsymbolic-functions -Wl,-z,defs -Wl,--as-needed -Werror
 
21
libappmenu_la_LIBADD = $(INDICATOR_LIBS)
12
22
libappmenu_la_LDFLAGS = -module -avoid-version
13
23
 
 
24
######################################
 
25
# Build your own marshaller
 
26
######################################
 
27
 
 
28
glib_marshal_list = indicator-appmenu-marshal.list
 
29
glib_marshal_prefix = _indicator_appmenu_marshal
 
30
 
 
31
######################################
 
32
# DBus Love
 
33
######################################
 
34
 
 
35
DBUS_SPECS = \
 
36
        application-menu-registrar.xml
 
37
 
 
38
%-client.h: %.xml
 
39
        dbus-binding-tool \
 
40
                --prefix=_$(notdir $(subst -,_,$(<:.xml=)))_client \
 
41
                --mode=glib-client \
 
42
                --output=$@ \
 
43
                $<
 
44
 
 
45
%-server.h: %.xml
 
46
        dbus-binding-tool \
 
47
                --prefix=_$(notdir $(subst -,_,$(<:.xml=)))_server \
 
48
                --mode=glib-server \
 
49
                --output=$@ \
 
50
                $<
 
51
 
 
52
BUILT_SOURCES += \
 
53
        $(DBUS_SPECS:.xml=-client.h) \
 
54
        $(DBUS_SPECS:.xml=-server.h)
 
55
 
 
56
CLEANFILES += $(BUILT_SOURCES)
 
57
 
 
58
EXTRA_DIST += $(DBUS_SPECS)