annotate config.mak @ 53:554e3f02ba6f

Unify / update build system.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 03 Oct 2016 09:20:32 +0300
parents da89ff617886
children 301e379894ab 7daf69b39f34
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 31
diff changeset
1 # Additional binaries (aka the demo)
39
57d67886153e Update to latest engine changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 36
diff changeset
2 DEMO_BIN=krapula
53
554e3f02ba6f Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
3 DEMO_OBJS=demo.o dmsimple.o
554e3f02ba6f Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
4
554e3f02ba6f Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
5 TOOL_BINPATH=bin/
554e3f02ba6f Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
6 TESTS_BINPATH=$(TOOL_BINPATH)
36
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 31
diff changeset
7
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 # Build engine tests and tools? (Please notice that what
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 # actually gets built it also affected by other options)
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 DM_BUILD_TESTS=no
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 DM_BUILD_TOOLS=yes
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
40
9cbb03e85597 Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 39
diff changeset
13 # Timeline support? (required for editor and complex demos)
9cbb03e85597 Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 39
diff changeset
14 DM_USE_TIMELINE=no
9cbb03e85597 Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 39
diff changeset
15
9cbb03e85597 Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 39
diff changeset
16 # Build Qt based demo editor?
9cbb03e85597 Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 39
diff changeset
17 DM_BUILD_EDITOR=no
9cbb03e85597 Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 39
diff changeset
18
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 # Build with runtime asserts?
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 DM_USE_ASSERTS=yes
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 # Use plain C routines?
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 DM_USE_C=yes
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 # Use MMX/SSE SIMD assembler routines?
6
Matti Hamalainen <ccr@tnsp.org>
parents: 4
diff changeset
26 DM_USE_SIMD=yes
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27
26
077d08c442f7 Update to match latest engine changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 6
diff changeset
28 DM_USE_TREMOR=no
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29
31
c7703611ea04 Update to match with engine changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
30 DM_USE_PACKFS=yes
c7703611ea04 Update to match with engine changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
31 DM_USE_STDIO=no
c7703611ea04 Update to match with engine changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 26
diff changeset
32 DM_USE_MEMIO=no
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33
40
9cbb03e85597 Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents: 39
diff changeset
34 DM_GFX_BM_TEXT=yes
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 DM_GFX_TTF_TEXT=no
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 DM_GFX_LINES=no
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 DM_GFX_BLITS=yes
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38 DM_GFX_MISC=yes
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 DM_GFX_8BIT=yes
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41 DM_GFX_32BIT=yes
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44 ###
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45 ### General build options for miniJSS
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46 ###
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47 JSS=yes
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
48
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
49 # Build a special "light"/minimized version by removing all
53
554e3f02ba6f Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 48
diff changeset
50 # error messages and few other things. (disabled by DM_DEBUG=yes)
48
da89ff617886 Build light JSS.
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
51 JSS_LIGHT=yes
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
53 # Build with extra debugging code? (disabled by JSS_LIGHT=yes)
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
54 JSS_DEBUG=no
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
55
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
56
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
57 ### Support loading of XM-format module files
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
58 JSS_SUP_XM=yes
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
59
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
60
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
61 ### Generic support of JSSMOD-format modules
4
a039e8eebfb6 Disable jssmod support in the build configuration, as we do not need it.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
62 JSS_SUP_JSSMOD=no
0
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
63
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
64 # Enable support for different pattern storage modes
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
65 # in the JSSMOD _loader_. Saving in xm2jss is not affected.
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
66 JSSMOD_FLAGS = -DJM_SUP_PATMODE_ALL
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
67
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
68 # If SUP_PATMODE_ALL is not defined, then you can enable modes individually
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
69 # by uncommenting lines below. Refer to 'xm2jss --help' for mode information.
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
70 #JSSMOD_FLAGS += -DJM_SUP_PATMODE_1
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
71 #JSSMOD_FLAGS += -DJM_SUP_PATMODE_2
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
72 #JSSMOD_FLAGS += -DJM_SUP_PATMODE_3
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
73 #JSSMOD_FLAGS += -DJM_SUP_PATMODE_4
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
74 #JSSMOD_FLAGS += -DJM_SUP_PATMODE_5
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
75
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
76 # Enable ext. instrument, instrument header and sampledata loading:
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
77 # (if you disable these, you better know what you are doing.)
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
78 JSSMOD_FLAGS += -DJM_SUP_EXT_INSTR
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
79 JSSMOD_FLAGS += -DJM_SUP_INSTR
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
80 JSSMOD_FLAGS += -DJM_SUP_SAMPLES
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
81
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
82
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
83 ###
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
84 ### Locking/thread support
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
85 ###
c12a8dda22bb Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
86 JSS_SUP_THREADS=yes