Prepare new maemo release
[maemo-rb.git] / apps / plugins / midi / midi.make
blob549d8e7c0a0b2f6167425703653742678edec99c
1 # __________ __ ___.
2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
6 # \/ \/ \/ \/ \/
7 # $Id$
10 MIDISRCDIR := $(APPSDIR)/plugins/midi
11 MIDIBUILDDIR := $(BUILDDIR)/apps/plugins/midi
13 ROCKS += $(MIDIBUILDDIR)/midi.rock
15 MIDI_SRC := $(call preprocess, $(MIDISRCDIR)/SOURCES)
16 MIDI_OBJ := $(call c2obj, $(MIDI_SRC))
18 # add source files to OTHER_SRC to get automatic dependencies
19 OTHER_SRC += $(MIDI_SRC)
21 MIDICFLAGS = $(PLUGINFLAGS) -O2
23 $(MIDIBUILDDIR)/midi.rock: $(MIDI_OBJ)
25 # new rule needed to use extra compile flags
26 $(MIDIBUILDDIR)/%.o: $(MIDISRCDIR)/%.c
27 $(SILENT)mkdir -p $(dir $@)
28 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(MIDICFLAGS) -c $< -o $@