diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-10-07 16:54:15 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-10-07 16:54:15 +0000 |
commit | 6e11572e0788136f77ef67b3cfc182095084da4b (patch) | |
tree | 68539f3fdb8055807587b733d43cb38bb1ef7e19 /tools/database/database.make | |
parent | 9e9a9138296c602370e9c92d5fbd84a261aa17b8 (diff) | |
download | rockbox-6e11572e0788136f77ef67b3cfc182095084da4b.tar.gz rockbox-6e11572e0788136f77ef67b3cfc182095084da4b.zip |
Make the database tool buildable from configure.
Also update the checkwps makefile to make checkwps builds not break
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22998 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/database/database.make')
-rw-r--r-- | tools/database/database.make | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tools/database/database.make b/tools/database/database.make new file mode 100644 index 0000000000..482b3dfa2a --- /dev/null +++ b/tools/database/database.make | |||
@@ -0,0 +1,42 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | # $Id: checkwps.make 22680 2009-09-11 17:58:17Z gevaerts $ | ||
8 | # | ||
9 | |||
10 | FIRMINC = -I../../firmware/include -fno-builtin | ||
11 | |||
12 | DBDEFINES=-g -DDEBUG -D__PCTOOL__ -DSIMULATOR | ||
13 | CFLAGS+=$(DBDEFINES) | ||
14 | |||
15 | SRC= $(call preprocess, $(TOOLSDIR)/database/SOURCES) | ||
16 | |||
17 | FIRMINC = -I$(ROOTDIR)/firmware/include -fno-builtin | ||
18 | |||
19 | INCLUDES = -I$(ROOTDIR)/apps/gui \ | ||
20 | -I$(ROOTDIR)/firmware/export \ | ||
21 | -I$(ROOTDIR)/apps \ | ||
22 | -I$(APPSDIR) \ | ||
23 | -I$(BUILDDIR) \ | ||
24 | |||
25 | SIMINCLUDES += -I$(ROOTDIR)/uisimulator/sdl -I$(ROOTDIR)/uisimulator/common \ | ||
26 | -I$(FIRMDIR)/export $(TARGET_INC) -I$(BUILDDIR) -I$(APPSDIR) -I/usr/include/SDL | ||
27 | |||
28 | # Makes mkdepfile happy | ||
29 | OLDGCCOPTS:=$(GCCOPTS) | ||
30 | GCCOPTS+=-D__PCTOOL__ $(FIRMINC) $(SIMINCLUDES) | ||
31 | |||
32 | .SECONDEXPANSION: # $$(OBJ) is not populated until after this | ||
33 | |||
34 | $(BUILDDIR)/$(BINARY): $$(OBJ) | ||
35 | @echo LD $(BINARY) | ||
36 | $(SILENT)$(HOSTCC) $(INCLUDE) $(FLAGS) -ldl -o $@ $+ | ||
37 | |||
38 | SIMFLAGS += $(SIMINCLUDES) $(DBDEFINES) -DHAVE_CONFIG_H $(OLDGCCOPTS) | ||
39 | |||
40 | $(BUILDDIR)/tools/database/../../uisimulator/%.o: $(ROOTDIR)/uisimulator/%.c | ||
41 | $(SILENT)mkdir -p $(dir $@) | ||
42 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(SIMFLAGS) -c $< -o $@ | ||