view config.mak @ 26:288e688aaac3

Build system improvements.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 19 Aug 2017 15:46:11 +0300
parents 80634079f275
children ed71c8bbeb76
line wrap: on
line source

# Additional binaries (aka the demo)
DEMO_BIN=demo
DEMO_OBJS=demo.o dmsimple.o

BPATH := $(shell pwd)
DMLIB := $(BPATH)/dmlib/
PACKAGE = $(BPATH)/ap-bussi.zip
BINPATH = $(BPATH)/bin/
DATA = $(BINPATH)/bussi.dat
MAKE ?= make

EXTRA_CFLAGS=-O3

TOOL_BINPATH=bin/
TESTS_BINPATH=$(TOOL_BINPATH)

#DM_CFLAGS += -fopenmp
#DM_LDFLAGS += -lgomp

#DM_DEBUG=yes

# Build engine tests and tools? (Please notice that what
# actually gets built it also affected by other options)
DM_BUILD_TESTS=no
DM_BUILD_TOOLS=no

# Timeline support? (required for editor and complex demos)
DM_USE_TIMELINE=no

# Build Qt based demo editor?
DM_BUILD_EDITOR=no

# Build with runtime asserts?
DM_USE_ASSERTS=yes

# Use plain C routines?
DM_USE_C=yes

# Use MMX/SSE SIMD assembler routines?
DM_USE_SIMD=yes

DM_USE_TREMOR=no

DM_USE_PACKFS=yes
DM_USE_STDIO=yes
DM_USE_MEMIO=no

DM_GFX_BM_TEXT=yes
DM_GFX_TTF_TEXT=no
DM_GFX_LINES=no
DM_GFX_BLITS=yes
DM_GFX_MISC=yes

DM_GFX_8BIT=yes
DM_GFX_32BIT=yes


###
### General build options for miniJSS
###
JSS=yes

# Build a special "light"/minimized version by removing all
# error messages and few other things. (disabled by DM_DEBUG=yes)
JSS_LIGHT=yes

# Build with extra debugging code? (disabled by JSS_LIGHT=yes)
JSS_DEBUG=yes


### Support loading of XM-format module files
JSS_SUP_XM=yes
#JSS_SUP_JSSMOD=yes

# Enable support for different pattern storage modes
# in the JSSMOD _loader_. Saving in xm2jss is not affected.
#JSSMOD_FLAGS = -DJM_SUP_PATMODE_ALL

# If SUP_PATMODE_ALL is not defined, then you can enable modes individually
# by uncommenting lines below. Refer to 'xm2jss --help' for mode information.
#JSSMOD_FLAGS += -DJM_SUP_PATMODE_1
#JSSMOD_FLAGS += -DJM_SUP_PATMODE_2
#JSSMOD_FLAGS += -DJM_SUP_PATMODE_3
JSSMOD_FLAGS += -DJM_SUP_PATMODE_4
#JSSMOD_FLAGS += -DJM_SUP_PATMODE_5

# Enable ext. instrument, instrument header and sampledata loading:
# (if you disable these, you better know what you are doing.)
JSSMOD_FLAGS += -DJM_SUP_EXT_INSTR
JSSMOD_FLAGS += -DJM_SUP_INSTR
JSSMOD_FLAGS += -DJM_SUP_SAMPLES


###
### Locking/thread support
###
JSS_SUP_THREADS=yes