annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 # Additional binaries (aka the demo)
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 DEMO_BIN=demo
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 DEMO_OBJS=demo.o dmsimple.o
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4
26
288e688aaac3 Build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 16
diff changeset
5 BPATH := $(shell pwd)
288e688aaac3 Build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 16
diff changeset
6 DMLIB := $(BPATH)/dmlib/
288e688aaac3 Build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 16
diff changeset
7 PACKAGE = $(BPATH)/ap-bussi.zip
288e688aaac3 Build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 16
diff changeset
8 BINPATH = $(BPATH)/bin/
288e688aaac3 Build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 16
diff changeset
9 DATA = $(BINPATH)/bussi.dat
288e688aaac3 Build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 16
diff changeset
10 MAKE ?= make
288e688aaac3 Build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 16
diff changeset
11
16
80634079f275 Import asset.
Matti Hamalainen <ccr@tnsp.org>
parents: 8
diff changeset
12 EXTRA_CFLAGS=-O3
80634079f275 Import asset.
Matti Hamalainen <ccr@tnsp.org>
parents: 8
diff changeset
13
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 TOOL_BINPATH=bin/
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 TESTS_BINPATH=$(TOOL_BINPATH)
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
8
0da5de9dcc75 Disable GOMP for now.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
17 #DM_CFLAGS += -fopenmp
0da5de9dcc75 Disable GOMP for now.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
18 #DM_LDFLAGS += -lgomp
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 #DM_DEBUG=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 # Build engine tests and tools? (Please notice that what
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 # actually gets built it also affected by other options)
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 DM_BUILD_TESTS=no
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 DM_BUILD_TOOLS=no
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 # Timeline support? (required for editor and complex demos)
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 DM_USE_TIMELINE=no
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 # Build Qt based demo editor?
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 DM_BUILD_EDITOR=no
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 # Build with runtime asserts?
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 DM_USE_ASSERTS=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 # Use plain C routines?
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 DM_USE_C=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39 # Use MMX/SSE SIMD assembler routines?
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 DM_USE_SIMD=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42 DM_USE_TREMOR=no
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44 DM_USE_PACKFS=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45 DM_USE_STDIO=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46 DM_USE_MEMIO=no
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
48 DM_GFX_BM_TEXT=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
49 DM_GFX_TTF_TEXT=no
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50 DM_GFX_LINES=no
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51 DM_GFX_BLITS=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52 DM_GFX_MISC=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
53
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
54 DM_GFX_8BIT=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
55 DM_GFX_32BIT=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
56
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
57
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
58 ###
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
59 ### General build options for miniJSS
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
60 ###
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
61 JSS=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
62
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
63 # Build a special "light"/minimized version by removing all
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
64 # error messages and few other things. (disabled by DM_DEBUG=yes)
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
65 JSS_LIGHT=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
66
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
67 # Build with extra debugging code? (disabled by JSS_LIGHT=yes)
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
68 JSS_DEBUG=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
69
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
70
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
71 ### Support loading of XM-format module files
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
72 JSS_SUP_XM=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
73 #JSS_SUP_JSSMOD=yes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
74
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
75 # Enable support for different pattern storage modes
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
76 # in the JSSMOD _loader_. Saving in xm2jss is not affected.
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
77 #JSSMOD_FLAGS = -DJM_SUP_PATMODE_ALL
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
78
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
79 # If SUP_PATMODE_ALL is not defined, then you can enable modes individually
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
80 # by uncommenting lines below. Refer to 'xm2jss --help' for mode information.
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
81 #JSSMOD_FLAGS += -DJM_SUP_PATMODE_1
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
82 #JSSMOD_FLAGS += -DJM_SUP_PATMODE_2
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
83 #JSSMOD_FLAGS += -DJM_SUP_PATMODE_3
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
84 JSSMOD_FLAGS += -DJM_SUP_PATMODE_4
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
85 #JSSMOD_FLAGS += -DJM_SUP_PATMODE_5
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
86
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
87 # Enable ext. instrument, instrument header and sampledata loading:
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
88 # (if you disable these, you better know what you are doing.)
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
89 JSSMOD_FLAGS += -DJM_SUP_EXT_INSTR
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
90 JSSMOD_FLAGS += -DJM_SUP_INSTR
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
91 JSSMOD_FLAGS += -DJM_SUP_SAMPLES
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
92
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
93
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
94 ###
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
95 ### Locking/thread support
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
96 ###
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
97 JSS_SUP_THREADS=yes