cardimagedir = $(datadir)/pixmaps/cards
icondir = $(datadir)/pixmaps
Gamesdir  = $(datadir)/applications
typesdir  = $(datadir)/sol-games

schemadir   = @GCONF_SCHEMA_FILE_DIR@
schema_in_files = aisleriot.schemas.in
schema_DATA = $(schema_in_files:.schemas.in=.schemas)
@INTLTOOL_SCHEMAS_RULE@

SUBDIRS=help

INCLUDES =  \
	-I$(top_srcdir)/gdk-card-image	 	   \
	-I$(top_srcdir)/libgames-support           \
	-DDATADIR=\""$(datadir)"\"		   \
	$(GNOME_GAMES_CFLAGS)			   \
	@UCB_CFLAGS@				   \
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"   \
	-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED \
	-DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED \
	$(GUILE_INCS)

bin_PROGRAMS = sol

sol_SOURCES = 		\
	card.h		\
	cscmi.h		\
	dialog.h	\
	draw.h		\
	events.h	\
	menu.h		\
	press_data.h	\
	slot.h		\
	splash.h	\
	sol.h		\
	sol.c		\
	splash.c	\
	slot.c		\
	dialog.c	\
	cscmi.c		\
	events.c	\
	press_data.c	\
	draw.c		\
	menu.c		\
	card.c

sol_LDADD = $(GNOME_GAMES_LIBS) \
	../gdk-card-image/libgdkcardimage.la \
	../libgames-support/libgames-support.la \
	@UCB_LDFLAGS@ \
	$(GUILE_LIBS) 

types_DATA  = 		\
	agnes.scm	\
	auld_lang_syne.scm	\
	bakers_dozen.scm	\
	bakers_game.scm	\
	beleaguered_castle.scm	\
	bristol.scm	\
	camelot.scm	\
	canfield.scm	\
	chessboard.scm	\
	clock.scm	\
	cover.scm	\
	diamond_mine.scm	\
	doublets.scm	\
	eagle_wing.scm	\
	easthaven.scm	\
	eight_off.scm	\
	elevator.scm	\
	escalator.scm	\
	first_law.scm	\
	fortress.scm	\
	fortunes.scm	\
	fourteen.scm	\
	freecell.scm	\
	gay_gordons.scm	\
	glenwood.scm	\
	golf.scm	\
	gypsy.scm	\
	helsinki.scm	\
	hopscotch.scm	\
	isabel.scm	\
	jamestown.scm	\
	jumbo.scm	\
	kansas.scm	\
	king_albert.scm	\
	klondike.scm	\
	labyrinth.scm	\
	lady_jane.scm	\
	maze.scm	\
	monte_carlo.scm	\
	neighbor.scm	\
	odessa.scm	\
	osmosis.scm	\
	peek.scm	\
	pileon.scm	\
	poker.scm	\
	quatorze.scm	\
	royal_east.scm	\
	scorpion.scm	\
	scuffle.scm	\
	seahaven.scm	\
	sir_tommy.scm	\
	sol.scm		\
	spider.scm	\
	spiderette.scm	\
	straight_up.scm	\
	streets_and_alleys.scm	\
	ten_across.scm  \
	thieves.scm     \
	thirteen.scm	\
	thumb_and_pouch.scm	\
	treize.scm	\
	union_square.scm	\
	valentine.scm	\
	westhaven.scm	\
	whitehead.scm	\
	will_o_the_wisp.scm	\
	yield.scm	\
	yukon.scm	\
	zebra.scm	\
	plait.scm

cardimage_DATA = baize.png splash.png

icon_DATA = gnome-aisleriot.png gnome-cardgame.png

EXTRA_DIST = AUTHORS $(types_DATA) $(cardimage_DATA) \
	$(icon_DATA) sol.desktop.in freecell.desktop.in \
	template.scm translatable_game_names.h \
	$(schema_in_files)


sysdir = $(datadir)/applications/
sys_in_files = sol.desktop.in freecell.desktop.in
sys_DATA = $(sys_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

CLEANFILES = $(sys_DATA)

if GCONF_SCHEMAS_INSTALL
install-data-local:
	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA)
endif
