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
cc7c6a73
Commit
cc7c6a73
authored
Apr 09, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Add a helper to generate a winegcc command line.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b5408ff5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
28 deletions
+31
-28
makedep.c
tools/makedep.c
+31
-28
No files found.
tools/makedep.c
View file @
cc7c6a73
...
...
@@ -2224,6 +2224,28 @@ static struct strarray get_shared_lib_names( const char *libname )
/*******************************************************************
* output_winegcc_command
*/
static
void
output_winegcc_command
(
struct
makefile
*
make
,
int
cross
)
{
output
(
"
\t
%s -o $@"
,
tools_path
(
make
,
"winegcc"
));
output_filename
(
strmake
(
"-B%s"
,
tools_dir_path
(
make
,
"winebuild"
)));
if
(
tools_dir
)
output_filename
(
strmake
(
"--sysroot=%s"
,
top_obj_dir_path
(
make
,
""
)));
if
(
cross
)
{
output_filename
(
"-b"
);
output_filename
(
crosstarget
);
output_filename
(
"--lib-suffix=.cross.a"
);
}
else
{
output_filenames
(
target_flags
);
output_filenames
(
unwind_flags
);
}
}
/*******************************************************************
* output_symlink_rule
*
* Output a rule to create a symlink.
...
...
@@ -2870,11 +2892,8 @@ static void output_source_spec( struct makefile *make, struct incl_file *source,
output_filename
(
tools_path
(
make
,
"winebuild"
));
output_filename
(
tools_path
(
make
,
"winegcc"
));
output
(
"
\n
"
);
output
(
"
\t
%s -s -o $@"
,
tools_path
(
make
,
"winegcc"
));
output_filename
(
strmake
(
"-B%s"
,
tools_dir_path
(
make
,
"winebuild"
)));
if
(
tools_dir
)
output_filename
(
strmake
(
"--sysroot=%s"
,
top_obj_dir_path
(
make
,
""
)));
output_filenames
(
target_flags
);
output_filenames
(
unwind_flags
);
output_winegcc_command
(
make
,
0
);
output_filename
(
"-s"
);
output_filenames
(
dll_flags
);
output_filename
(
"-shared"
);
output_filename
(
source
->
filename
);
...
...
@@ -2903,10 +2922,8 @@ static void output_source_spec( struct makefile *make, struct incl_file *source,
output_filename
(
tools_path
(
make
,
"winebuild"
));
output_filename
(
tools_path
(
make
,
"winegcc"
));
output
(
"
\n
"
);
output
(
"
\t
%s -s -o $@ -b %s"
,
tools_path
(
make
,
"winegcc"
),
crosstarget
);
output_filename
(
strmake
(
"-B%s"
,
tools_dir_path
(
make
,
"winebuild"
)));
if
(
tools_dir
)
output_filename
(
strmake
(
"--sysroot=%s"
,
top_obj_dir_path
(
make
,
""
)));
output_filename
(
"--lib-suffix=.cross.a"
);
output_winegcc_command
(
make
,
1
);
output_filename
(
"-s"
);
output_filenames
(
dll_flags
);
output_filename
(
"-shared"
);
output_filename
(
source
->
filename
);
...
...
@@ -3107,11 +3124,7 @@ static void output_module( struct makefile *make )
output_filename
(
tools_path
(
make
,
"winebuild"
));
output_filename
(
tools_path
(
make
,
"winegcc"
));
output
(
"
\n
"
);
output
(
"
\t
%s -o $@"
,
tools_path
(
make
,
"winegcc"
));
output_filename
(
strmake
(
"-B%s"
,
tools_dir_path
(
make
,
"winebuild"
)));
if
(
tools_dir
)
output_filename
(
strmake
(
"--sysroot=%s"
,
top_obj_dir_path
(
make
,
""
)));
output_filenames
(
target_flags
);
output_filenames
(
unwind_flags
);
output_winegcc_command
(
make
,
0
);
if
(
spec_file
)
{
output
(
" -shared %s"
,
spec_file
);
...
...
@@ -3262,22 +3275,15 @@ static void output_test_module( struct makefile *make )
strarray_add
(
&
make
->
all_targets
,
strmake
(
"%s%s"
,
testmodule
,
dll_ext
));
strarray_add
(
&
make
->
clean_files
,
strmake
(
"%s%s"
,
stripped
,
dll_ext
));
output
(
"%s%s:
\n
"
,
obj_dir_path
(
make
,
testmodule
),
dll_ext
);
output
(
"
\t
%s -o $@"
,
tools_path
(
make
,
"winegcc"
));
output_filename
(
strmake
(
"-B%s"
,
tools_dir_path
(
make
,
"winebuild"
)));
if
(
tools_dir
)
output_filename
(
strmake
(
"--sysroot=%s"
,
top_obj_dir_path
(
make
,
""
)));
output_filenames
(
target_flags
);
output_filenames
(
unwind_flags
);
output_winegcc_command
(
make
,
0
);
output_filenames
(
make
->
appmode
);
output_filenames_obj_dir
(
make
,
make
->
object_files
);
output_filenames
(
all_libs
);
output_filename
(
"$(LDFLAGS)"
);
output
(
"
\n
"
);
output
(
"%s%s:
\n
"
,
obj_dir_path
(
make
,
stripped
),
dll_ext
);
output
(
"
\t
%s -s -o $@"
,
tools_path
(
make
,
"winegcc"
));
output_filename
(
strmake
(
"-B%s"
,
tools_dir_path
(
make
,
"winebuild"
)));
if
(
tools_dir
)
output_filename
(
strmake
(
"--sysroot=%s"
,
top_obj_dir_path
(
make
,
""
)));
output_filenames
(
target_flags
);
output_filenames
(
unwind_flags
);
output_winegcc_command
(
make
,
0
);
output_filename
(
"-s"
);
output_filename
(
strmake
(
"-Wb,-F,%s"
,
testmodule
));
output_filenames
(
make
->
appmode
);
output_filenames_obj_dir
(
make
,
make
->
object_files
);
...
...
@@ -3314,10 +3320,7 @@ static void output_test_module( struct makefile *make )
output_filename
(
tools_path
(
make
,
"winebuild"
));
output_filename
(
tools_path
(
make
,
"winegcc"
));
output
(
"
\n
"
);
output
(
"
\t
%s -o $@ -b %s"
,
tools_path
(
make
,
"winegcc"
),
crosstarget
);
output_filename
(
strmake
(
"-B%s"
,
tools_dir_path
(
make
,
"winebuild"
)));
if
(
tools_dir
)
output_filename
(
strmake
(
"--sysroot=%s"
,
top_obj_dir_path
(
make
,
""
)));
output_filename
(
"--lib-suffix=.cross.a"
);
output_winegcc_command
(
make
,
1
);
output_filenames_obj_dir
(
make
,
make
->
crossobj_files
);
output_filenames
(
all_libs
);
output_filename
(
"$(LDFLAGS)"
);
...
...
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