1## Makefile.am for libgda-ui demos 2 3democodedir=$(datadir)/libgda-$(GDA_ABI_MAJOR_VERSION).$(GDA_ABI_MINOR_VERSION)/demo 4 5if PLATFORM_WIN32 6EXTRALDFLAGS=-mwindows 7else 8EXTRALDFLAGS= 9endif 10 11## These should be in the order you want them to appear in the 12## demo app, which means alphabetized by demo title, not filename 13demos = \ 14 basic_form.c \ 15 data_model_dir.c \ 16 form.c \ 17 form_rw.c \ 18 form_pict.c \ 19 form_data_layout.c \ 20 form_model_change.c \ 21 grid.c \ 22 grid_rw.c \ 23 grid_pict.c \ 24 grid_data_layout.c \ 25 grid_model_change.c \ 26 linked_grid_form.c \ 27 linked_model_param.c \ 28 ddl_queries.c \ 29 login.c \ 30 provider_sel.c \ 31 tree.c \ 32 cloud.c \ 33 combo.c 34 35demofiles = demo_db.db custom_layout.xml 36 37AM_CPPFLAGS = \ 38 -I$(top_srcdir) \ 39 -I$(top_srcdir)/libgda \ 40 -I$(top_builddir) \ 41 -I$(top_builddir)/libgda \ 42 $(COREDEPS_CFLAGS) \ 43 $(COREDEPS_WFLAGS) \ 44 $(GTK_CFLAGS) \ 45 -DPREFIX=\""$(prefix)"\" \ 46 -DSYSCONFDIR=\""$(sysconfdir)"\" \ 47 -DDATADIR=\""$(datadir)"\" \ 48 -DLIBDIR=\""$(libdir)"\" 49 50bin_PROGRAMS = gdaui-demo-5.0 51 52BUILT_SOURCES = demos.h 53 54demos.h: $(demos) geninclude.pl 55 (here=`pwd` ; cd $(srcdir) && $(PERL) $$here/geninclude.pl $(demos)) > demos.h 56 57gdaui_demo_5_0_SOURCES = \ 58 $(demos) \ 59 demo-common.h \ 60 main.c \ 61 demos.h 62 63gdaui_demo_5_0_DEPENDENCIES = $(DEPS) 64gdaui_demo_5_0_LDFLAGS = $(EXTRALDFLAGS) 65gdaui_demo_5_0_LDADD = \ 66 $(top_builddir)/libgda/libgda-5.0.la \ 67 $(top_builddir)/libgda-ui/libgda-ui-5.0.la \ 68 $(COREDEPS_LIBS) $(GTK_LIBS) 69 70democode_DATA = $(demos) $(demofiles) 71 72DISTCLEANFILES = demos.h 73EXTRA_DIST = $(demofiles) 74