summaryrefslogtreecommitdiff
path: root/tools/database/Makefile
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-07-10 13:49:49 +0000
committerThomas Martitz <kugel@rockbox.org>2010-07-10 13:49:49 +0000
commit57613ea5fafb8ba4555755074e7d6ad768fb8a68 (patch)
tree7e0d15688e3cf69718e2640eb6bf7b1a1e8c7661 /tools/database/Makefile
parente87ff2bf91b65d51f41f7db4df3632a30748002d (diff)
downloadrockbox-57613ea5fafb8ba4555755074e7d6ad768fb8a68.tar.gz
rockbox-57613ea5fafb8ba4555755074e7d6ad768fb8a68.zip
Rename/change SIMVER to APP_TYPE in the Makefiles.
SIMVER was really only used to detect a simulator build. With APP_TYPE you can now differentiate between simulator, application, checkwps and database builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27372 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/database/Makefile')
-rw-r--r--tools/database/Makefile104
1 files changed, 65 insertions, 39 deletions
diff --git a/tools/database/Makefile b/tools/database/Makefile
index 5828b20c09..09b58b5954 100644
--- a/tools/database/Makefile
+++ b/tools/database/Makefile
@@ -1,43 +1,69 @@
1ifndef V 1## Automatically generated. http://www.rockbox.org/
2SILENT = @
3endif
4INCLUDE = -I../../firmware/export \
5 -I../../apps -I../../apps/gui -I../../uisimulator/sdl -I/usr/include/SDL
6FIRMINC = -I../../firmware/include -fno-builtin
7DEFINES = -D__PCTOOL__ -DHAVE_TAGCACHE -DSIMULATOR -DCONFIG_CODEC=1 \
8 -DROCKBOX_LITTLE_ENDIAN -DROCKBOX_DIR=\".rockbox\" -DROCKBOX_HAS_LOGF \
9 -DCONFIG_CODEC=1
10CFLAGS = -g $(INCLUDE) $(DEFINES) -Wno-pointer-sign
11 2
12SRC = database.c tagcache.c replaygain.c \ 3export ROOTDIR=/home/kugel/rbdev/rockbox-git
13 metadata.c metadata_common.c mp3data.c \ 4export FIRMDIR=$(ROOTDIR)/firmware
14 a52.c mp3.c adx.c mp4.c aiff.c mpc.c ape.c ogg.c \ 5export APPSDIR=$(ROOTDIR)/tools/database
15 asap.c sid.c asf.c spc.c flac.c vorbis.c wave.c \ 6export TOOLSDIR=$(ROOTDIR)/tools
16 mod.c wavpack.c monkeys.c rm.c nsf.c smaf.c \ 7export DOCSDIR=$(ROOTDIR)/docs
17 logf.c unicode.c ctype.c structec.c crc32.c io.c \ 8export MANUALDIR=${ROOTDIR}/manual
18 misc.c strlcpy.c fixedpoint.c 9export DEBUG=
10export MODELNAME=iriverh300
11export ARCHOSROM=
12export FLASHFILE=
13export TARGET_ID=10
14export TARGET=-DIRIVER_H300
15export CPU=
16export MANUFACTURER=iriver
17export OBJDIR=/home/kugel/rbdev/rockbox-git/tools/database
18export BUILDDIR=/home/kugel/rbdev/rockbox-git/tools/database
19export LANGUAGE=english
20export VOICELANGUAGE=
21export MEMORYSIZE=32
22export BUILDDATE:=$(shell date -u +'-DYEAR=%Y -DMONTH=%m -DDAY=%d')
23export MKFIRMWARE=/home/kugel/rbdev/rockbox-git/tools/scramble -add=h300
24export BMP2RB_MONO=/home/kugel/rbdev/rockbox-git/tools/bmp2rb -f 0
25export BMP2RB_NATIVE=/home/kugel/rbdev/rockbox-git/tools/bmp2rb -f 4
26export BMP2RB_REMOTEMONO=/home/kugel/rbdev/rockbox-git/tools/bmp2rb -f 0
27export BMP2RB_REMOTENATIVE=/home/kugel/rbdev/rockbox-git/tools/bmp2rb -f 0
28export BINARY=database.iriverh300
29export APPEXTRA=recorder:gui:radio
30export ENABLEDPLUGINS=yes
31export SOFTWARECODECS=yes
32export EXTRA_DEFINES=
33export HOSTCC=/usr/bin/gcc
34export HOSTAR=/usr/bin/ar
35export CC=/usr/bin/ccache /usr/bin/gcc
36export LD=/usr/bin/ar
37export AR=/usr/bin/ar
38export AS=/usr/bin/as
39export OC=/usr/bin/objcopy
40export WINDRES=windres
41export DLLTOOL=dlltool
42export DLLWRAP=dllwrap
43export RANLIB=/usr/bin/ranlib
44export PREFIX=
45export PROFILE_OPTS=
46export APP_TYPE=database
47export SIMDIR=$(ROOTDIR)/uisimulator/sdl
48export GCCOPTS= -Wno-pointer-sign -Wno-override-init
49export TARGET_INC=
50export LOADADDRESS=
51export SHARED_FLAG=-shared
52export LDOPTS=-lm -ldl -L/home/kugel/.sdl/lib -Wl,-rpath,/home/kugel/.sdl/lib -lSDL -lpthread
53export GLOBAL_LDOPTS= -Wl,-z,defs
54export GCCVER=4.4.3
55export GCCNUM=404
56export UNAME=Linux
57export MANUALDEV=iriverh300
58export TTS_OPTS=
59export TTS_ENGINE=
60export ENC_OPTS=
61export ENCODER=
62export USE_ELF=
63export RBDIR=.rockbox
64export SDLCONFIG=/home/kugel/.sdl/bin/sdl-config
19 65
20OBJ = $(SRC:.c=.o) 66CONFIGURE_OPTIONS=--target=$(MODELNAME) --ram=$(MEMORYSIZE) --rbdir=$(RBDIR) --type=d --prefix=$(PREFIX)
21 67
22# source code search path 68include $(TOOLSDIR)/root.make
23VPATH = ../../apps ../../apps/metadata ../../firmware/common ../../firmware/ \
24 ../../uisimulator/common
25 69
26TARGET= database
27
28all: $(TARGET)
29
30%.o : ../../uisimulator/common/%.c
31 @echo CC $(<F)
32 $(SILENT)$(CC) $(CFLAGS) -c -o $@ $<
33
34%.o : %.c $<
35 @echo CC $(<F)
36 $(SILENT)$(CC) $(FIRMINC) $(CFLAGS) -c -o $@ $<
37
38database: $(OBJ)
39 @echo LD $@
40 $(SILENT)$(CC) -g -ldl -o $@ $+
41
42clean:
43 rm -f $(OBJ) $(TARGET)