Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
431b6459
Commit
431b6459
authored
Mar 04, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Generate the tools dependencies from makedep.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
acc6306b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
28 deletions
+43
-28
Makefile.in
Makefile.in
+3
-10
aclocal.m4
aclocal.m4
+1
-8
configure
configure
+4
-9
configure.ac
configure.ac
+3
-1
makedep.c
tools/makedep.c
+32
-0
No files found.
Makefile.in
View file @
431b6459
...
@@ -74,7 +74,6 @@ CROSSTARGET = @CROSSTARGET@
...
@@ -74,7 +74,6 @@ CROSSTARGET = @CROSSTARGET@
SUBDIRS
=
@SUBDIRS@
SUBDIRS
=
@SUBDIRS@
RUNTESTFLAGS
=
-q
-P
wine
RUNTESTFLAGS
=
-q
-P
wine
MAKEDEP
=
$(TOOLSDIR)
/tools/makedep
$(TOOLSEXT)
MAKEDEP
=
$(TOOLSDIR)
/tools/makedep
$(TOOLSEXT)
WINEBUILD
=
$(TOOLSDIR)
/tools/winebuild/winebuild
$(TOOLSEXT)
WRC
=
$(TOOLSDIR)
/tools/wrc/wrc
$(TOOLSEXT)
WRC
=
$(TOOLSDIR)
/tools/wrc/wrc
$(TOOLSEXT)
PACKAGE_VERSION
=
@PACKAGE_VERSION@
PACKAGE_VERSION
=
@PACKAGE_VERSION@
SED_CMD
=
LC_ALL
=
C
sed
-e
's,@bindir\@,
$(bindir)
,g'
-e
's,@dlldir\@,
$(dlldir)
,g'
-e
's,@srcdir\@,
$(srcdir)
,g'
-e
's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g'
-e
's,@PACKAGE_VERSION\@,@PACKAGE_VERSION@,g'
SED_CMD
=
LC_ALL
=
C
sed
-e
's,@bindir\@,
$(bindir)
,g'
-e
's,@dlldir\@,
$(dlldir)
,g'
-e
's,@srcdir\@,
$(srcdir)
,g'
-e
's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g'
-e
's,@PACKAGE_VERSION\@,@PACKAGE_VERSION@,g'
...
@@ -128,18 +127,12 @@ install-manpages:: manpages
...
@@ -128,18 +127,12 @@ install-manpages:: manpages
# Dependencies between directories
# Dependencies between directories
# dependencies needed to build any dll or program
# dependencies needed to build any dll or program
__tooldeps__
:
libs/
port libs/
wpp
__tooldeps__
:
libs/wpp
__builddeps__
:
__tooldeps__ libs/wine include po
__builddeps__
:
__tooldeps__ libs/wine include po
.PHONY
:
depend dummy
__tooldeps__
install install-lib install-dev
.PHONY
:
depend dummy install install-lib install-dev
dummy
:
dummy
:
loader
:
libs/port libs/wine tools
server
:
include
server
:
libs/port libs/wine tools include
fonts
:
tools/sfnt2fon
include
:
tools tools/widl
libs/wine tools
:
libs/port
tools/sfnt2fon tools/wmc tools/wrc
:
tools
tools/widl tools/wmc tools/wrc
:
libs/wpp
libs/port libs/wine libs/wpp
:
include/config.h
libs/port libs/wine libs/wpp
:
include/config.h
# Misc rules
# Misc rules
...
...
aclocal.m4
View file @
431b6459
...
@@ -286,15 +286,8 @@ wine_fn_config_test ()
...
@@ -286,15 +286,8 @@ wine_fn_config_test ()
wine_fn_config_tool ()
wine_fn_config_tool ()
{
{
ac_dir=$[1]
ac_dir=$[1]
AS_VAR_IF([enable_tools],[no],[wine_fn_append_file DISABLED_SUBDIRS $ac_dir; return])
AS_VAR_IF([enable_tools],[no],[return])
wine_fn_all_rules
wine_fn_all_rules
wine_fn_append_rule "__tooldeps__: $ac_dir"
wine_fn_append_rule "$ac_dir: libs/port"
case $ac_dir in
tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
esac
}
}
wine_fn_config_symlink ()
wine_fn_config_symlink ()
...
...
configure
View file @
431b6459
...
@@ -7805,16 +7805,9 @@ wine_fn_config_tool ()
...
@@ -7805,16 +7805,9 @@ wine_fn_config_tool ()
{
{
ac_dir
=
$1
ac_dir
=
$1
if
test
"x
$enable_tools
"
=
xno
;
then
:
if
test
"x
$enable_tools
"
=
xno
;
then
:
wine_fn_append_file DISABLED_SUBDIRS
$ac_dir
;
return
return
fi
fi
wine_fn_all_rules
wine_fn_all_rules
wine_fn_append_rule
"__tooldeps__:
$ac_dir
"
wine_fn_append_rule
"
$ac_dir
: libs/port"
case
$ac_dir
in
tools/winebuild
)
wine_fn_append_rule
"
\$
(WINEBUILD):
$ac_dir
"
;;
esac
}
}
wine_fn_config_symlink
()
wine_fn_config_symlink
()
...
@@ -19348,7 +19341,9 @@ if test "x$enable_tools" != xno
...
@@ -19348,7 +19341,9 @@ if test "x$enable_tools" != xno
then
then
wine_fn_append_rule
"tools/makedep
$ac_exeext
:
$srcdir
/tools/makedep.c include/config.h config.status
wine_fn_append_rule
"tools/makedep
$ac_exeext
:
$srcdir
/tools/makedep.c include/config.h config.status
@./config.status tools/makedep
@./config.status tools/makedep
Makefile: tools/makedep
$ac_exeext
"
Makefile: tools/makedep
$ac_exeext
fonts: tools/sfnt2fon
include: tools tools/widl"
else
else
wine_fn_append_rule
"
\$
(MAKEDEP):
wine_fn_append_rule
"
\$
(MAKEDEP):
@echo
\"
You need to run make in
$TOOLSDIR
first
\"
&& false"
@echo
\"
You need to run make in
$TOOLSDIR
first
\"
&& false"
...
...
configure.ac
View file @
431b6459
...
@@ -3954,7 +3954,9 @@ then
...
@@ -3954,7 +3954,9 @@ then
WINE_APPEND_RULE(
WINE_APPEND_RULE(
[tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h config.status
[tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h config.status
@./config.status tools/makedep
@./config.status tools/makedep
Makefile: tools/makedep$ac_exeext])
Makefile: tools/makedep$ac_exeext
fonts: tools/sfnt2fon
include: tools tools/widl])
else
else
WINE_APPEND_RULE(
WINE_APPEND_RULE(
[\$(MAKEDEP):
[\$(MAKEDEP):
...
...
tools/makedep.c
View file @
431b6459
...
@@ -3409,6 +3409,7 @@ static void output_subdirs( struct makefile *make )
...
@@ -3409,6 +3409,7 @@ static void output_subdirs( struct makefile *make )
struct
strarray
testclean_files
=
empty_strarray
;
struct
strarray
testclean_files
=
empty_strarray
;
struct
strarray
distclean_files
=
empty_strarray
;
struct
strarray
distclean_files
=
empty_strarray
;
struct
strarray
tools_deps
=
empty_strarray
;
struct
strarray
tools_deps
=
empty_strarray
;
struct
strarray
tooldeps_deps
=
empty_strarray
;
struct
strarray
winetest_deps
=
empty_strarray
;
struct
strarray
winetest_deps
=
empty_strarray
;
struct
strarray
crosstest_deps
=
empty_strarray
;
struct
strarray
crosstest_deps
=
empty_strarray
;
unsigned
int
i
,
j
;
unsigned
int
i
,
j
;
...
@@ -3509,6 +3510,30 @@ static void output_subdirs( struct makefile *make )
...
@@ -3509,6 +3510,30 @@ static void output_subdirs( struct makefile *make )
strarray_add
(
&
builddeps_deps
,
target
);
strarray_add
(
&
builddeps_deps
,
target
);
}
}
}
}
else
{
if
(
!
strcmp
(
submake
->
base_dir
,
"tools"
)
||
!
strncmp
(
submake
->
base_dir
,
"tools/"
,
6
))
{
strarray_add
(
&
tooldeps_deps
,
submake
->
base_dir
);
for
(
j
=
0
;
j
<
submake
->
programs
.
count
;
j
++
)
output
(
"%s/%s%s: %s
\n
"
,
submake
->
base_dir
,
submake
->
programs
.
str
[
j
],
tools_ext
,
submake
->
base_dir
);
}
if
(
submake
->
programs
.
count
||
submake
->
sharedlib
)
{
struct
strarray
libs
=
get_expanded_make_var_array
(
submake
,
"EXTRALIBS"
);
for
(
j
=
0
;
j
<
submake
->
programs
.
count
;
j
++
)
strarray_addall
(
&
libs
,
get_expanded_file_local_var
(
submake
,
submake
->
programs
.
str
[
j
],
"LDFLAGS"
));
output
(
"%s: libs/port"
,
submake
->
base_dir
);
for
(
j
=
0
;
j
<
libs
.
count
;
j
++
)
{
if
(
!
strcmp
(
libs
.
str
[
j
],
"-lwpp"
))
output_filename
(
"libs/wpp"
);
if
(
!
strcmp
(
libs
.
str
[
j
],
"-lwine"
))
output_filename
(
"libs/wine"
);
}
output
(
"
\n
"
);
}
}
if
(
submake
->
install_rules
[
INSTALL_LIB
].
count
)
if
(
submake
->
install_rules
[
INSTALL_LIB
].
count
)
{
{
...
@@ -3532,6 +3557,13 @@ static void output_subdirs( struct makefile *make )
...
@@ -3532,6 +3557,13 @@ static void output_subdirs( struct makefile *make )
output
(
"
\n
"
);
output
(
"
\n
"
);
output_filenames
(
makefile_deps
);
output_filenames
(
makefile_deps
);
output
(
":
\n
"
);
output
(
":
\n
"
);
if
(
tooldeps_deps
.
count
)
{
output
(
"__tooldeps__:"
);
output_filenames
(
tooldeps_deps
);
output
(
"
\n
"
);
strarray_add
(
&
make
->
phony_targets
,
"__tooldeps__"
);
}
if
(
winetest_deps
.
count
)
if
(
winetest_deps
.
count
)
{
{
output
(
"programs/winetest:"
);
output
(
"programs/winetest:"
);
...
...
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