diff options
Diffstat (limited to 'erts/etc/common/Makefile.in')
-rw-r--r-- | erts/etc/common/Makefile.in | 53 |
1 files changed, 43 insertions, 10 deletions
diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in index 05d7b5679f..7a2b821c46 100644 --- a/erts/etc/common/Makefile.in +++ b/erts/etc/common/Makefile.in @@ -23,7 +23,6 @@ include $(ERL_TOP)/make/target.mk ERTS_LIB_TYPEMARKER=.$(TYPE) -USING_MINGW=@MIXED_CYGWIN_MINGW@ USING_VC=@MIXED_VC@ ifeq ($(TYPE),debug) @@ -155,7 +154,14 @@ MC_OUTPUTS=$(OBJDIR)/erlsrv_logmess.h $(OBJDIR)/erlsrv_logmess.res MT_FLAG="-MD" endif INET_GETHOST = $(BINDIR)/inet_gethost.exe -INSTALL_EMBEDDED_PROGS += $(BINDIR)/typer.exe $(BINDIR)/dialyzer.exe $(BINDIR)/erlc.exe $(BINDIR)/start_erl.exe $(BINDIR)/escript.exe $(BINDIR)/ct_run.exe +INSTALL_EMBEDDED_PROGS += \ + $(BINDIR)/typer.exe \ + $(BINDIR)/dialyzer.exe \ + $(BINDIR)/erlc.exe \ + $(BINDIR)/start_erl.exe \ + $(BINDIR)/escript.exe \ + $(BINDIR)/ct_run.exe \ + $(BINDIR)/erl_call.exe INSTALL_SRC = $(WINETC)/start_erl.c $(WINETC)/Nmakefile.start_erl ERLEXECDIR=. INSTALL_LIBS = @@ -166,9 +172,11 @@ INSTALL_TOP = Install.ini INSTALL_TOP_BIN = $(BINDIR)/Install.exe INSTALL_PROGS = \ $(INET_GETHOST) \ - $(BINDIR)/heart.exe $(BINDIR)/erlsrv.exe \ - $(BINDIR)/erl.exe $(BINDIR)/erl_log.exe \ - $(BINDIR)/werl.exe \ + $(BINDIR)/heart.exe \ + $(BINDIR)/erlsrv.exe \ + $(BINDIR)/erl.exe \ + $(BINDIR)/erl_log.exe\ + $(BINDIR)/werl.exe \ $(BINDIR)/$(ERLEXEC) \ $(INSTALL_EMBEDDED_PROGS) @@ -188,9 +196,16 @@ ENTRY_OBJ= ERLSRV_OBJECTS= MC_OUTPUTS= INET_GETHOST = $(BINDIR)/inet_gethost@EXEEXT@ -INSTALL_EMBEDDED_PROGS += $(BINDIR)/typer@EXEEXT@ $(BINDIR)/dialyzer@EXEEXT@ \ - $(BINDIR)/erlc@EXEEXT@ $(BINDIR)/escript@EXEEXT@ $(BINDIR)/ct_run@EXEEXT@ \ - $(BINDIR)/run_erl $(BINDIR)/to_erl $(BINDIR)/dyn_erl +INSTALL_EMBEDDED_PROGS += \ + $(BINDIR)/typer@EXEEXT@ \ + $(BINDIR)/dialyzer@EXEEXT@ \ + $(BINDIR)/erlc@EXEEXT@ \ + $(BINDIR)/escript@EXEEXT@ \ + $(BINDIR)/ct_run@EXEEXT@ \ + $(BINDIR)/run_erl@EXEEXT@ \ + $(BINDIR)/to_erl@EXEEXT@ \ + $(BINDIR)/dyn_erl@EXEEXT@ \ + $(BINDIR)/erl_call@EXEEXT@ INSTALL_EMBEDDED_DATA = $(UXETC)/start.src $(UXETC)/start_erl.src INSTALL_TOP = Install INSTALL_TOP_BIN = @@ -425,6 +440,10 @@ $(OBJDIR)/dyn_erl.o: $(UXETC)/dyn_erl.c $(RC_GENERATED) $(OBJDIR)/safe_string.o: $(ETC)/safe_string.c $(RC_GENERATED) $(V_CC) $(CFLAGS) -o $@ -c $(ETC)/safe_string.c +# erl_call +$(BINDIR)/erl_call@EXEEXT@: $(ERL_TOP)/lib/erl_interface/bin/$(TARGET)/erl_call@EXEEXT@ + $(ld_verbose)cp $< $@ + ifneq ($(TARGET),win32) $(BINDIR)/$(ERLEXEC): $(OBJDIR)/$(ERLEXEC).o $(ERTS_LIB) $(ld_verbose)$(PURIFY) $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/$(ERLEXEC).o $(ERTS_INTERNAL_LIBS) @@ -491,9 +510,14 @@ ifneq ($(INSTALL_OBJS),) endif $(INSTALL_DIR) "$(RELEASE_PATH)/erts-$(VSN)/bin" ifneq ($(TARGET), win32) -ifneq ($(findstring vxworks,$(TARGET)), vxworks) $(INSTALL_SCRIPT) erl.src "$(RELEASE_PATH)/erts-$(VSN)/bin" -endif +# On Android, the shell is found in /system/bin/sh instead of /bin/sh + case "$(TARGET)" in \ + *-android*) \ + sed -i'' -e "s;/bin/sh;/system/bin/sh;" \ + "$(RELEASE_PATH)/erts-$(VSN)/bin/erl.src" \ + ;; \ + esac endif ifneq ($(INSTALL_PROGS),) $(INSTALL_PROGRAM) $(INSTALL_PROGS) "$(RELEASE_PATH)/erts-$(VSN)/bin" @@ -514,6 +538,15 @@ ifneq ($(INSTALL_SRC),) endif ifneq ($(INSTALL_EMBEDDED_DATA),) $(INSTALL_SCRIPT) $(INSTALL_EMBEDDED_DATA) "$(RELEASE_PATH)/erts-$(VSN)/bin" +# On Android, the shell is found in /system/bin/sh instead of /bin/sh + case "$(TARGET)" in \ + *-android*) \ + sed -i'' -e "s;/bin/sh;/system/bin/sh;" \ + "$(RELEASE_PATH)/erts-$(VSN)/bin/start_erl.src"; \ + sed -i'' -e "s;/bin/sh;/system/bin/sh;" \ + "$(RELEASE_PATH)/erts-$(VSN)/bin/start.src"; \ + ;; \ + esac endif ifneq ($(INSTALL_LIBS),) $(INSTALL_DATA) $(INSTALL_LIBS) "$(RELEASE_PATH)/erts-$(VSN)/bin" |