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
cb078bd3
Commit
cb078bd3
authored
Nov 30, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Look in the extra targets for dependencies.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
364f97c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
Makefile.in
programs/winetest/Makefile.in
+1
-3
winetest.rc
programs/winetest/winetest.rc
+3
-0
makedep.c
tools/makedep.c
+11
-1
No files found.
programs/winetest/Makefile.in
View file @
cb078bd3
...
...
@@ -21,12 +21,10 @@ EXTRA_TARGETS = build.nfo
INSTALL_LIB
=
none
build.rc
:
dummy
build
=
"
BUILD_INFO STRINGRES build.nfo STRINGTABLE { 1
\"
`
GIT_DIR
=
$(top_srcdir)
/.git git rev-parse HEAD 2>/dev/null
`
\"
}"
&&
(
echo
$$
build | cmp
-s
-
$@
)
||
echo
$$
build
>
$@
||
(
$(RM)
$@
&&
exit
1
)
build
=
"
STRINGTABLE { 1
\"
`
GIT_DIR
=
$(top_srcdir)
/.git git rev-parse HEAD 2>/dev/null
`
\"
}"
&&
(
echo
$$
build | cmp
-s
-
$@
)
||
echo
$$
build
>
$@
||
(
rm
-f
$@
&&
exit
1
)
build.nfo
:
-
$(CC)
-v
2>
$@
build.res
:
build.nfo
dummy
:
.PHONY
:
dummy
programs/winetest/winetest.rc
View file @
cb078bd3
...
...
@@ -90,3 +90,6 @@ END
/* @makedep: winetest.ico */
IDI_WINE ICON "winetest.ico"
/* @makedep: build.nfo */
BUILD_INFO STRINGRES "build.nfo"
tools/makedep.c
View file @
cb078bd3
...
...
@@ -170,6 +170,7 @@ struct makefile
struct
strarray
extradllflags
;
struct
strarray
install_lib
;
struct
strarray
install_dev
;
struct
strarray
extra_targets
;
struct
list
sources
;
struct
list
includes
;
const
char
*
base_dir
;
...
...
@@ -1433,6 +1434,14 @@ static struct file *open_include_file( const struct makefile *make, struct incl_
return
file
;
}
/* check for extra targets */
if
(
strarray_exists
(
&
make
->
extra_targets
,
pFile
->
name
))
{
pFile
->
sourcename
=
filename
;
pFile
->
filename
=
obj_dir_path
(
make
,
pFile
->
name
);
return
NULL
;
}
/* now try in source dir */
if
((
file
=
open_local_file
(
make
,
pFile
->
name
,
&
pFile
->
filename
)))
return
file
;
...
...
@@ -3740,7 +3749,7 @@ static void output_sources( struct makefile *make )
strarray_addall
(
&
make
->
clean_files
,
make
->
object_files
);
strarray_addall_uniq
(
&
make
->
clean_files
,
make
->
crossobj_files
);
strarray_addall
(
&
make
->
clean_files
,
make
->
all_targets
);
strarray_addall
(
&
make
->
clean_files
,
get_expanded_make_var_array
(
make
,
"EXTRA_TARGETS"
)
);
strarray_addall
(
&
make
->
clean_files
,
make
->
extra_targets
);
if
(
make
->
clean_files
.
count
)
{
...
...
@@ -4044,6 +4053,7 @@ static void load_sources( struct makefile *make )
make
->
extradllflags
=
get_expanded_make_var_array
(
make
,
"EXTRADLLFLAGS"
);
make
->
install_lib
=
get_expanded_make_var_array
(
make
,
"INSTALL_LIB"
);
make
->
install_dev
=
get_expanded_make_var_array
(
make
,
"INSTALL_DEV"
);
make
->
extra_targets
=
get_expanded_make_var_array
(
make
,
"EXTRA_TARGETS"
);
if
(
make
->
module
&&
strendswith
(
make
->
module
,
".a"
))
make
->
staticlib
=
make
->
module
;
...
...
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