Subversion Repositories svn.mios32

Rev

Rev 2485 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1313 tk 1
# $Id: Makefile 2531 2017-10-11 22:55:38Z 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 \
1313 tk 61
		core/seq_file_hw.c \
1316 tk 62
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_layer.c \
63
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_random.c \
64
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_trg.c \
65
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_par.c \
1319 tk 66
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_mixer.c \
67
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_song.c \
1316 tk 68
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_terminal.c \
69
		$(MIDIBOX_SEQ_V4_PATH)/core/seq_statistics.c
1313 tk 70
 
71
# (following source stubs not relevant for Cortex M3 derivatives)
72
THUMB_AS_SOURCE =
73
ARM_SOURCE      =
74
ARM_AS_SOURCE   =
75
 
76
C_INCLUDE = 	-I mios32 \
1316 tk 77
		-I core \
78
		-I $(MIDIBOX_SEQ_V4_PATH)/core
1313 tk 79
 
80
A_INCLUDE = 	-I .
81
 
82
LIBS =
83
 
84
 
85
################################################################################
86
# Remaining variables
87
################################################################################
88
 
89
LD_FILE   = 	$(MIOS32_PATH)/etc/ld/$(FAMILY)/$(PROCESSOR).ld
90
PROJECT   = 	project
91
 
92
DEBUG     =	-g
93
OPTIMIZE  =	-Os
94
 
1316 tk 95
###
96
# --> HERE WE SELECT THE MBSEQV4L VARIANT
97
###
98
CFLAGS =	$(DEBUG) $(OPTIMIZE) -DMBSEQV4L
1313 tk 99
 
100
 
101
################################################################################
102
# Include source modules via additional makefiles
103
################################################################################
104
 
105
# sources of programming model
106
include $(MIOS32_PATH)/programming_models/traditional/programming_model.mk
107
 
108
# application specific LCD driver (selected via makefile variable)
109
include $(MIOS32_PATH)/modules/app_lcd/$(LCD)/app_lcd.mk
110
 
111
# AOUT Driver
112
include $(MIOS32_PATH)/modules/aout/aout.mk
113
 
2485 tk 114
# WS2812 RGB LED strip driver
115
include $(MIOS32_PATH)/modules/ws2812/ws2812.mk
116
 
1313 tk 117
# generic sequencer modules
118
include $(MIOS32_PATH)/modules/sequencer/sequencer.mk
119
 
120
# Notestack functions
121
include $(MIOS32_PATH)/modules/notestack/notestack.mk
122
 
123
# BLM_CHEAPO driver
124
include $(MIOS32_PATH)/modules/blm_cheapo/blm_cheapo.mk
125
 
2263 tk 126
# BLM_SCALAR_MASTER
127
include $(MIOS32_PATH)/modules/blm_scalar_master/blm_scalar_master.mk
128
 
1319 tk 129
# MIDI file Player
130
include $(MIOS32_PATH)/modules/midifile/midifile.mk
131
 
1313 tk 132
# FATFS Driver
133
include $(MIOS32_PATH)/modules/fatfs/fatfs.mk
134
 
135
# FILE Access Layer
136
include $(MIOS32_PATH)/modules/file/file.mk
137
 
138
# Portable randomize module
139
include $(MIOS32_PATH)/modules/random/random.mk
140
 
141
# USB Mass Storage Device Driver
142
include $(MIOS32_PATH)/modules/msd/msd.mk
143
 
144
# For performance measurings
145
include $(MIOS32_PATH)/modules/freertos_utils/freertos_utils.mk
146
 
147
# UIP driver
148
include $(MIOS32_PATH)/modules/uip/uip.mk
149
 
150
# UIP Standard Task (with OSC Client/Server)
151
include $(MIOS32_PATH)/modules/uip_task_standard/uip_task_standard.mk
152
 
153
# common make rules
1820 tk 154
# Please keep this include statement at the end of this Makefile. Add new modules above.
1313 tk 155
include $(MIOS32_PATH)/include/makefile/common.mk
2030 tk 156
 
157
 
158
# ensure that midibox_seq_v4 directory (contains .o files for build) will be removed as well!
159
clean:
160
	rm -rf project_build
161
	rm -rf midibox_seq_v4