Use the common autotools module that was added in the last commit so that we can clean up the various Makefile.am's in gdk/ and gtk/, and also make more Visual Studio projects completed during 'make dist', by adding minimal items to those other Makefile.am's. This also allows us to make the property sheets that does the copying of headers and built items completed at 'make dist', so that we won't have to worry too much about headers being added (although it would be unlikely for GTK+-2.x).
118 lines
2.4 KiB
Makefile
118 lines
2.4 KiB
Makefile
## Makefile.am for gtk+/demos
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
democodedir=$(datadir)/gtk-2.0/demo
|
|
|
|
## These should be in the order you want them to appear in the
|
|
## demo app, which means alphabetized by demo title, not filename
|
|
demos = \
|
|
appwindow.c \
|
|
assistant.c \
|
|
builder.c \
|
|
button_box.c \
|
|
changedisplay.c \
|
|
clipboard.c \
|
|
colorsel.c \
|
|
combobox.c \
|
|
dialog.c \
|
|
drawingarea.c \
|
|
editable_cells.c \
|
|
entry_buffer.c \
|
|
entry_completion.c \
|
|
expander.c \
|
|
hypertext.c \
|
|
iconview.c \
|
|
iconview_edit.c \
|
|
images.c \
|
|
infobar.c \
|
|
links.c \
|
|
list_store.c \
|
|
menus.c \
|
|
offscreen_window.c \
|
|
offscreen_window2.c \
|
|
panes.c \
|
|
pickers.c \
|
|
pixbufs.c \
|
|
printing.c \
|
|
rotated_text.c \
|
|
search_entry.c \
|
|
sizegroup.c \
|
|
spinner.c \
|
|
stock_browser.c \
|
|
textview.c \
|
|
textscroll.c \
|
|
toolpalette.c \
|
|
tree_store.c \
|
|
ui_manager.c
|
|
|
|
INCLUDES = \
|
|
-DDEMOCODEDIR="\"$(democodedir)\"" \
|
|
-I$(top_srcdir) \
|
|
-I$(top_builddir)/gdk \
|
|
-DGDK_DISABLE_DEPRECATED \
|
|
-DGTK_DISABLE_DEPRECATED \
|
|
$(GTK_DEBUG_FLAGS) \
|
|
$(GTK_DEP_CFLAGS)
|
|
|
|
DEPS = \
|
|
$(top_builddir)/gdk/$(gdktargetlib) \
|
|
$(top_builddir)/gtk/$(gtktargetlib)
|
|
|
|
LDADDS = \
|
|
$(top_builddir)/gdk/$(gdktargetlib) \
|
|
$(top_builddir)/gtk/$(gtktargetlib) \
|
|
$(GTK_DEP_LIBS) \
|
|
-lm
|
|
|
|
bin_PROGRAMS = gtk-demo
|
|
|
|
BUILT_SOURCES = demos.h
|
|
|
|
EXTRA_DIST += \
|
|
$(IMAGEFILES) \
|
|
demo.ui
|
|
|
|
demos.h: @REBUILD@ $(demos) geninclude.pl
|
|
(here=`pwd` ; cd $(srcdir) && $(PERL) $$here/geninclude.pl $(demos)) > demos.h
|
|
|
|
gtk_demo_SOURCES = \
|
|
$(demos) \
|
|
demo-common.h \
|
|
main.c \
|
|
demos.h
|
|
|
|
gtk_demo_DEPENDENCIES = $(DEPS)
|
|
gtk_demo_LDADD = $(LDADDS)
|
|
gtk_demo_LDFLAGS = -export-dynamic
|
|
|
|
IMAGEFILES= alphatest.png \
|
|
apple-red.png \
|
|
background.jpg \
|
|
floppybuddy.gif \
|
|
gnome-applets.png \
|
|
gnome-calendar.png \
|
|
gnome-fs-directory.png \
|
|
gnome-fs-regular.png \
|
|
gnome-foot.png \
|
|
gnome-gimp.png \
|
|
gnome-gmush.png \
|
|
gnome-gsame.png \
|
|
gnu-keys.png \
|
|
gtk-logo-rgb.gif
|
|
|
|
democode_DATA = $(demos) $(IMAGEFILES) demo.ui
|
|
|
|
# ------------------- MSVC Projects --------------------
|
|
MSVCPROJS = gtk-demo
|
|
|
|
gtk_demo_FILES = $(gtk_demo_SOURCES)
|
|
gtk_demo_EXCLUDES = gtkdemodummy
|
|
|
|
include $(top_srcdir)/build/Makefile.msvcproj
|
|
|
|
dist-hook: $(top_builddir)/build/win32/vs9/gtk-demo.vcproj
|
|
|
|
DISTCLEANFILES = demos.h
|
|
|
|
-include $(top_srcdir)/git.mk
|