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