summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-07 22:41:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-07 22:41:17 +0000
commitb8a23f9e4980e6a041d750c325ab2845aea8488a (patch)
treed10400e99208595638f13e7fe3b279274a173e56 /tools
parentd23afcd4f4ad72b1c2c087055a9ba4457f2646cd (diff)
downloadrockbox-b8a23f9e4980e6a041d750c325ab2845aea8488a.tar.gz
rockbox-b8a23f9e4980e6a041d750c325ab2845aea8488a.zip
Fixed makefiles for autoconf.g include.
Fixed build output look in several Makefiles Fixed code to include autoconf.h Fixed code to use ROCKBOX_*_ENDIAN instead of previous attempts. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6421 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure18
-rw-r--r--tools/make.inc1
2 files changed, 13 insertions, 6 deletions
diff --git a/tools/configure b/tools/configure
index aecdda4b14..34d80328b9 100755
--- a/tools/configure
+++ b/tools/configure
@@ -589,8 +589,14 @@ fi
589sed > autoconf.h \ 589sed > autoconf.h \
590 -e "s,@ENDIAN@,${defendian},g" \ 590 -e "s,@ENDIAN@,${defendian},g" \
591<<EOF 591<<EOF
592/* This header was made by configure */
593#ifndef __BUILD_AUTOCONF_H
594#define __BUILD_AUTOCONF_H
595
592/* Define endianess for the target or simulator platform */ 596/* Define endianess for the target or simulator platform */
593#define @ENDIAN@ 1 597#define @ENDIAN@ 1
598
599#endif /* __BUILD_AUTOCONF_H */
594EOF 600EOF
595 601
596sed > Makefile \ 602sed > Makefile \
@@ -641,7 +647,7 @@ export ARCHOSROM=@ARCHOSROM@
641export FLASHFILE=@FLASHFILE@ 647export FLASHFILE=@FLASHFILE@
642export TARGET=@TARGET@ 648export TARGET=@TARGET@
643export OBJDIR=@PWD@ 649export OBJDIR=@PWD@
644export BUILDDIR=\$(OBJDIR) 650export BUILDDIR=@PWD@
645export LANGUAGE=@LANGUAGE@ 651export LANGUAGE=@LANGUAGE@
646export MEMORYSIZE=@MEMORY@ 652export MEMORYSIZE=@MEMORY@
647export VERSION=\$(shell date +%y%m%d-%H%M) 653export VERSION=\$(shell date +%y%m%d-%H%M)
@@ -675,13 +681,13 @@ MAKEFLAGS += --no-print-directory
675.PHONY: all clean tags zip 681.PHONY: all clean tags zip
676 682
677all: 683all:
678 @\$(MAKE) -C \$(FIRMDIR) 684 @\$(MAKE) -C \$(FIRMDIR) OBJDIR=\$(BUILDDIR)/firmware
679 @\$(MAKE) -C \$(APPSDIR) 685 @\$(MAKE) -C \$(APPSDIR) OBJDIR=\$(BUILDDIR)/apps
680 686
681clean: 687clean:
682 @\$(MAKE) -C \$(FIRMDIR) clean 688 @\$(MAKE) -C \$(FIRMDIR) clean OBJDIR=\$(BUILDDIR)/firmware
683 @\$(MAKE) -C \$(APPSDIR) clean 689 @\$(MAKE) -C \$(APPSDIR) clean OBJDIR=\$(BUILDDIR)/apps
684 @rm -f rockbox.zip TAGS 690 @rm -rf rockbox.zip TAGS apps firmware comsim sim
685 691
686tags: 692tags:
687 @rm -f TAGS 693 @rm -f TAGS
diff --git a/tools/make.inc b/tools/make.inc
index 9e6600f77a..ea9815b6d2 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -17,6 +17,7 @@ $(OBJDIR)/%.o: %.S
17# the lame echo stuff down here is to prevent any compiler errors/warnings 17# the lame echo stuff down here is to prevent any compiler errors/warnings
18# to cause an error code to get returned and thus stop the build 18# to cause an error code to get returned and thus stop the build
19$(DEPFILE): $(SOURCES) 19$(DEPFILE): $(SOURCES)
20 $(SILENT)mkdir -p `dirname $(DEPFILE)`
20 $(SILENT)rm -f $(DEPFILE) 21 $(SILENT)rm -f $(DEPFILE)
21 $(SILENT)(for each in $(SOURCES) x; do \ 22 $(SILENT)(for each in $(SOURCES) x; do \
22 if test "x" != "$$each"; then \ 23 if test "x" != "$$each"; then \