From 63349a6230304a7f1aa34a4c96e4873f86bf39c5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 15 Feb 2013 18:18:07 -0500 Subject: Split Makefile.am in recursively-included files. The modular maintenance benefits of recursive make without any of the problems of recursive make! --- 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 -- cgit v0.9.1