summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-07-10 14:25:45 +0000
committerThomas Martitz <kugel@rockbox.org>2010-07-10 14:25:45 +0000
commit463be793c6ebb32ea714d3e7005a9b41ff460931 (patch)
treeffeef83357bf32784d60bc9d15be49b2f0f8e37c /tools
parent57613ea5fafb8ba4555755074e7d6ad768fb8a68 (diff)
downloadrockbox-463be793c6ebb32ea714d3e7005a9b41ff460931.tar.gz
rockbox-463be793c6ebb32ea714d3e7005a9b41ff460931.tar.bz2
rockbox-463be793c6ebb32ea714d3e7005a9b41ff460931.zip
Revert accidental change (I ran configure from within the tools/database directory).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27373 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r--tools/database/Makefile104
1 files changed, 39 insertions, 65 deletions
diff --git a/tools/database/Makefile b/tools/database/Makefile
index 09b58b5954..5828b20c09 100644
--- a/tools/database/Makefile
+++ b/tools/database/Makefile
@@ -1,69 +1,43 @@
-## Automatically generated. http://www.rockbox.org/
+ifndef V
+SILENT = @
+endif
+INCLUDE = -I../../firmware/export \
+ -I../../apps -I../../apps/gui -I../../uisimulator/sdl -I/usr/include/SDL
+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
-export ROOTDIR=/home/kugel/rbdev/rockbox-git
-export FIRMDIR=$(ROOTDIR)/firmware
-export APPSDIR=$(ROOTDIR)/tools/database
-export TOOLSDIR=$(ROOTDIR)/tools
-export DOCSDIR=$(ROOTDIR)/docs
-export MANUALDIR=${ROOTDIR}/manual
-export DEBUG=
-export MODELNAME=iriverh300
-export ARCHOSROM=
-export FLASHFILE=
-export TARGET_ID=10
-export TARGET=-DIRIVER_H300
-export CPU=
-export MANUFACTURER=iriver
-export OBJDIR=/home/kugel/rbdev/rockbox-git/tools/database
-export BUILDDIR=/home/kugel/rbdev/rockbox-git/tools/database
-export LANGUAGE=english
-export VOICELANGUAGE=
-export MEMORYSIZE=32
-export BUILDDATE:=$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
-export MKFIRMWARE=/home/kugel/rbdev/rockbox-git/tools/scramble -add=h300
-export BMP2RB_MONO=/home/kugel/rbdev/rockbox-git/tools/bmp2rb -f 0
-export BMP2RB_NATIVE=/home/kugel/rbdev/rockbox-git/tools/bmp2rb -f 4
-export BMP2RB_REMOTEMONO=/home/kugel/rbdev/rockbox-git/tools/bmp2rb -f 0
-export BMP2RB_REMOTENATIVE=/home/kugel/rbdev/rockbox-git/tools/bmp2rb -f 0
-export BINARY=database.iriverh300
-export APPEXTRA=recorder:gui:radio
-export ENABLEDPLUGINS=yes
-export SOFTWARECODECS=yes
-export EXTRA_DEFINES=
-export HOSTCC=/usr/bin/gcc
-export HOSTAR=/usr/bin/ar
-export CC=/usr/bin/ccache /usr/bin/gcc
-export LD=/usr/bin/ar
-export AR=/usr/bin/ar
-export AS=/usr/bin/as
-export OC=/usr/bin/objcopy
-export WINDRES=windres
-export DLLTOOL=dlltool
-export DLLWRAP=dllwrap
-export RANLIB=/usr/bin/ranlib
-export PREFIX=
-export PROFILE_OPTS=
-export APP_TYPE=database
-export SIMDIR=$(ROOTDIR)/uisimulator/sdl
-export GCCOPTS= -Wno-pointer-sign -Wno-override-init
-export TARGET_INC=
-export LOADADDRESS=
-export SHARED_FLAG=-shared
-export LDOPTS=-lm -ldl -L/home/kugel/.sdl/lib -Wl,-rpath,/home/kugel/.sdl/lib -lSDL -lpthread
-export GLOBAL_LDOPTS= -Wl,-z,defs
-export GCCVER=4.4.3
-export GCCNUM=404
-export UNAME=Linux
-export MANUALDEV=iriverh300
-export TTS_OPTS=
-export TTS_ENGINE=
-export ENC_OPTS=
-export ENCODER=
-export USE_ELF=
-export RBDIR=.rockbox
-export SDLCONFIG=/home/kugel/.sdl/bin/sdl-config
+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 \
+ mod.c wavpack.c monkeys.c rm.c nsf.c smaf.c \
+ logf.c unicode.c ctype.c structec.c crc32.c io.c \
+ misc.c strlcpy.c fixedpoint.c
-CONFIGURE_OPTIONS=--target=$(MODELNAME) --ram=$(MEMORYSIZE) --rbdir=$(RBDIR) --type=d --prefix=$(PREFIX)
+OBJ = $(SRC:.c=.o)
-include $(TOOLSDIR)/root.make
+# source code search path
+VPATH = ../../apps ../../apps/metadata ../../firmware/common ../../firmware/ \
+ ../../uisimulator/common
+TARGET= database
+
+all: $(TARGET)
+
+%.o : ../../uisimulator/common/%.c
+ @echo CC $(<F)
+ $(SILENT)$(CC) $(CFLAGS) -c -o $@ $<
+
+%.o : %.c $<
+ @echo CC $(<F)
+ $(SILENT)$(CC) $(FIRMINC) $(CFLAGS) -c -o $@ $<
+
+database: $(OBJ)
+ @echo LD $@
+ $(SILENT)$(CC) -g -ldl -o $@ $+
+
+clean:
+ rm -f $(OBJ) $(TARGET)