summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-02-22 12:19:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-02-22 12:19:12 +0000
commit22b7701fe75cce9afdbc27046821dc089f9e7dac (patch)
treeca5b4f0428fad0fc9c775dfb0ac879ddee863846 /tools
parent376057d2b67bae0a7b24ae1715d3cbb0b540b7a9 (diff)
downloadrockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.tar.gz
rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.zip
Build cleanup and general fixes. fprintf() is now fdprintf(), the separation
between uisimulator files and firmware/apps files are better done. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6031 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure14
-rw-r--r--tools/make.inc2
2 files changed, 13 insertions, 3 deletions
diff --git a/tools/configure b/tools/configure
index 364a3d707e..c56f28edba 100755
--- a/tools/configure
+++ b/tools/configure
@@ -48,19 +48,29 @@ simcc () {
48 # default tool setup for native building 48 # default tool setup for native building
49 prefixtools "" 49 prefixtools ""
50 50
51 GCCOPTS='-W -Wall -g -fno-builtin -I$(ROOTDIR)/uisimulator/common -I$(ROOTDIR)/uisimulator/$(SIMVER)' 51 GCCOPTS='-W -Wall -g -fno-builtin'
52 52
53 output="rockboxui" # use this as default output binary name 53 output="rockboxui" # use this as default output binary name
54 54
55 case $uname in 55 case $uname in
56 CYGWIN*) 56 CYGWIN*)
57 echo "Cygwin host detected" 57 echo "Cygwin host detected"
58 LDOPTS='-L/usr/X11R6/lib -lSM -lICE -lXt -lX11 -lXmu -lSM -lICE -lX11 -lpthread' 58
59 if [ "$simver" = "win32" ]; then
60 # win32 version
61 GCCOPTS="$GCCOPTS -mno-cygwin -DNOCYGWIN"
62 LDOPTS="-lgdi32 -luser32 -mno-cygwin"
63 else
64 # x11 version
65 GCCOPTS="$GCCOPTS -DNOCYGWIN"
66 LDOPTS='-L/usr/X11R6/lib -lSM -lICE -lXt -lX11 -lXmu -lSM -lICE -lX11 -lpthread'
67 fi
59 output="rockboxui.exe" # use this as output binary name 68 output="rockboxui.exe" # use this as output binary name
60 ;; 69 ;;
61 70
62 Linux) 71 Linux)
63 echo "Linux host detected" 72 echo "Linux host detected"
73 GCCOPTS="$GCCOPTS"
64 LDOPTS='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread' 74 LDOPTS='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread'
65 if [ "$simver" = "win32" ]; then 75 if [ "$simver" = "win32" ]; then
66 crosswincc # setup cross-compiler 76 crosswincc # setup cross-compiler
diff --git a/tools/make.inc b/tools/make.inc
index 0da7a8b17c..7823d08b67 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -3,7 +3,7 @@
3$(OBJDIR)/%.o: %.c 3$(OBJDIR)/%.o: %.c
4 @mkdir -p `dirname $@` 4 @mkdir -p `dirname $@`
5 @echo "CC $<" 5 @echo "CC $<"
6 @$(CC) $(CFLAGS) -c $< -o $@ 6 $(CC) $(CFLAGS) -c $< -o $@
7 7
8$(OBJDIR)/%.o: %.S 8$(OBJDIR)/%.o: %.S
9 @mkdir -p `dirname $@` 9 @mkdir -p `dirname $@`