Kaydet (Commit) 838d6d86 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Generate rtlbootstrap.mk in a more clever fashion when cross-compiling

üst 71e24025
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment