2009-02-26 10:20:28 +00:00
|
|
|
ifndef V
|
2008-12-16 08:57:57 +00:00
|
|
|
SILENT = @
|
2009-02-26 10:20:28 +00:00
|
|
|
endif
|
2008-12-15 23:42:19 +00:00
|
|
|
INCLUDE = -I../../firmware/export \
|
2009-10-06 21:08:59 +00:00
|
|
|
-I../../apps -I../../apps/gui -I../../uisimulator/sdl -I/usr/include/SDL
|
2008-12-15 23:42:19 +00:00
|
|
|
FIRMINC = -I../../firmware/include -fno-builtin
|
|
|
|
DEFINES = -D__PCTOOL__ -DHAVE_TAGCACHE -DSIMULATOR -DCONFIG_CODEC=1 \
|
|
|
|
-DROCKBOX_LITTLE_ENDIAN -DROCKBOX_DIR=\".rockbox\" -DROCKBOX_HAS_LOGF \
|
|
|
|
-DCONFIG_CODEC=1
|
|
|
|
CFLAGS = -g $(INCLUDE) $(DEFINES) -Wno-pointer-sign
|
|
|
|
|
2009-10-07 09:49:01 +00:00
|
|
|
SRC = database.c tagcache.c replaygain.c \
|
|
|
|
metadata.c metadata_common.c mp3data.c \
|
|
|
|
a52.c mp3.c adx.c mp4.c aiff.c mpc.c ape.c ogg.c \
|
|
|
|
asap.c sid.c asf.c spc.c flac.c vorbis.c wave.c \
|
2010-02-24 12:11:39 +00:00
|
|
|
mod.c wavpack.c monkeys.c rm.c nsf.c smaf.c \
|
2009-10-07 09:49:01 +00:00
|
|
|
logf.c unicode.c ctype.c structec.c crc32.c io.c \
|
|
|
|
misc.c strlcpy.c fixedpoint.c
|
2008-12-15 23:42:19 +00:00
|
|
|
|
|
|
|
OBJ = $(SRC:.c=.o)
|
|
|
|
|
|
|
|
# source code search path
|
|
|
|
VPATH = ../../apps ../../apps/metadata ../../firmware/common ../../firmware/ \
|
|
|
|
../../uisimulator/common
|
|
|
|
|
2009-02-26 10:20:28 +00:00
|
|
|
TARGET= database
|
|
|
|
|
|
|
|
all: $(TARGET)
|
2008-12-15 23:42:19 +00:00
|
|
|
|
|
|
|
%.o : ../../uisimulator/common/%.c
|
2008-12-16 08:57:57 +00:00
|
|
|
@echo CC $(<F)
|
|
|
|
$(SILENT)$(CC) $(CFLAGS) -c -o $@ $<
|
2008-12-15 23:42:19 +00:00
|
|
|
|
|
|
|
%.o : %.c $<
|
2008-12-16 08:57:57 +00:00
|
|
|
@echo CC $(<F)
|
|
|
|
$(SILENT)$(CC) $(FIRMINC) $(CFLAGS) -c -o $@ $<
|
2008-12-15 23:42:19 +00:00
|
|
|
|
|
|
|
database: $(OBJ)
|
2008-12-16 08:57:57 +00:00
|
|
|
@echo LD $@
|
|
|
|
$(SILENT)$(CC) -g -ldl -o $@ $+
|
2008-12-15 23:42:19 +00:00
|
|
|
|
|
|
|
clean:
|
2009-02-26 10:20:28 +00:00
|
|
|
rm -f $(OBJ) $(TARGET)
|