1bin_PROGRAMS=gda-browser-5.0
2noinst_LTLIBRARIES = libbrowser.la
3
4SUBDIRS = data common schema-browser query-exec data-manager dummy-perspective
5
6if LDAP
7ldap_flags=-DHAVE_LDAP
8SUBDIRS+=ldap-browser
9LDAP_LDADD=$(top_builddir)/tools/browser/ldap-browser/libperspective.la
10endif
11
12if HAVE_GOOCANVAS
13SUBDIRS+=canvas
14noinst_PROGRAMS=canvas-example
15endif
16SUBDIRS+= . doc
17if HAVE_GDU
18SUBDIRS+=help
19endif
20
21AM_CPPFLAGS = \
22        -I$(top_srcdir) \
23        -I$(top_srcdir)/libgda \
24        -I$(top_srcdir)/libgda/sqlite \
25	-I$(top_builddir)/libgda/sqlite \
26        -I$(top_builddir) \
27        $(COREDEPS_CFLAGS) \
28	$(COREDEPS_WFLAGS) \
29        $(GTK_CFLAGS) \
30        $(GTKSOURCEVIEW_CFLAGS) \
31	$(MAC_INTEGRATION_CFLAGS) \
32        -DPREFIX=\""$(prefix)"\" \
33        -DSYSCONFDIR=\""$(sysconfdir)"\" \
34        -DDATADIR=\""$(datadir)"\" \
35        -DLIBDIR=\""$(libdir)"\" \
36	$(ldap_flags)
37
38marshal.h: marshal.list $(GLIB_GENMARSHAL)
39	$(GLIB_GENMARSHAL) $< --header --prefix=_marshal > $@
40marshal.c: marshal.list $(GLIB_GENMARSHAL) marshal.h
41	$(GLIB_GENMARSHAL) $< --body --prefix=_marshal > $@
42
43libbrowser_la_SOURCES=\
44	../config-info.h \
45	../config-info.c \
46	../tool-utils.h \
47	../tool-utils.c \
48	gdaui-bar.c \
49	gdaui-bar.h \
50	marshal.c \
51	marshal.h \
52	decl.h \
53	dnd.h \
54	dnd.c \
55	auth-dialog.c \
56	auth-dialog.h \
57	login-dialog.c \
58	login-dialog.h \
59	support.c \
60	support.h \
61	browser-core.c \
62	browser-core.h \
63	browser-page.c \
64	browser-page.h \
65	browser-perspective.c \
66	browser-perspective.h \
67	browser-spinner.c \
68	browser-spinner.h \
69	browser-connection.c \
70	browser-connection.h \
71	browser-connection-priv.h \
72	browser-variable.c \
73	browser-variable.h \
74	browser-virtual-connection.c \
75	browser-virtual-connection.h \
76	browser-window.c \
77	browser-window.h \
78	browser-connections-list.c \
79	browser-connections-list.h \
80	connection-binding-properties.c \
81	connection-binding-properties.h \
82	mgr-favorites.h \
83	mgr-favorites.c \
84	browser-stock-icons.c \
85	browser-stock-icons.h \
86	text-search.c \
87	text-search.h
88
89gda_browser_5_0_SOURCES=\
90	main.c
91
92$(OBJECTS): marshal.c marshal.h
93
94if PLATFORM_WIN32
95EXTRALDFLAGS=-mwindows
96gda_browser_5_0_SOURCES += browser-res.rc
97else
98EXTRALDFLAGS=
99endif
100
101if HAVE_GOOCANVAS
102CANVAS_LDADD=$(top_builddir)/tools/browser/canvas/libcanvas.la -lm
103endif
104
105.rc.o:
106	$(WINDRES) $^ -o $@
107
108browser-res.o: browser-res.rc
109	$(WINDRES) $^ -o $@
110
111gda_browser_5_0_LDFLAGS = $(EXTRALDFLAGS)
112gda_browser_5_0_LDADD=\
113	schema-browser/libperspective.la \
114	query-exec/libperspective.la \
115	data-manager/libperspective.la \
116	$(LDAP_LDADD) \
117	libbrowser.la \
118	$(top_builddir)/libgda-ui/internal/libgda-ui-internal.la \
119	$(CANVAS_LDADD) \
120	common/libcommon.la \
121	$(top_builddir)/libgda/libgda-5.0.la \
122	$(top_builddir)/libgda-ui/libgda-ui-5.0.la \
123	$(COREDEPS_LIBS) $(GTK_LIBS) $(GTKSOURCEVIEW_LIBS) $(MAC_INTEGRATION_LIBS)
124
125@INTLTOOL_XML_RULE@
126appdatadir = $(datadir)/appdata
127appdata_DATA = $(appdata_in_files:.xml.in=.xml)
128appdata_in_files = gda-browser-5.0.appdata.xml.in
129
130@INTLTOOL_DESKTOP_RULE@
131
132desktopdir=$(datadir)/applications
133Desktop_in_files = gda-browser-5.0.desktop.in
134desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)
135
136# canvas example
137canvas_example_DEPENDENCIES = \
138	libbrowser.la \
139	canvas/libcanvas.la \
140	common/libcommon.la
141
142canvas_example_SOURCES = \
143	../tool-utils.h \
144	../tool-utils.c \
145	canvas-example.c \
146	dnd.c \
147	dnd.h
148
149canvas_example_LDFLAGS = $(EXTRALDFLAGS)
150canvas_example_CFLAGS = -DCANVAS_EXAMPLE
151canvas_example_LDADD=\
152	$(CANVAS_LDADD) \
153	libbrowser.la \
154	$(top_builddir)/libgda-ui/internal/libgda-ui-internal.la \
155	common/libcommon.la \
156	$(top_builddir)/libgda/libgda-5.0.la \
157	$(top_builddir)/libgda-ui/libgda-ui-5.0.la \
158	$(COREDEPS_LIBS) $(GTK_LIBS)
159
160# icons
161iconsdir=$(datadir)/libgda-5.0/pixmaps
162icons_DATA= \
163	gda-browser.png \
164	gda-browser-auth.png \
165	gda-browser-auth-big.png \
166	gda-browser-connected.png \
167	gda-browser-connected-big.png \
168	gda-browser-non-connected.png \
169	gda-browser-non-connected-big.png \
170	gda-browser-bookmark.png \
171	gda-browser-schema.png \
172	gda-browser-table.png \
173	gda-browser-column.png \
174	gda-browser-column-fknn.png \
175	gda-browser-column-fk.png \
176	gda-browser-column-nn.png \
177	gda-browser-column-pk.png \
178	gda-browser-reference.png \
179	gda-browser-diagram.png \
180	gda-browser-query.png \
181	gda-browser-action.png \
182	gda-browser-menu-ind.png \
183	gda-browser-ldap-entry.png \
184	gda-browser-ldap-group.png \
185	gda-browser-ldap-organization.png \
186	gda-browser-ldap-person.png \
187	gda-browser-ldap-class-a.png \
188	gda-browser-ldap-class-s.png \
189	gda-browser-ldap-class-x.png \
190	gda-browser-ldap-class-u.png
191
192# app icon
193appiconsdir=$(datadir)/pixmaps
194appicons_DATA= \
195        gda-browser-5.0.png
196
197EXTRA_DIST = \
198	marshal.list \
199	browser-res.rc \
200	gda-browser.ico \
201	$(Desktop_in_files) $(icons_DATA) $(appicons_DATA) \
202	$(appdata_in_files)
203
204DISTCLEANFILES = \
205	$(desktop_DATA) \
206	$(appdata_DATA)
207
208CLEANFILES = \
209	marshal.h \
210	marshal.c
211