diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-05-22 01:13:50 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-05-22 01:13:50 +0300 |
commit | 838d6d86c83fc319ceffe7152611436c2c21200f (patch) | |
tree | 6e72a2d9c41d96a079379c5ddee7218d9b8e3088 /sal/rtl/source | |
parent | 71e24025df24f71238b8140cc43ebc6c4b6b9de4 (diff) |
Generate rtlbootstrap.mk in a more clever fashion when cross-compiling
Diffstat (limited to 'sal/rtl/source')
-rw-r--r-- | sal/rtl/source/makefile.mk | 10 |
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 |