From 2b13c1516e85060dc9cf4fd68fafa7459eee73fc Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 20 Feb 2013 08:06:55 -0500 Subject: Define installation directory preprocessor macros. --- (limited to 'data') diff --git a/data/maps/Makefile.am b/data/maps/Makefile.am index fd7038c..b86328a 100644 --- a/data/maps/Makefile.am +++ b/data/maps/Makefile.am @@ -1,5 +1,7 @@ mapsdir = $(pkgdatadir)/maps +AM_CPPFLAGS += -DMAPSDIR=\"$(mapsdir)\" + dist_maps_DATA = \ data/maps/forest1-8bit.tmx \ data/maps/town1.tmx \ diff --git a/data/tilesets/Makefile.am b/data/tilesets/Makefile.am index 146aad6..ceb0381 100644 --- a/data/tilesets/Makefile.am +++ b/data/tilesets/Makefile.am @@ -4,6 +4,8 @@ tilesets_sources = \ tilesetsdir = $(pkgdatadir)/tilesets +AM_CPPFLAGS += -DTILESETSDIR=\"$(tilesetsdir)\" + tilesets_DATA = \ data/tilesets/collision.png \ data/tilesets/mountain_landscape_19-16-8bit.png -- cgit v0.9.1