Commit 84fd1f58 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Make the tools directory a symlink in the wow64 build tree.

parent 71fe9c95
...@@ -48,8 +48,6 @@ include/stamp-h: include/config.h.in config.status ...@@ -48,8 +48,6 @@ include/stamp-h: include/config.h.in config.status
.PHONY: __clean__ .PHONY: __clean__
clean:: __clean__ clean:: __clean__
$(RM) tools/makedep$(EXEEXT)
distclean:: clean distclean:: clean
$(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h Makefile Make.tmp $(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h Makefile Make.tmp
$(RM) -r autom4te.cache $(RM) -r autom4te.cache
...@@ -71,7 +69,7 @@ tools/widl tools/wmc tools/wrc: libs/wpp ...@@ -71,7 +69,7 @@ tools/widl tools/wmc tools/wrc: libs/wpp
dlls/shell32/Makefile dlls/shell32/__depend__: dlls/shell32/AUTHORS dlls/shell32/Makefile dlls/shell32/__depend__: dlls/shell32/AUTHORS
$(MAKEDEP): include/config.h tools/Makefile $(MAKEDEP): include/config.h
@cd $(TOOLSDIR)/tools && $(MAKE) makedep$(TOOLSEXT) @cd $(TOOLSDIR)/tools && $(MAKE) makedep$(TOOLSEXT)
# Misc rules # Misc rules
......
...@@ -425,9 +425,11 @@ $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy ...@@ -425,9 +425,11 @@ $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
wine_fn_config_tool () wine_fn_config_tool ()
{ {
ac_dir=$[1] ac_dir=$[1]
AS_VAR_IF([enable_tools],[no],[return 0])
wine_fn_all_dir_rules $ac_dir Make.rules wine_fn_all_dir_rules $ac_dir Make.rules
AS_VAR_IF([enable_tools],[no],,[case $ac_dir in case $ac_dir in
dnl tools directory has both install-lib and install-dev dnl tools directory has both install-lib and install-dev
tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"install:: $ac_dir "install:: $ac_dir
...@@ -439,17 +441,17 @@ install-dev:: $ac_dir ...@@ -439,17 +441,17 @@ install-dev:: $ac_dir
*) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"install install-dev:: $ac_dir "install install-dev:: $ac_dir
@cd $ac_dir && \$(MAKE) install" ;; @cd $ac_dir && \$(MAKE) install" ;;
esac esac
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"uninstall:: $ac_dir/Makefile "uninstall:: $ac_dir/Makefile
@cd $ac_dir && \$(MAKE) uninstall @cd $ac_dir && \$(MAKE) uninstall
all __tooldeps__: $ac_dir all __tooldeps__: $ac_dir
.PHONY: $ac_dir .PHONY: $ac_dir
$ac_dir: $ac_dir/Makefile libs/port dummy $ac_dir: $ac_dir/Makefile libs/port dummy
@cd $ac_dir && \$(MAKE)" @cd $ac_dir && \$(MAKE)"
case $ac_dir in case $ac_dir in
tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;; tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
esac]) esac
} }
wine_fn_config_makerules () wine_fn_config_makerules ()
......
...@@ -14894,12 +14894,13 @@ fi ...@@ -14894,12 +14894,13 @@ fi
wine_fn_config_tool () wine_fn_config_tool ()
{ {
ac_dir=$1 ac_dir=$1
wine_fn_all_dir_rules $ac_dir Make.rules
if test "x$enable_tools" = xno; then : if test "x$enable_tools" = xno; then :
return 0
fi
else wine_fn_all_dir_rules $ac_dir Make.rules
case $ac_dir in
case $ac_dir in
tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"install:: $ac_dir "install:: $ac_dir
@cd $ac_dir && \$(MAKE) install @cd $ac_dir && \$(MAKE) install
...@@ -14910,18 +14911,17 @@ install-dev:: $ac_dir ...@@ -14910,18 +14911,17 @@ install-dev:: $ac_dir
*) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"install install-dev:: $ac_dir "install install-dev:: $ac_dir
@cd $ac_dir && \$(MAKE) install" ;; @cd $ac_dir && \$(MAKE) install" ;;
esac esac
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \ wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"uninstall:: $ac_dir/Makefile "uninstall:: $ac_dir/Makefile
@cd $ac_dir && \$(MAKE) uninstall @cd $ac_dir && \$(MAKE) uninstall
all __tooldeps__: $ac_dir all __tooldeps__: $ac_dir
.PHONY: $ac_dir .PHONY: $ac_dir
$ac_dir: $ac_dir/Makefile libs/port dummy $ac_dir: $ac_dir/Makefile libs/port dummy
@cd $ac_dir && \$(MAKE)" @cd $ac_dir && \$(MAKE)"
case $ac_dir in case $ac_dir in
tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;; tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
esac esac
fi
} }
wine_fn_config_makerules () wine_fn_config_makerules ()
...@@ -14971,8 +14971,10 @@ if test "x$enable_fonts" != xno; then ...@@ -14971,8 +14971,10 @@ if test "x$enable_fonts" != xno; then
ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf" ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
fi fi
if test "x$enable_tools" != xno; then
ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls" ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
fi
ac_config_links="$ac_config_links wine:tools/winewrapper" ac_config_links="$ac_config_links wine:tools/winewrapper"
wine_fn_config_symlink wine wine_fn_config_symlink wine
...@@ -15711,17 +15713,24 @@ all: \$(ALL_PO_FILES) ...@@ -15711,17 +15713,24 @@ all: \$(ALL_PO_FILES)
msgcat -o \$@ \$(ALL_POT_FILES)" msgcat -o \$@ \$(ALL_POT_FILES)"
fi fi
if test "x$enable_tools" != xno
then
wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
clean:: __clean__
\$(RM) tools/makedep\$(EXEEXT)"
fi
if test -n "$with_wine64" if test -n "$with_wine64"
then then
wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
fonts server: fonts server tools:
\$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@ \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
$with_wine64/loader/wine: $with_wine64/loader/wine:
\$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@ \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
$with_wine64/loader/wine-preloader: $with_wine64/loader/wine-preloader:
\$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@ \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
clean:: clean::
\$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader" \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
fi fi
wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall:: wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
......
...@@ -2369,7 +2369,7 @@ WINE_CONFIG_SYMLINK(fonts/marlett.ttf,,enable_fonts) ...@@ -2369,7 +2369,7 @@ WINE_CONFIG_SYMLINK(fonts/marlett.ttf,,enable_fonts)
WINE_CONFIG_SYMLINK(fonts/symbol.ttf,,enable_fonts) WINE_CONFIG_SYMLINK(fonts/symbol.ttf,,enable_fonts)
WINE_CONFIG_SYMLINK(fonts/tahoma.ttf,,enable_fonts) WINE_CONFIG_SYMLINK(fonts/tahoma.ttf,,enable_fonts)
WINE_CONFIG_SYMLINK(fonts/tahomabd.ttf,,enable_fonts) WINE_CONFIG_SYMLINK(fonts/tahomabd.ttf,,enable_fonts)
WINE_CONFIG_SYMLINK(tools/l_intl.nls) WINE_CONFIG_SYMLINK(tools/l_intl.nls,,enable_tools)
WINE_CONFIG_SYMLINK(wine,tools/winewrapper) WINE_CONFIG_SYMLINK(wine,tools/winewrapper)
WINE_CONFIG_EXTRA_DIR(dlls/gdi32/dibdrv) WINE_CONFIG_EXTRA_DIR(dlls/gdi32/dibdrv)
...@@ -3092,18 +3092,26 @@ all: \$(ALL_PO_FILES) ...@@ -3092,18 +3092,26 @@ all: \$(ALL_PO_FILES)
msgcat -o \$[@] \$(ALL_POT_FILES)]) msgcat -o \$[@] \$(ALL_POT_FILES)])
fi fi
if test "x$enable_tools" != xno
then
WINE_APPEND_RULE([ALL_MAKEFILE_DEPENDS],
[\$(MAKEDEP): tools/Makefile
clean:: __clean__
\$(RM) tools/makedep\$(EXEEXT)])
fi
if test -n "$with_wine64" if test -n "$with_wine64"
then then
WINE_APPEND_RULE([ALL_MAKEFILE_DEPENDS], WINE_APPEND_RULE([ALL_MAKEFILE_DEPENDS],
[all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader [all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
fonts server: fonts server tools:
\$(RM) \$[@] && \$(LN_S) $with_wine64/\$[@] \$[@] \$(RM) \$[@] && \$(LN_S) $with_wine64/\$[@] \$[@]
$with_wine64/loader/wine: $with_wine64/loader/wine:
\$(RM) \$[@] && \$(LN_S) $ac_pwd/loader/wine \$[@] \$(RM) \$[@] && \$(LN_S) $ac_pwd/loader/wine \$[@]
$with_wine64/loader/wine-preloader: $with_wine64/loader/wine-preloader:
\$(RM) \$[@] && \$(LN_S) $ac_pwd/loader/wine-preloader \$[@] \$(RM) \$[@] && \$(LN_S) $ac_pwd/loader/wine-preloader \$[@]
clean:: clean::
\$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader]) \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader])
fi fi
WINE_APPEND_RULE([ALL_MAKEFILE_DEPENDS], WINE_APPEND_RULE([ALL_MAKEFILE_DEPENDS],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment