X-Git-Url: https://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/56d402a0f11e7e4dd7f0ddf6882ace22c63d0a8c..c9a36d684a771ffa32aa22b3cb257d6c693eebb8:/src/gui/Makefile.inc diff --git a/src/gui/Makefile.inc b/src/gui/Makefile.inc index ac8260f..ef14cf8 100644 --- a/src/gui/Makefile.inc +++ b/src/gui/Makefile.inc @@ -1,10 +1,29 @@ +# Copyright (C) 2010 Nick Bowler +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without any warranty. + if BUILD_LBXGUI +LBXGUI_GLADE = $(top_srcdir)/src/gui/lbxgui.glade +EXTRA_DIST += $(LBXGUI_GLADE) +CLEANFILES += src/gui/lbxgui_xml.c + +noinst_HEADERS += src/gui/bg.xbm src/gui/render.h + +src/gui/lbxgui_xml.c: $(LBXGUI_GLADE) + $(AM_V_GEN) sed -e 's/"/\\"/g' \ + -e 's/.*/"&"/' \ + -e '1 s/^/char lbxgui_xml[] =\n/' \ + -e '$$ s/$$/;/' $(LBXGUI_GLADE) > $@ + bin_PROGRAMS += lbxgui -lbxgui_SOURCES = src/gui/lbxgui.c -lbxgui_LDADD = liblbx.la $(GTK_LIBS) -lbxgui_CPPFLAGS = -I$(top_srcdir)/src -lbxgui_CFLAGS = $(GTK_CFLAGS) -lbxgui_LDFLAGS = $(AM_LDFLAGS) -export-dynamic +nodist_lbxgui_SOURCES = src/gui/lbxgui_xml.c +lbxgui_SOURCES = src/gui/render.c src/gui/lbxgui.c +lbxgui_LDADD = liblbx.la $(GTK_LIBS) +lbxgui_CPPFLAGS = -I$(top_srcdir)/src +lbxgui_CFLAGS = $(GTK_CFLAGS) +lbxgui_LDFLAGS = $(AM_LDFLAGS) -export-dynamic endif