summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am7
-rw-r--r--src/Makefile.am10
-rw-r--r--src/resources/Makefile.am3
3 files changed, 16 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index b7a392e..d2a7843 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,8 +1,8 @@
bin_PROGRAMS = sdlex
-sdlex_SOURCES = src/main.c src/init.c src/logging.c \
- src/base64.c src/compression.c \
- src/tmx.c src/resources/resource.c src/resources/image.c
+include $(top_srcdir)/src/Makefile.am
+
+sdlex_SOURCES = $(src_SOURCES)
sdlex_CFLAGS = $(GCC_CFLAGS) \
$(SDL_CFLAGS) \
@@ -14,4 +14,3 @@ sdlex_LDADD = $(SDL_LIBS) \
$(SDL_IMAGE_LIBS) \
$(ZLIB_LIBS) \
$(EXPAT_LIBS)
-
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..ac515cc
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,10 @@
+include $(top_srcdir)/src/resources/Makefile.am
+
+src_SOURCES = \
+ src/main.c \
+ src/init.c \
+ src/logging.c \
+ src/base64.c \
+ src/compression.c \
+ src/tmx.c \
+ $(src_resources_SOURCES)
diff --git a/src/resources/Makefile.am b/src/resources/Makefile.am
new file mode 100644
index 0000000..71ddc4b
--- /dev/null
+++ b/src/resources/Makefile.am
@@ -0,0 +1,3 @@
+src_resources_SOURCES = \
+ src/resources/resource.c \
+ src/resources/image.c