From e66381a77b904431df0e823cfe87f37937beedb1 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 4 Jun 2011 13:49:47 +0300 Subject: Rehash cross-compilation ideas Drop the TARGETPLATFORM=BUILD indication of stuff that is to be built for the build platform. I will handle the split of stuff built for the build or host platforms differently. Add explicit rules to do nothing for the cross-compilation case, but likely even that will be unnecessary in the case of complete modules like xml2cmp. I will just mark modules that are for the build platform only with an own flag in BUILD_TYPE. --- xml2cmp/source/finder/makefile.mk | 6 +++++- xml2cmp/source/support/makefile.mk | 6 +++++- xml2cmp/source/xcd/makefile.mk | 6 +++++- xml2cmp/util/makefile.mk | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) (limited to 'xml2cmp') diff --git a/xml2cmp/source/finder/makefile.mk b/xml2cmp/source/finder/makefile.mk index 928e2a89953e..fee7e41c637c 100644 --- a/xml2cmp/source/finder/makefile.mk +++ b/xml2cmp/source/finder/makefile.mk @@ -30,7 +30,6 @@ PRJ=..$/.. PRJNAME=xml2cmp TARGET=srvdepy TARGETTYPE=CUI -TARGETPLATFORM=BUILD # --- Settings ----------------------------------------------------- @@ -38,6 +37,11 @@ ENABLE_EXCEPTIONS=TRUE .INCLUDE : settings.mk +.IF "$(CROSS_COMPILING)"=="YES" +all: + @echo Nothing done when cross-compiling +.ENDIF + # --- Files -------------------------------------------------------- OBJFILES= \ diff --git a/xml2cmp/source/support/makefile.mk b/xml2cmp/source/support/makefile.mk index 425935384075..4c243174cc1f 100644 --- a/xml2cmp/source/support/makefile.mk +++ b/xml2cmp/source/support/makefile.mk @@ -30,7 +30,6 @@ PRJ=..$/.. PRJNAME=xml2cmp TARGET=x2c_support TARGETTYPE=CUI -TARGETPLATFORM=BUILD # --- Settings ----------------------------------------------------- @@ -38,6 +37,11 @@ ENABLE_EXCEPTIONS=TRUE .INCLUDE : settings.mk +.IF "$(CROSS_COMPILING)"=="YES" +all: + @echo Nothing done when cross-compiling +.ENDIF + # --- Files -------------------------------------------------------- OBJFILES= \ diff --git a/xml2cmp/source/xcd/makefile.mk b/xml2cmp/source/xcd/makefile.mk index ca3f7b437a8e..096d5c786839 100644 --- a/xml2cmp/source/xcd/makefile.mk +++ b/xml2cmp/source/xcd/makefile.mk @@ -30,7 +30,6 @@ PRJ=..$/.. PRJNAME=xml2cmp TARGET=x2c_xcd TARGETTYPE=CUI -TARGETPLATFORM=BUILD LIBTARGET=NO @@ -40,6 +39,11 @@ ENABLE_EXCEPTIONS=TRUE .INCLUDE : settings.mk +.IF "$(CROSS_COMPILING)"=="YES" +all: + @echo Nothing done when cross-compiling +.ENDIF + # --- Files -------------------------------------------------------- LIBONLYFILES=\ diff --git a/xml2cmp/util/makefile.mk b/xml2cmp/util/makefile.mk index 082cf1395761..b50d318a1c37 100644 --- a/xml2cmp/util/makefile.mk +++ b/xml2cmp/util/makefile.mk @@ -30,13 +30,17 @@ PRJ=.. PRJNAME=xml2cmp TARGET=xml2cmp TARGETTYPE=CUI -TARGETPLATFORM=BUILD # --- Settings ----------------------------------------------------- ENABLE_EXCEPTIONS=TRUE .INCLUDE : settings.mk +.IF "$(CROSS_COMPILING)"=="YES" +all: + @echo Nothing done when cross-compiling +.ENDIF + # --- Files -------------------------------------------------------- # --- Targets ------------------------------------------------------ -- cgit v1.2.3