2 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
3 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
4 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
5 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 # $Id: Makefile 19082 2008-11-10 23:54:24Z zagor $
10 MIKMODSRCDIR
:= $(APPSDIR
)/plugins
/mikmod
11 MIKMODBUILDDIR
:= $(BUILDDIR
)/apps
/plugins
/mikmod
13 ROCKS
+= $(MIKMODBUILDDIR
)/mikmod.rock
15 MIKMOD_SRC
:= $(call preprocess
, $(MIKMODSRCDIR
)/SOURCES
)
16 MIKMOD_OBJ
:= $(call c2obj
, $(MIKMOD_SRC
))
18 # add source files to OTHER_SRC to get automatic dependencies
19 OTHER_SRC
+= $(MIKMOD_SRC
)
21 MIKMODCFLAGS
= $(PLUGINFLAGS
) -I
$(MIKMODSRCDIR
) -O2
23 $(MIKMODBUILDDIR
)/mikmod.rock
: $(MIKMOD_OBJ
) $(CODECDIR
)/libtlsf.a
25 # new rule needed to use extra compile flags
26 $(MIKMODBUILDDIR
)/%.o
: $(MIKMODSRCDIR
)/%.c
27 $(SILENT
)mkdir
-p
$(dir $@
)
28 $(call PRINTS
,CC
$(subst $(ROOTDIR
)/,,$<))$(CC
) $(MIKMODCFLAGS
) -c
$< -o
$@