summaryrefslogtreecommitdiff
path: root/idlc/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-06-04 13:49:47 +0300
committerTor Lillqvist <tml@iki.fi>2011-06-04 13:51:07 +0300
commite66381a77b904431df0e823cfe87f37937beedb1 (patch)
treea4343f323e063f735a7f04b16117f37bffc0d5f7 /idlc/source
parent7862e397af81c066658d10781c4ab23460d9b2e8 (diff)
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.
Diffstat (limited to 'idlc/source')
-rw-r--r--idlc/source/makefile.mk6
-rw-r--r--idlc/source/preproc/makefile.mk6
2 files changed, 10 insertions, 2 deletions
diff --git a/idlc/source/makefile.mk b/idlc/source/makefile.mk
index 9cdc5460addf..7b85efddd58b 100644
--- a/idlc/source/makefile.mk
+++ b/idlc/source/makefile.mk
@@ -30,7 +30,6 @@ PRJ=..
PRJNAME=idlc
TARGET=idlc
TARGETTYPE=CUI
-TARGETPLATFORM=BUILD
LIBTARGET=NO
ENABLE_EXCEPTIONS=TRUE
@@ -39,6 +38,11 @@ INCPRE=$(MISC)
# --- Settings -----------------------------------------------------
+.IF "$(CROSS_COMPILING)"=="YES"
+all:
+ @echo Nothing done when cross-compiling
+.ENDIF
+
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
diff --git a/idlc/source/preproc/makefile.mk b/idlc/source/preproc/makefile.mk
index 8b0c723a37a7..6afe98f5cb42 100644
--- a/idlc/source/preproc/makefile.mk
+++ b/idlc/source/preproc/makefile.mk
@@ -30,7 +30,6 @@ PRJ=..$/..
PRJNAME=idlc
TARGET=idlcpp
TARGETTYPE=CUI
-TARGETPLATFORM=BUILD
# --- Settings -----------------------------------------------------
@@ -39,6 +38,11 @@ LIBSALCPPRT=$(0)
.INCLUDE : settings.mk
+.IF "$(CROSS_COMPILING)"=="YES"
+all:
+ @echo Nothing done when cross-compiling
+.ENDIF
+
# --- Files --------------------------------------------------------
OBJFILES= \