summaryrefslogtreecommitdiffstats
path: root/sal/rtl
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-05-22 01:13:50 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-05-22 01:13:50 +0300
commit838d6d86c83fc319ceffe7152611436c2c21200f (patch)
tree6e72a2d9c41d96a079379c5ddee7218d9b8e3088 /sal/rtl
parentDo build typesconfig also for Windows, but don't do anything there when using... (diff)
downloadcore-838d6d86c83fc319ceffe7152611436c2c21200f.tar.gz
core-838d6d86c83fc319ceffe7152611436c2c21200f.zip
Generate rtlbootstrap.mk in a more clever fashion when cross-compiling
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/source/makefile.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/sal/rtl/source/makefile.mk b/sal/rtl/source/makefile.mk
index a378b1087c1c..cc8f6ab0ecac 100644
--- a/sal/rtl/source/makefile.mk
+++ b/sal/rtl/source/makefile.mk
@@ -128,10 +128,12 @@ OBJFILES= \
$(OBJ)$/alloc_fini.obj
+.IF "$(CROSS_COMPILING)"==""
APP1TARGET=gen_makefile
APP1OBJS=$(SLO)$/gen_makefile.obj
APP1LIBSALCPPRT=
APP1RPATH=NONE
+.ENDIF
.ENDIF
@@ -169,6 +171,14 @@ $(ALWAYSDBGFILES):
ALLTAR : $(BOOTSTRAPMK)
+.IF "$(CROSS_COMPILING)"==""
+
$(BOOTSTRAPMK) : $(APP1TARGETN)
$(AUGMENT_LIBRARY_PATH) $< > $@
+.ELSE
+
+$(BOOTSTRAPMK) :
+ (echo '#include "macro.hxx"'; echo RTL_OS:=THIS_OS; echo RTL_ARCH:=THIS_ARCH) | $(CC) -E $(CFLAGS) $(INCLUDE_C) $(CFLAGSCC) $(CDEFS) $(CFLAGSAPPEND) - | grep '^RTL_' >$@
+
+.ENDIF