]> git.draconx.ca Git - aspectbin.git/blobdiff - examples/Makefile.am
Add an example program which uses glade.
[aspectbin.git] / examples / Makefile.am
index f8632c90470add22c2e42c42f66dafafb10e68fd..1ac8dd4b7b3bd4f0af3e6d58c55e06c73559a8b5 100644 (file)
@@ -1,4 +1,4 @@
-bin_PROGRAMS = simplebuttons
+noinst_PROGRAMS = simplebuttons
 
 AM_CPPFLAGS = -I$(top_srcdir)
 
@@ -6,3 +6,11 @@ simplebuttons_SOURCES = simplebuttons.c
 simplebuttons_CFLAGS  = $(GTK_CFLAGS)
 simplebuttons_LDFLAGS = $(GTK_LIBS)
 simplebuttons_LDADD   = $(top_builddir)/libaspectbin.la
+
+if BUILD_LIBGLADE
+noinst_PROGRAMS     += glade_simple
+glade_simple_SOURCES = glade_simple.c
+glade_simple_CFLAGS  = $(GTK_CFLAGS) $(LIBGLADE_CFLAGS)
+glade_simple_LDFLAGS = $(GTK_LIBS)   $(LIBGLADE_LIBS) -static
+glade_simple_LDADD   = $(top_builddir)/libaspectbin.la
+endif