Subversion Repositories svn.mios32

Rev

Rev 2531 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1313 tk 1
# $Id: Makefile 2635 2019-01-06 17:14:01Z tk $
2
 
3
################################################################################
4
# following setup taken from environment variables
5
################################################################################
6
 
7
PROCESSOR =	$(MIOS32_PROCESSOR)
8
FAMILY    = 	$(MIOS32_FAMILY)
9
BOARD	  = 	$(MIOS32_BOARD)
10
LCD       =     $(MIOS32_LCD)
11
 
12
 
13
################################################################################
14
# Source Files, include paths and libraries
15
################################################################################
16
 
1316 tk 17
# path to complete MBSEQ V4 application
18
MIDIBOX_SEQ_V4_PATH = ../midibox_seq_v4
19
# midibox_seq_v4_lite only contains different files where a selection
20
# via "#ifdef MBSEQV4L" doesn't make sense
21
 
1318 tk 22
THUMB_SOURCE    = $(MIDIBOX_SEQ_V4_PATH)/core/app.c \
1316 tk 23
		$(MIDIBOX_SEQ_V4_PATH)/mios32/tasks.c \
1313 tk 24
		core/seq_hwcfg.c  \
25
		core/seq_ui.c  \
26
		core/seq_ui_pages.c \
27
		core/seq_ui_util.c \
1336 tk 28
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_led.c \
2531 tk 29
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_blm8x8.c \
1345 tk 30
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_tpd.c \
1316 tk 31
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_cv.c \
32
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_midi_port.c \
33
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_midi_in.c \
34
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_midi_sysex.c \
35
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_midi_router.c \
1319 tk 36
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_midply.c \
37
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_midexp.c \
38
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_midimp.c \
39
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_blm.c \
1316 tk 40
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_cc.c  \
41
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_core.c \
42
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_scale.c \
43
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_groove.c \
44
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_morph.c \
45
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_humanize.c \
2131 tk 46
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_robotize.c \
1316 tk 47
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_lfo.c \
48
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_chord.c \
49
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_pattern.c \
50
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_record.c \
51
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_live.c \
52
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_file.c \
53
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_file_b.c \
1319 tk 54
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_file_m.c \
55
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_file_s.c \
1316 tk 56
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_file_t.c \
57
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_file_g.c \
58
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_file_c.c \
59
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_file_gc.c \
1319 tk 60
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_file_bm.c \
2635 tk 61
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_file_presets.c \
1313 tk 62
		core/seq_file_hw.c \
1316 tk 63
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_layer.c \
64
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_random.c \
65
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_trg.c \
66
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_par.c \
1319 tk 67
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_mixer.c \
68
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_song.c \
1316 tk 69
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_terminal.c \
70
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_statistics.c
1313 tk 71
 
72
# (following source stubs not relevant for Cortex M3 derivatives)
73
THUMB_AS_SOURCE =
74
ARM_SOURCE      =
75
ARM_AS_SOURCE   =
76
 
77
C_INCLUDE = 	-I mios32 \
1316 tk 78
		-I core \
79
		-I $(MIDIBOX_SEQ_V4_PATH)/core
1313 tk 80
 
81
A_INCLUDE = 	-I .
82
 
83
LIBS =
84
 
85
 
86
################################################################################
87
# Remaining variables
88
################################################################################
89
 
90
LD_FILE   = 	$(MIOS32_PATH)/etc/ld/$(FAMILY)/$(PROCESSOR).ld
91
PROJECT   = 	project
92
 
93
DEBUG     =	-g
94
OPTIMIZE  =	-Os
95
 
1316 tk 96
###
97
# --> HERE WE SELECT THE MBSEQV4L VARIANT
98
###
99
CFLAGS =	$(DEBUG) $(OPTIMIZE) -DMBSEQV4L
1313 tk 100
 
101
 
102
################################################################################
103
# Include source modules via additional makefiles
104
################################################################################
105
 
106
# sources of programming model
107
include $(MIOS32_PATH)/programming_models/traditional/programming_model.mk
108
 
109
# application specific LCD driver (selected via makefile variable)
110
include $(MIOS32_PATH)/modules/app_lcd/$(LCD)/app_lcd.mk
111
 
112
# AOUT Driver
113
include $(MIOS32_PATH)/modules/aout/aout.mk
114
 
2485 tk 115
# WS2812 RGB LED strip driver
116
include $(MIOS32_PATH)/modules/ws2812/ws2812.mk
117
 
1313 tk 118
# generic sequencer modules
119
include $(MIOS32_PATH)/modules/sequencer/sequencer.mk
120
 
121
# Notestack functions
122
include $(MIOS32_PATH)/modules/notestack/notestack.mk
123
 
124
# BLM_CHEAPO driver
125
include $(MIOS32_PATH)/modules/blm_cheapo/blm_cheapo.mk
126
 
2263 tk 127
# BLM_SCALAR_MASTER
128
include $(MIOS32_PATH)/modules/blm_scalar_master/blm_scalar_master.mk
129
 
1319 tk 130
# MIDI file Player
131
include $(MIOS32_PATH)/modules/midifile/midifile.mk
132
 
1313 tk 133
# FATFS Driver
134
include $(MIOS32_PATH)/modules/fatfs/fatfs.mk
135
 
136
# FILE Access Layer
137
include $(MIOS32_PATH)/modules/file/file.mk
138
 
139
# Portable randomize module
140
include $(MIOS32_PATH)/modules/random/random.mk
141
 
142
# USB Mass Storage Device Driver
143
include $(MIOS32_PATH)/modules/msd/msd.mk
144
 
145
# For performance measurings
146
include $(MIOS32_PATH)/modules/freertos_utils/freertos_utils.mk
147
 
148
# UIP driver
149
include $(MIOS32_PATH)/modules/uip/uip.mk
150
 
151
# UIP Standard Task (with OSC Client/Server)
152
include $(MIOS32_PATH)/modules/uip_task_standard/uip_task_standard.mk
153
 
154
# common make rules
1820 tk 155
# Please keep this include statement at the end of this Makefile. Add new modules above.
1313 tk 156
include $(MIOS32_PATH)/include/makefile/common.mk
2030 tk 157
 
158
 
159
# ensure that midibox_seq_v4 directory (contains .o files for build) will be removed as well!
160
clean:
161
	rm -rf project_build
162
	rm -rf midibox_seq_v4