Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
733ed056
Commit
733ed056
authored
Feb 22, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Generate the top-level install rules using the subdirs rules.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d5f316bf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
174 additions
and
280 deletions
+174
-280
aclocal.m4
aclocal.m4
+14
-112
configure
configure
+0
-0
configure.ac
configure.ac
+103
-103
make_makefiles
tools/make_makefiles
+0
-29
makedep.c
tools/makedep.c
+57
-36
No files found.
aclocal.m4
View file @
733ed056
...
...
@@ -245,35 +245,6 @@ $ac_dir: dummy
@cd $ac_dir && \$(MAKE)"
}
wine_fn_install_rules ()
{
wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
wine_fn_append_rule \
".PHONY: $ac_dir/install
$ac_dir/install:: $ac_dir
@cd $ac_dir && \$(MAKE) install
install:: $ac_dir/install"
if wine_fn_has_flag install-lib
then
wine_fn_append_rule \
".PHONY: $ac_dir/install-lib
$ac_dir/install-lib:: $ac_dir
@cd $ac_dir && \$(MAKE) install-lib
install-lib:: $ac_dir/install-lib"
fi
if wine_fn_has_flag install-dev
then
wine_fn_append_rule \
".PHONY: $ac_dir/install-dev
$ac_dir/install-dev:: $ac_dir
@cd $ac_dir && \$(MAKE) install-dev
install-dev:: $ac_dir/install-dev"
fi
}
wine_fn_disabled_rules ()
{
wine_fn_append_file SUBDIRS $ac_dir
...
...
@@ -284,7 +255,6 @@ wine_fn_config_makefile ()
{
ac_dir=$[1]
ac_enable=$[2]
ac_flags=$[3]
case $ac_dir in
dnl These are created as symlinks for wow64 builds
...
...
@@ -292,13 +262,11 @@ wine_fn_config_makefile ()
esac
AS_VAR_IF([$ac_enable],[no],[wine_fn_disabled_rules; return])
wine_fn_all_rules
wine_fn_install_rules
}
wine_fn_config_lib ()
{
ac_name=$[1]
ac_flags=$[2]
ac_dir=dlls/$ac_name
ac_deps="include"
...
...
@@ -306,11 +274,7 @@ wine_fn_config_lib ()
wine_fn_all_rules
wine_fn_append_rule \
".PHONY: $ac_dir/install
$ac_dir/install:: $ac_dir
\$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
install install-dev:: $ac_dir/install
__builddeps__: $ac_dir
"__builddeps__: $ac_dir
$ac_dir: $ac_deps"
}
...
...
@@ -348,20 +312,7 @@ wine_fn_config_dll ()
wine_fn_append_rule \
"$ac_dir: __builddeps__
manpages htmlpages sgmlpages xmlpages::
@cd $ac_dir && \$(MAKE) \$[@]
.PHONY: $ac_dir/install-lib
install install-lib:: $ac_dir/install-lib"
if test -n "$DLLEXT"
then
wine_fn_append_rule \
"$ac_dir/install-lib:: $ac_dir
\$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
\$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(dlldir)/fakedlls/$ac_dll"
else
wine_fn_append_rule \
"$ac_dir/install-lib:: $ac_dir
\$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll"
fi])
@cd $ac_dir && \$(MAKE) \$[@]"])
if wine_fn_has_flag staticimplib
then
...
...
@@ -369,11 +320,7 @@ install install-lib:: $ac_dir/install-lib"
"__builddeps__: $ac_file.a
$ac_file.a $ac_file.cross.a: $ac_deps
$ac_file.a: dummy
@cd $ac_dir && \$(MAKE) lib$ac_implib.a
.PHONY: $ac_dir/install-dev
$ac_dir/install-dev:: $ac_file.a
\$(INSTALL_DATA) $ac_file.a \$(DESTDIR)\$(dlldir)/lib$ac_implib.a
install install-dev:: $ac_dir/install-dev"
@cd $ac_dir && \$(MAKE) lib$ac_implib.a"
if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
then
...
...
@@ -390,11 +337,7 @@ $ac_file.cross.a: dummy
$ac_file.def: $srcdir/$ac_dir/$ac_name.spec \$(WINEBUILD)
\$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$[@] --export $srcdir/$ac_dir/$ac_name.spec
$ac_file.a: $srcdir/$ac_dir/$ac_name.spec \$(WINEBUILD)
\$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$[@] --export $srcdir/$ac_dir/$ac_name.spec
.PHONY: $ac_dir/install-dev
$ac_dir/install-dev:: $ac_file.$IMPLIBEXT
\$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
install install-dev:: $ac_dir/install-dev"
\$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$[@] --export $srcdir/$ac_dir/$ac_name.spec"
if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
then
wine_fn_append_rule \
...
...
@@ -410,56 +353,17 @@ wine_fn_config_program ()
ac_name=$[1]
ac_dir=programs/$ac_name
ac_enable=$[2]
ac_flags=$[3]
ac_program=$ac_name
case $ac_name in
*.*) ;;
*) ac_program=$ac_program.exe ;;
esac
AS_VAR_IF([$ac_enable],[no],[wine_fn_disabled_rules; return])
wine_fn_all_rules
wine_fn_append_rule "$ac_dir: __builddeps__"
wine_fn_has_flag install || return
wine_fn_append_rule \
".PHONY: $ac_dir/install
install install-lib:: $ac_dir/install"
if test -n "$DLLEXT"
then
wine_fn_append_rule \
"$ac_dir/install:: $ac_dir
\$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
\$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(dlldir)/fakedlls/$ac_program"
if test -z "$with_wine64" && wine_fn_has_flag installbin
then
wine_fn_append_rule \
"$ac_dir/install:: __tooldeps__
\$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name"
fi
else
wine_fn_append_rule \
"$ac_dir/install:: $ac_dir
\$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program"
fi
if test -z "$with_wine64" && wine_fn_has_flag manpage
then
wine_fn_append_rule \
"$ac_dir/install:: $ac_dir
\$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
fi
}
wine_fn_config_test ()
{
ac_dir=$[1]
ac_name=$[2]
ac_flags=$[3]
AS_VAR_IF([enable_tests],[no],[wine_fn_disabled_rules; return])
...
...
@@ -487,11 +391,9 @@ $ac_dir/crosstest: __builddeps__ dummy
wine_fn_config_tool ()
{
ac_dir=$[1]
ac_flags=$[2]
AS_VAR_IF([enable_tools],[no],[wine_fn_append_file DISABLED_SUBDIRS $ac_dir; return])
wine_fn_all_rules
wine_fn_install_rules
wine_fn_append_rule "__tooldeps__: $ac_dir"
wine_fn_append_rule "$ac_dir: libs/port"
...
...
@@ -544,13 +446,13 @@ fi])[]dnl
dnl **** Create a makefile from config.status ****
dnl
dnl Usage: WINE_CONFIG_MAKEFILE(file,enable
,flags
)
dnl Usage: WINE_CONFIG_MAKEFILE(file,enable)
dnl
AC_DEFUN([WINE_CONFIG_MAKEFILE],[AC_REQUIRE([WINE_CONFIG_HELPERS])dnl
AS_VAR_PUSHDEF([ac_enable],m4_default([$2],[enable_]$1))dnl
m4_append_uniq([_AC_USER_OPTS],ac_enable,[
])dnl
wine_fn_config_makefile [$1] ac_enable
[$3
]dnl
wine_fn_config_makefile [$1] ac_enable
[
]dnl
AS_VAR_POPDEF([ac_enable])])
dnl **** Create a dll makefile from config.status ****
...
...
@@ -566,41 +468,41 @@ AS_VAR_POPDEF([ac_enable])])
dnl **** Create a program makefile from config.status ****
dnl
dnl Usage: WINE_CONFIG_PROGRAM(name,enable
,flags
)
dnl Usage: WINE_CONFIG_PROGRAM(name,enable)
dnl
AC_DEFUN([WINE_CONFIG_PROGRAM],[AC_REQUIRE([WINE_CONFIG_HELPERS])dnl
AS_VAR_PUSHDEF([ac_enable],m4_default([$2],[enable_]$1))dnl
m4_append_uniq([_AC_USER_OPTS],ac_enable,[
])dnl
wine_fn_config_program [$1] ac_enable
[$3
]dnl
wine_fn_config_program [$1] ac_enable
[
]dnl
AS_VAR_POPDEF([ac_enable])])
dnl **** Create a test makefile from config.status ****
dnl
dnl Usage: WINE_CONFIG_TEST(dir
,flags
)
dnl Usage: WINE_CONFIG_TEST(dir)
dnl
AC_DEFUN([WINE_CONFIG_TEST],[AC_REQUIRE([WINE_CONFIG_HELPERS])dnl
m4_pushdef([ac_suffix],m4_if(m4_substr([$1],0,9),[programs/],[.exe_test],[_test]))dnl
m4_pushdef([ac_name],[m4_bpatsubst([$1],[.*/\(.*\)/tests$],[\1])])dnl
wine_fn_config_test $1 ac_name[]ac_suffix
[$2
]dnl
wine_fn_config_test $1 ac_name[]ac_suffix
[
]dnl
m4_popdef([ac_suffix])dnl
m4_popdef([ac_name])])
dnl **** Create a static lib makefile from config.status ****
dnl
dnl Usage: WINE_CONFIG_LIB(name
,flags
)
dnl Usage: WINE_CONFIG_LIB(name)
dnl
AC_DEFUN([WINE_CONFIG_LIB],[AC_REQUIRE([WINE_CONFIG_HELPERS])dnl
wine_fn_config_lib [$1]
[$2]
])
wine_fn_config_lib [$1]])
dnl **** Create a tool makefile from config.status ****
dnl
dnl Usage: WINE_CONFIG_TOOL(name
,flags
)
dnl Usage: WINE_CONFIG_TOOL(name)
dnl
AC_DEFUN([WINE_CONFIG_TOOL],[AC_REQUIRE([WINE_CONFIG_HELPERS])dnl
m4_append_uniq([_AC_USER_OPTS],[enable_tools],[
])dnl
wine_fn_config_tool [$1]
[$2]
])
wine_fn_config_tool [$1]])
dnl **** Append a file to the .gitignore list ****
dnl
...
...
configure
View file @
733ed056
This diff is collapsed.
Click to expand it.
configure.ac
View file @
733ed056
...
...
@@ -3778,122 +3778,122 @@ WINE_CONFIG_TEST(dlls/xmllite/tests)
WINE_CONFIG_DLL(xolehlp)
WINE_CONFIG_DLL(xpsprint)
WINE_CONFIG_DLL(xpssvcs)
WINE_CONFIG_MAKEFILE([fonts]
,,[install-lib]
)
WINE_CONFIG_MAKEFILE([include]
,,[install-dev]
)
WINE_CONFIG_MAKEFILE([fonts])
WINE_CONFIG_MAKEFILE([include])
WINE_CONFIG_MAKEFILE([libs/port])
WINE_CONFIG_MAKEFILE([libs/wine],,[implib
,install-dev,install-lib
])
WINE_CONFIG_MAKEFILE([libs/wine],,[implib])
WINE_CONFIG_MAKEFILE([libs/wpp])
WINE_CONFIG_MAKEFILE([loader]
,,[install-lib]
)
WINE_CONFIG_MAKEFILE([loader])
WINE_CONFIG_MAKEFILE([po])
WINE_CONFIG_PROGRAM(arp
,,[install]
)
WINE_CONFIG_PROGRAM(aspnet_regiis
,,[install]
)
WINE_CONFIG_PROGRAM(attrib
,,[install]
)
WINE_CONFIG_PROGRAM(cabarc
,,[install]
)
WINE_CONFIG_PROGRAM(cacls
,,[install]
)
WINE_CONFIG_PROGRAM(clock
,,[install]
)
WINE_CONFIG_PROGRAM(cmd
,,[install]
)
WINE_CONFIG_PROGRAM(arp)
WINE_CONFIG_PROGRAM(aspnet_regiis)
WINE_CONFIG_PROGRAM(attrib)
WINE_CONFIG_PROGRAM(cabarc)
WINE_CONFIG_PROGRAM(cacls)
WINE_CONFIG_PROGRAM(clock)
WINE_CONFIG_PROGRAM(cmd)
WINE_CONFIG_TEST(programs/cmd/tests)
WINE_CONFIG_PROGRAM(conhost
,,[install]
)
WINE_CONFIG_PROGRAM(control
,,[install]
)
WINE_CONFIG_PROGRAM(cscript
,,[install]
)
WINE_CONFIG_PROGRAM(dpnsvr
,,[install]
)
WINE_CONFIG_PROGRAM(dxdiag
,,[install]
)
WINE_CONFIG_PROGRAM(eject
,,[install]
)
WINE_CONFIG_PROGRAM(expand
,,[install]
)
WINE_CONFIG_PROGRAM(explorer
,,[install]
)
WINE_CONFIG_PROGRAM(extrac32
,,[install]
)
WINE_CONFIG_PROGRAM(findstr
,,[install]
)
WINE_CONFIG_PROGRAM(fsutil
,,[install]
)
WINE_CONFIG_PROGRAM(hh
,,[install]
)
WINE_CONFIG_PROGRAM(hostname
,,[install]
)
WINE_CONFIG_PROGRAM(icacls
,,[install]
)
WINE_CONFIG_PROGRAM(icinfo
,,[install]
)
WINE_CONFIG_PROGRAM(iexplore
,,[install]
)
WINE_CONFIG_PROGRAM(ipconfig
,,[install]
)
WINE_CONFIG_PROGRAM(lodctr
,,[install]
)
WINE_CONFIG_PROGRAM(mofcomp
,,[install]
)
WINE_CONFIG_PROGRAM(mshta
,,[install]
)
WINE_CONFIG_PROGRAM(msiexec
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(msinfo32
,,[install]
)
WINE_CONFIG_PROGRAM(net
,,[install]
)
WINE_CONFIG_PROGRAM(netsh
,,[install]
)
WINE_CONFIG_PROGRAM(netstat
,,[install]
)
WINE_CONFIG_PROGRAM(ngen
,,[install]
)
WINE_CONFIG_PROGRAM(notepad
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(oleview
,,[install]
)
WINE_CONFIG_PROGRAM(ping
,,[install]
)
WINE_CONFIG_PROGRAM(plugplay
,,[install]
)
WINE_CONFIG_PROGRAM(powershell
,,[install]
)
WINE_CONFIG_PROGRAM(presentationfontcache
,,[install]
)
WINE_CONFIG_PROGRAM(progman
,,[install]
)
WINE_CONFIG_PROGRAM(reg
,,[install]
)
WINE_CONFIG_PROGRAM(conhost)
WINE_CONFIG_PROGRAM(control)
WINE_CONFIG_PROGRAM(cscript)
WINE_CONFIG_PROGRAM(dpnsvr)
WINE_CONFIG_PROGRAM(dxdiag)
WINE_CONFIG_PROGRAM(eject)
WINE_CONFIG_PROGRAM(expand)
WINE_CONFIG_PROGRAM(explorer)
WINE_CONFIG_PROGRAM(extrac32)
WINE_CONFIG_PROGRAM(findstr)
WINE_CONFIG_PROGRAM(fsutil)
WINE_CONFIG_PROGRAM(hh)
WINE_CONFIG_PROGRAM(hostname)
WINE_CONFIG_PROGRAM(icacls)
WINE_CONFIG_PROGRAM(icinfo)
WINE_CONFIG_PROGRAM(iexplore)
WINE_CONFIG_PROGRAM(ipconfig)
WINE_CONFIG_PROGRAM(lodctr)
WINE_CONFIG_PROGRAM(mofcomp)
WINE_CONFIG_PROGRAM(mshta)
WINE_CONFIG_PROGRAM(msiexec)
WINE_CONFIG_PROGRAM(msinfo32)
WINE_CONFIG_PROGRAM(net)
WINE_CONFIG_PROGRAM(netsh)
WINE_CONFIG_PROGRAM(netstat)
WINE_CONFIG_PROGRAM(ngen)
WINE_CONFIG_PROGRAM(notepad)
WINE_CONFIG_PROGRAM(oleview)
WINE_CONFIG_PROGRAM(ping)
WINE_CONFIG_PROGRAM(plugplay)
WINE_CONFIG_PROGRAM(powershell)
WINE_CONFIG_PROGRAM(presentationfontcache)
WINE_CONFIG_PROGRAM(progman)
WINE_CONFIG_PROGRAM(reg)
WINE_CONFIG_TEST(programs/reg/tests)
WINE_CONFIG_PROGRAM(regasm
,,[install]
)
WINE_CONFIG_PROGRAM(regedit
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(regasm)
WINE_CONFIG_PROGRAM(regedit)
WINE_CONFIG_TEST(programs/regedit/tests)
WINE_CONFIG_PROGRAM(regsvcs
,,[install]
)
WINE_CONFIG_PROGRAM(regsvr32
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(rpcss
,,[install]
)
WINE_CONFIG_PROGRAM(rundll.exe16,enable_win16
,[install]
)
WINE_CONFIG_PROGRAM(rundll32
,,[install]
)
WINE_CONFIG_PROGRAM(sc
,,[install]
)
WINE_CONFIG_PROGRAM(schtasks
,,[install]
)
WINE_CONFIG_PROGRAM(regsvcs)
WINE_CONFIG_PROGRAM(regsvr32)
WINE_CONFIG_PROGRAM(rpcss)
WINE_CONFIG_PROGRAM(rundll.exe16,enable_win16)
WINE_CONFIG_PROGRAM(rundll32)
WINE_CONFIG_PROGRAM(sc)
WINE_CONFIG_PROGRAM(schtasks)
WINE_CONFIG_TEST(programs/schtasks/tests)
WINE_CONFIG_PROGRAM(sdbinst
,,[install]
)
WINE_CONFIG_PROGRAM(secedit
,,[install]
)
WINE_CONFIG_PROGRAM(servicemodelreg
,,[install]
)
WINE_CONFIG_PROGRAM(services
,,[install]
)
WINE_CONFIG_PROGRAM(sdbinst)
WINE_CONFIG_PROGRAM(secedit)
WINE_CONFIG_PROGRAM(servicemodelreg)
WINE_CONFIG_PROGRAM(services)
WINE_CONFIG_TEST(programs/services/tests)
WINE_CONFIG_PROGRAM(shutdown
,,[install]
)
WINE_CONFIG_PROGRAM(spoolsv
,,[install]
)
WINE_CONFIG_PROGRAM(start
,,[install]
)
WINE_CONFIG_PROGRAM(subst
,,[install]
)
WINE_CONFIG_PROGRAM(svchost
,,[install]
)
WINE_CONFIG_PROGRAM(systeminfo
,,[install]
)
WINE_CONFIG_PROGRAM(taskkill
,,[install]
)
WINE_CONFIG_PROGRAM(tasklist
,,[install]
)
WINE_CONFIG_PROGRAM(taskmgr
,,[install]
)
WINE_CONFIG_PROGRAM(termsv
,,[install]
)
WINE_CONFIG_PROGRAM(uninstaller
,,[install]
)
WINE_CONFIG_PROGRAM(unlodctr
,,[install]
)
WINE_CONFIG_PROGRAM(view
,,[install]
)
WINE_CONFIG_PROGRAM(wevtutil
,,[install]
)
WINE_CONFIG_PROGRAM(wineboot
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(winebrowser
,,[install]
)
WINE_CONFIG_PROGRAM(winecfg
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(wineconsole
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(winedbg
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(winedevice
,,[install]
)
WINE_CONFIG_PROGRAM(winefile
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(winemenubuilder
,,[install]
)
WINE_CONFIG_PROGRAM(winemine
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(winemsibuilder
,,[install]
)
WINE_CONFIG_PROGRAM(winepath
,,[install,installbin,manpage]
)
WINE_CONFIG_PROGRAM(shutdown)
WINE_CONFIG_PROGRAM(spoolsv)
WINE_CONFIG_PROGRAM(start)
WINE_CONFIG_PROGRAM(subst)
WINE_CONFIG_PROGRAM(svchost)
WINE_CONFIG_PROGRAM(systeminfo)
WINE_CONFIG_PROGRAM(taskkill)
WINE_CONFIG_PROGRAM(tasklist)
WINE_CONFIG_PROGRAM(taskmgr)
WINE_CONFIG_PROGRAM(termsv)
WINE_CONFIG_PROGRAM(uninstaller)
WINE_CONFIG_PROGRAM(unlodctr)
WINE_CONFIG_PROGRAM(view)
WINE_CONFIG_PROGRAM(wevtutil)
WINE_CONFIG_PROGRAM(wineboot)
WINE_CONFIG_PROGRAM(winebrowser)
WINE_CONFIG_PROGRAM(winecfg)
WINE_CONFIG_PROGRAM(wineconsole)
WINE_CONFIG_PROGRAM(winedbg)
WINE_CONFIG_PROGRAM(winedevice)
WINE_CONFIG_PROGRAM(winefile)
WINE_CONFIG_PROGRAM(winemenubuilder)
WINE_CONFIG_PROGRAM(winemine)
WINE_CONFIG_PROGRAM(winemsibuilder)
WINE_CONFIG_PROGRAM(winepath)
WINE_CONFIG_PROGRAM(winetest)
WINE_CONFIG_PROGRAM(winevdm,enable_win16
,[install]
)
WINE_CONFIG_PROGRAM(winhelp.exe16,enable_win16
,[install]
)
WINE_CONFIG_PROGRAM(winhlp32
,,[install]
)
WINE_CONFIG_PROGRAM(winoldap.mod16,enable_win16
,[install]
)
WINE_CONFIG_PROGRAM(winver
,,[install]
)
WINE_CONFIG_PROGRAM(wmic
,,[install]
)
WINE_CONFIG_PROGRAM(wmplayer
,,[install]
)
WINE_CONFIG_PROGRAM(wordpad
,,[install]
)
WINE_CONFIG_PROGRAM(write
,,[install]
)
WINE_CONFIG_PROGRAM(wscript
,,[install]
)
WINE_CONFIG_PROGRAM(winevdm,enable_win16)
WINE_CONFIG_PROGRAM(winhelp.exe16,enable_win16)
WINE_CONFIG_PROGRAM(winhlp32)
WINE_CONFIG_PROGRAM(winoldap.mod16,enable_win16)
WINE_CONFIG_PROGRAM(winver)
WINE_CONFIG_PROGRAM(wmic)
WINE_CONFIG_PROGRAM(wmplayer)
WINE_CONFIG_PROGRAM(wordpad)
WINE_CONFIG_PROGRAM(write)
WINE_CONFIG_PROGRAM(wscript)
WINE_CONFIG_TEST(programs/wscript/tests)
WINE_CONFIG_PROGRAM(wusa
,,[install]
)
WINE_CONFIG_PROGRAM(xcopy
,,[install]
)
WINE_CONFIG_PROGRAM(wusa)
WINE_CONFIG_PROGRAM(xcopy)
WINE_CONFIG_TEST(programs/xcopy/tests)
WINE_CONFIG_MAKEFILE([server]
,,[install-lib]
)
WINE_CONFIG_MAKEFILE([server])
WINE_CONFIG_TOOL(tools)
WINE_CONFIG_TOOL(tools/sfnt2fon)
WINE_CONFIG_TOOL(tools/widl
,[install-dev]
)
WINE_CONFIG_TOOL(tools/winebuild
,[install-dev]
)
WINE_CONFIG_TOOL(tools/winedump
,[install-dev]
)
WINE_CONFIG_TOOL(tools/winegcc
,[install-dev]
)
WINE_CONFIG_TOOL(tools/winemaker
,[install-dev]
)
WINE_CONFIG_TOOL(tools/wmc
,[install-dev]
)
WINE_CONFIG_TOOL(tools/wrc
,[install-dev]
)
WINE_CONFIG_TOOL(tools/widl)
WINE_CONFIG_TOOL(tools/winebuild)
WINE_CONFIG_TOOL(tools/winedump)
WINE_CONFIG_TOOL(tools/winegcc)
WINE_CONFIG_TOOL(tools/winemaker)
WINE_CONFIG_TOOL(tools/wmc)
WINE_CONFIG_TOOL(tools/wrc)
dnl End of auto-generated output commands
dnl Main ignore file
...
...
tools/make_makefiles
View file @
733ed056
...
...
@@ -251,32 +251,6 @@ sub parse_makefile($)
}
}
if
(
$file
=~
/^programs\/([^\/]+)\/Makefile/
)
{
my
$prog
=
$1
;
if
(
defined
$make
{
"INSTALL_LIB"
})
{
$
{
$make
{
"=flags"
}}{
"install"
}
=
1
if
grep
{
"$prog.exe"
eq
$_
;
}
@
{
$make
{
"INSTALL_LIB"
}};
$
{
$make
{
"=flags"
}}{
"installbin"
}
=
1
if
grep
{
$prog
eq
$_
;
}
@
{
$make
{
"INSTALL_LIB"
}};
}
else
{
$
{
$make
{
"=flags"
}}{
"install"
}
=
1
;
}
}
unless
(
defined
$make
{
"MODULE"
})
{
$
{
$make
{
"=flags"
}}{
"install-lib"
}
=
1
if
defined
$make
{
"INSTALL_LIB"
};
$
{
$make
{
"=flags"
}}{
"install-dev"
}
=
1
if
defined
$make
{
"INSTALL_DEV"
};
}
if
(
defined
$make
{
"=flags"
}
&&
defined
$make
{
"MODULE"
})
{
die
"Custom install-lib rule not allowed in $file"
if
defined
$
{
$make
{
"=flags"
}}{
"install-lib"
};
die
"Custom install-dev rule not allowed in $file"
if
defined
$
{
$make
{
"=flags"
}}{
"install-dev"
};
}
return
%
make
;
}
...
...
@@ -379,7 +353,6 @@ sub assign_sources_to_makefiles(@)
elsif
(
$name
=~
/\.svg$/
)
{
push
@
{
$
{
$make
}{
"=SVG_SRCS"
}},
$name
;
}
elsif
(
$name
=~
/\.sfd$/
)
{
$
{
$
{
$make
}{
"=flags"
}}{
"install-lib"
}
=
1
if
defined
$flags
{
"install"
};
push
@
{
$
{
$make
}{
"=FONT_SRCS"
}},
$name
;
}
elsif
(
$name
=~
/\.c$/
)
...
...
@@ -390,7 +363,6 @@ sub assign_sources_to_makefiles(@)
elsif
(
$name
=~
/\.h$/
||
$name
=~
/\.rh$/
||
$name
=~
/\.inl$/
||
$name
=~
/\.x$/
)
{
next
if
$dir
ne
"include"
;
$
{
$
{
$make
}{
"=flags"
}}{
"install-dev"
}
=
1
;
}
elsif
(
$name
=~
/\.rc$/
)
{
...
...
@@ -412,7 +384,6 @@ sub assign_sources_to_makefiles(@)
elsif
(
$name
=~
/\.man\.in$/
)
{
push
@
{
$
{
$make
}{
"=MANPAGES"
}},
$name
;
$
{
$
{
$make
}{
"=flags"
}}{
"manpage"
}
=
1
if
(
$file
=~
/^programs\//
);
}
elsif
(
$name
=~
/\.in$/
)
{
...
...
tools/makedep.c
View file @
733ed056
...
...
@@ -2202,46 +2202,20 @@ static void output_symlink_rule( const char *src_name, const char *link_name )
/*******************************************************************
* output_install_rules
*
* Rules are stored as a (file,dest) pair of values.
* The first char of dest indicates the type of install.
* output_install_commands
*/
static
void
output_install_rules
(
struct
makefile
*
make
,
enum
install_rules
rules
,
const
char
*
target
)
static
void
output_install_commands
(
struct
makefile
*
make
,
const
struct
makefile
*
submake
,
struct
strarray
files
)
{
unsigned
int
i
;
char
*
install_sh
;
struct
strarray
files
=
make
->
install_rules
[
rules
];
struct
strarray
targets
=
empty_strarray
;
if
(
!
files
.
count
)
return
;
char
*
install_sh
=
top_src_dir_path
(
make
,
"tools/install-sh"
);
for
(
i
=
0
;
i
<
files
.
count
;
i
+=
2
)
{
const
char
*
file
=
files
.
str
[
i
];
switch
(
*
files
.
str
[
i
+
1
])
{
case
'd'
:
/* data file */
case
'p'
:
/* program file */
case
's'
:
/* script */
strarray_add_uniq
(
&
targets
,
obj_dir_path
(
make
,
file
));
break
;
case
't'
:
/* script in tools dir */
strarray_add_uniq
(
&
targets
,
tools_dir_path
(
make
,
file
));
break
;
}
}
output
(
"install %s::"
,
target
);
output_filenames
(
targets
);
output
(
"
\n
"
);
install_sh
=
top_src_dir_path
(
make
,
"tools/install-sh"
);
for
(
i
=
0
;
i
<
files
.
count
;
i
+=
2
)
{
const
char
*
file
=
files
.
str
[
i
];
const
char
*
dest
=
strmake
(
"$(DESTDIR)%s"
,
files
.
str
[
i
+
1
]
+
1
);
if
(
submake
)
file
=
base_dir_path
(
submake
,
file
);
switch
(
*
files
.
str
[
i
+
1
])
{
case
'd'
:
/* data file */
...
...
@@ -2266,16 +2240,53 @@ static void output_install_rules( struct makefile *make, enum install_rules rule
break
;
case
't'
:
/* script in tools dir */
output
(
"
\t
%s $(INSTALL_SCRIPT_FLAGS) %s %s
\n
"
,
install_sh
,
tools_dir_path
(
make
,
file
),
dest
);
install_sh
,
tools_dir_path
(
make
,
file
s
.
str
[
i
]
),
dest
);
break
;
case
'y'
:
/* symlink */
output_symlink_rule
(
file
,
dest
);
output_symlink_rule
(
file
s
.
str
[
i
]
,
dest
);
break
;
default:
assert
(
0
);
}
strarray_add
(
&
make
->
uninstall_files
,
dest
);
}
}
/*******************************************************************
* output_install_rules
*
* Rules are stored as a (file,dest) pair of values.
* The first char of dest indicates the type of install.
*/
static
void
output_install_rules
(
struct
makefile
*
make
,
enum
install_rules
rules
,
const
char
*
target
)
{
unsigned
int
i
;
struct
strarray
files
=
make
->
install_rules
[
rules
];
struct
strarray
targets
=
empty_strarray
;
if
(
!
files
.
count
)
return
;
for
(
i
=
0
;
i
<
files
.
count
;
i
+=
2
)
{
const
char
*
file
=
files
.
str
[
i
];
switch
(
*
files
.
str
[
i
+
1
])
{
case
'd'
:
/* data file */
case
'p'
:
/* program file */
case
's'
:
/* script */
strarray_add_uniq
(
&
targets
,
obj_dir_path
(
make
,
file
));
break
;
case
't'
:
/* script in tools dir */
strarray_add_uniq
(
&
targets
,
tools_dir_path
(
make
,
file
));
break
;
}
}
output
(
"install %s::"
,
target
);
output_filenames
(
targets
);
output
(
"
\n
"
);
output_install_commands
(
make
,
NULL
,
files
);
strarray_add_uniq
(
&
make
->
phony_targets
,
"install"
);
strarray_add_uniq
(
&
make
->
phony_targets
,
target
);
...
...
@@ -3117,7 +3128,7 @@ static void output_module( struct makefile *make )
if
(
spec_file
)
output_man_pages
(
make
);
else
if
(
*
dll_ext
)
else
if
(
*
dll_ext
&&
!
make
->
is_win16
)
{
char
*
binary
=
replace_extension
(
make
->
module
,
".exe"
,
""
);
add_install_rule
(
make
,
binary
,
"wineapploader"
,
strmake
(
"t$(bindir)/%s"
,
binary
));
...
...
@@ -3408,8 +3419,18 @@ static void output_subdirs( struct makefile *make )
strarray_add
(
&
distclean_files
,
base_dir_path
(
submake
,
submake
->
distclean_files
.
str
[
j
]
));
for
(
j
=
0
;
j
<
submake
->
ok_files
.
count
;
j
++
)
strarray_add
(
&
testclean_files
,
base_dir_path
(
submake
,
submake
->
ok_files
.
str
[
j
]
));
strarray_addall
(
&
make
->
uninstall_files
,
submake
->
uninstall_files
);
strarray_addall
(
&
build_deps
,
output_importlib_symlinks
(
make
,
submake
));
if
(
submake
->
disabled
)
continue
;
if
(
submake
->
install_rules
[
INSTALL_LIB
].
count
)
{
output
(
"install install-lib:: %s
\n
"
,
submake
->
base_dir
);
output_install_commands
(
make
,
submake
,
submake
->
install_rules
[
INSTALL_LIB
]
);
}
if
(
submake
->
install_rules
[
INSTALL_DEV
].
count
)
{
output
(
"install install-dev:: %s
\n
"
,
submake
->
base_dir
);
output_install_commands
(
make
,
submake
,
submake
->
install_rules
[
INSTALL_DEV
]
);
}
}
output
(
"Makefile:"
);
output_filenames
(
makefile_deps
);
...
...
@@ -3818,7 +3839,7 @@ static void load_sources( struct makefile *make )
if
(
make
->
module
&&
strendswith
(
make
->
module
,
".a"
))
make
->
staticlib
=
make
->
module
;
make
->
disabled
=
make
->
base_dir
&&
strarray_exists
(
&
disabled_dirs
,
make
->
base_dir
);
make
->
is_win16
=
strarray_exists
(
&
make
->
extradllflags
,
"-m16"
);
make
->
is_win16
=
strarray_exists
(
&
make
->
extradllflags
,
"-m16"
)
||
strarray_exists
(
&
make
->
appmode
,
"-m16"
)
;
make
->
use_msvcrt
=
strarray_exists
(
&
make
->
appmode
,
"-mno-cygwin"
);
for
(
i
=
0
;
i
<
make
->
imports
.
count
&&
!
make
->
use_msvcrt
;
i
++
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment