aboutsummaryrefslogtreecommitdiffstats
path: root/erts/test/erl_print_SUITE_data/Makefile.src
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-03-22 18:02:27 +0100
committerLukas Larsson <[email protected]>2012-05-02 09:51:44 +0200
commit3378d4abca239185f4a282f5695c8dcdf9f96b76 (patch)
treef0faeed18a131e74af89e79fb54760cee88da8e0 /erts/test/erl_print_SUITE_data/Makefile.src
parentb834e188e6a2df3b2fd689618d43e6f878a5d1e4 (diff)
downloadotp-3378d4abca239185f4a282f5695c8dcdf9f96b76.tar.gz
otp-3378d4abca239185f4a282f5695c8dcdf9f96b76.tar.bz2
otp-3378d4abca239185f4a282f5695c8dcdf9f96b76.zip
Fix cross compile of testcases
Diffstat (limited to 'erts/test/erl_print_SUITE_data/Makefile.src')
-rw-r--r--erts/test/erl_print_SUITE_data/Makefile.src10
1 files changed, 9 insertions, 1 deletions
diff --git a/erts/test/erl_print_SUITE_data/Makefile.src b/erts/test/erl_print_SUITE_data/Makefile.src
index dec5650416..ebcbb10c15 100644
--- a/erts/test/erl_print_SUITE_data/Makefile.src
+++ b/erts/test/erl_print_SUITE_data/Makefile.src
@@ -22,6 +22,8 @@ include @erts_lib_include_internal_generated@@[email protected]
CC = @CC@
CFLAGS = @ERTS_CFLAGS@
LIBS = @ERTS_LIBS@
+CP=cp
+CHMOD=chmod
EPTF_CFLAGS = -Wall $(CFLAGS) @DEFS@ -I@erts_lib_include_internal@ -I@erts_lib_include_internal_generated@
EPTF_LIBS = $(LIBS) -L@erts_lib_internal_path@ -lerts_internal@type_marker@
@@ -31,12 +33,18 @@ EPTT_LIBS = -L@erts_lib_internal_path@ -lerts_internal_r@type_marker@ $(ETHR_LIB
GCC = .@DS@gccifier -CC"$(CC)"
-PROGS = erl_print_tests.@emu_threads@@exe@
+PROGS = erl_print_tests.true@exe@ erl_print_tests.false@exe@
all: $(PROGS)
+@IFEQ@ (@cross@, yes)
+gccifier@exe@:
+ $(CP) ..@DS@utils@[email protected] gccifier@exe@
+ $(CHMOD) a+x gccifier@exe@
+@ELSE@
gccifier@exe@: ..@DS@utils@[email protected]
$(CC) $(CFLAGS) -o gccifier@exe@ ..@DS@utils@[email protected] $(LIBS)
+@ENDIF@
erl_print_tests.false@exe@: gccifier@exe@ erl_print_tests.c
$(GCC) $(EPTF_CFLAGS) -o erl_print_tests.false@exe@ erl_print_tests.c $(EPTF_LIBS)