summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am7
-rw-r--r--data/maps/local.mk4
-rw-r--r--data/tilesets/local.mk4
3 files changed, 6 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am
index b3b36ff..2dfb0d9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,6 @@
+mapsdir = $(pkgdatadir)/maps
+tilesetsdir = $(pkgdatadir)/tilesets
+
bin_PROGRAMS = sdlex
sdlex_SOURCES =
@@ -6,7 +9,9 @@ sdlex_CPPFLAGS = \
$(SDL_CFLAGS) \
$(SDL_IMAGE_CFLAGS) \
$(ZLIB_CFLAGS) \
- $(EXPAT_CFLAGS)
+ $(EXPAT_CFLAGS) \
+ -DMAPSDIR=\"$(mapsdir)\" \
+ -DTILESETSDIR=\"$(tilesetsdir)\"
sdlex_CFLAGS = \
$(GCC_CFLAGS)
diff --git a/data/maps/local.mk b/data/maps/local.mk
index 19070a4..99549d4 100644
--- a/data/maps/local.mk
+++ b/data/maps/local.mk
@@ -1,7 +1,3 @@
-mapsdir = $(pkgdatadir)/maps
-
-sdlex_CPPFLAGS += -DMAPSDIR=\"$(mapsdir)\"
-
dist_maps_DATA = \
data/maps/forest1-8bit.tmx \
data/maps/town1.tmx \
diff --git a/data/tilesets/local.mk b/data/tilesets/local.mk
index a646d90..f10db93 100644
--- a/data/tilesets/local.mk
+++ b/data/tilesets/local.mk
@@ -1,7 +1,3 @@
-tilesetsdir = $(pkgdatadir)/tilesets
-
-sdlex_CPPFLAGS += -DTILESETSDIR=\"$(tilesetsdir)\"
-
dist_tilesets_sources = \
data/tilesets/collision.xcf \
data/tilesets/mountain_landscape_19-16-8bit.xcf