]> matita.cs.unibo.it Git - helm.git/blob - helm/gtkmathview-bonobo/src/Makefile.am
snapshot
[helm.git] / helm / gtkmathview-bonobo / src / Makefile.am
1
2 location = $(libdir)/libgtkmathview-bonobo.so
3 serverdir = $(libdir)/bonobo/servers
4 server_in_files = GNOME_GtkMathView.server.in.in
5
6 CLEANFILES = $(server_in_files:.server.in.in=.server)
7
8 IDL = $(top_srcdir)/idl/GtkMathView.idl
9
10 IDL_GENERATED_C = \
11   GtkMathView-common.c \
12   GtkMathView-skels.c \
13   GtkMathView-stubs.c
14
15 IDL_GENERATED_H = \
16   GtkMathView.h
17
18 IDL_GENERATED = $(IDL_GENERATED_C) $(IDL_GENERATED_H)
19
20 lib_LTLIBRARIES = libgtkmathview-bonobo.la
21
22 libgtkmathview_bonobo_la_LIBADD = \
23   $(GTKMATHVIEW_LIBS) \
24   $(BONOBOUI_LIBS) \
25   $(BONOBO_LIBS)
26
27 libgtkmathview_bonobo_la_LDFLAGS = -version-info @GTKMATHVIEW_CONTROL_VERSION_INFO@
28
29 libgtkmathview_bonobo_la_SOURCES = \
30   $(IDL_GENERATED_C) \
31   control-data.c \
32   control-factory.c \
33   persist-file.c \
34   persist-stream.c \
35   aux.cc \
36   handlers.c \
37   view.c
38
39 pkginclude_HEADERS = \
40   control-factory.h \
41   persist-file.h    \
42   persist-stream.h  \
43   handlers.h \
44   view.h
45
46 server_DATA = $(server_in_files:.server.in.in=.server)
47 $(server_in_files:.server.in.in=.server): $(server_in_files:.server.in.in=.server.in) Makefile
48         sed -e "s|\@GTKMATHVIEW_FACTORY_LOCATION\@|$(location)|g" $< >$@
49
50 view.c : $(VIEW_CORBA_GENERATED)
51
52 $(IDL_GENERATED): $(IDL)
53         $(ORBIT_IDL) $(BONOBO_IDL_INCLUDES) $<
54
55 EXTRA_DIST = $(server_DATA)
56
57 INCLUDES = \
58   $(BONOBOUI_CFLAGS) \
59   $(BONOBO_CFLAGS) \
60   $(GTKMATHVIEW_CFLAGS)
61