Improve the highscore related functions in plugin lib (FS#10350)
[maemo-rb.git] / tools / database / Makefile
blob2c20bb7d251eecbe5e4195bb1c97a5eeff92525d
1 ifndef V
2 SILENT = @
3 endif
4 INCLUDE = -I../../firmware/export \
5 -I../../apps -I../../uisimulator/sdl -I/usr/include/SDL
6 FIRMINC = -I../../firmware/include -fno-builtin
7 DEFINES = -D__PCTOOL__ -DHAVE_TAGCACHE -DSIMULATOR -DCONFIG_CODEC=1 \
8 -DROCKBOX_LITTLE_ENDIAN -DROCKBOX_DIR=\".rockbox\" -DROCKBOX_HAS_LOGF \
9 -DCONFIG_CODEC=1
10 CFLAGS = -g $(INCLUDE) $(DEFINES) -Wno-pointer-sign
12 SRC = database.o tagcache.o replaygain.o \
13 metadata.o metadata_common.o mp3data.o \
14 a52.o mp3.o adx.o mp4.o aiff.o mpc.o ape.o ogg.o \
15 asap.o sid.o asf.o spc.o flac.o vorbis.o wave.o \
16 mod.o wavpack.o monkeys.o \
17 logf.o unicode.o ctype.o structec.o crc32.o io.o misc.o
19 OBJ = $(SRC:.c=.o)
21 # source code search path
22 VPATH = ../../apps ../../apps/metadata ../../firmware/common ../../firmware/ \
23 ../../uisimulator/common
25 TARGET= database
27 all: $(TARGET)
29 %.o : ../../uisimulator/common/%.c
30 @echo CC $(<F)
31 $(SILENT)$(CC) $(CFLAGS) -c -o $@ $<
33 %.o : %.c $<
34 @echo CC $(<F)
35 $(SILENT)$(CC) $(FIRMINC) $(CFLAGS) -c -o $@ $<
37 database: $(OBJ)
38 @echo LD $@
39 $(SILENT)$(CC) -g -ldl -o $@ $+
41 clean:
42 rm -f $(OBJ) $(TARGET)