diff options
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 |