Mercurial > hg > dmlib
diff Makefile.gen @ 166:112eb95f2fba
Improve build system granularity.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 06 Oct 2012 08:31:37 +0300 |
parents | a49d431ff40e |
children | 63ff0fb944cd |
line wrap: on
line diff
--- a/Makefile.gen Sat Oct 06 08:11:47 2012 +0300 +++ b/Makefile.gen Sat Oct 06 08:31:37 2012 +0300 @@ -40,6 +40,7 @@ ### Filesystem ### ifeq ($(DM_USE_PACKFS),yes) +BUILD_RES=yes DM_CFLAGS += -DDM_USE_PACKFS DMLIB_OBJS += dmpack.o dmpackutil.o DM_LDFLAGS += -lz @@ -49,9 +50,18 @@ endif ifeq ($(DM_USE_STDIO),yes) +BUILD_RES=yes DM_CFLAGS += -DDM_USE_STDIO endif +ifeq ($(DM_USE_MEMIO),yes) +BUILD_RES=yes +DM_CFLAGS += -DDM_USE_MEMIO +endif + +ifeq ($(BUILD_RES),yes) +DMLIB_OBJS += dmres.o dmresw.o +endif ### ### Graphics support @@ -76,9 +86,11 @@ DM_CFLAGS += -DDM_GFX_BM_TEXT DMLIB_OBJS += dmtext_bm.o ifeq ($(DM_BUILD_TOOLS),yes) +ifeq ($(DM_USE_STDIO),yes) BINARIES += fontconv endif endif +endif ifeq ($(DM_GFX_TTF_TEXT),yes) DM_CFLAGS += -DDM_GFX_TTF_TEXT @@ -86,10 +98,12 @@ ifeq ($(DM_BUILD_TESTS),yes) ifeq ($(DM_GFX_BLITS),yes) +ifeq ($(DM_USE_STDIO),yes) BINARIES += blittest vview vptest efu endif endif endif +endif ifeq ($(DM_GFX_8BIT),yes) DM_CFLAGS += -DDM_GFX_8BIT @@ -161,7 +175,14 @@ ifeq ($(DM_BUILD_TOOLS),yes) ifeq ($(DM_USE_STDIO),yes) ifeq ($(SUP_MODLOAD),yes) -BINARIES+= viewmod mod2wav testpl ppl +BINARIES+= viewmod mod2wav testpl +ifeq ($(DM_GFX_BM_TEXT),yes) +ifeq ($(DM_GFX_BLITS),yes) +ifeq ($(DM_GFX_MISC),yes) +BINARIES+= ppl +endif +endif +endif endif ifeq ($(JSS_SUP_JSSMOD),yes) @@ -177,6 +198,7 @@ endif + ### ### Rest of the rules ### @@ -190,7 +212,7 @@ DMLIB_A=$(OBJPATH)dmlib.a DMLIB_OBJS += dmfile.o dmlib.o dmlerp.o dmstring.o \ dmargs.o dmvecmat.o dmperlin.o dmimage.o \ - dmres.o dmresw.o dmsimple.o + dmsimple.o ifeq ($(DM_BUILD_TESTS),yes) BINARIES += vecmattest fptest