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
4945a136
Commit
4945a136
authored
Jan 23, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Cross-compile all static libraries and import libs to .cross.a files to avoid conflicts.
parent
62e0de5f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
Make.rules.in
Make.rules.in
+1
-1
Makefile.in
dlls/Makefile.in
+0
-0
make_makefiles
tools/make_makefiles
+14
-5
No files found.
Make.rules.in
View file @
4945a136
...
...
@@ -76,7 +76,7 @@ WRC = $(TOOLSDIR)/tools/wrc/wrc$(TOOLSEXT)
WMC = $(TOOLSDIR)/tools/wmc/wmc$(TOOLSEXT)
WIDL = $(TOOLSDIR)/tools/widl/widl$(TOOLSEXT)
WINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc $(TARGETFLAGS) -B$(TOOLSDIR)/tools/winebuild --sysroot=$(TOPOBJDIR)
CROSSWINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc
@CROSSTARGETFLAGS@ -B$(TOOLSDIR)/tools/winebuild --sysroot=$(TOPOBJDIR)
CROSSWINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc
$(CROSSTARGET:%=-b %) -B$(TOOLSDIR)/tools/winebuild --sysroot=$(TOPOBJDIR) --lib-suffix=.cross.a
RELPATH = $(TOOLSDIR)/tools/relpath$(TOOLSEXT)
SFNT2FNT = $(TOOLSDIR)/tools/sfnt2fnt$(TOOLSEXT)
RC = $(WRC)
...
...
dlls/Makefile.in
View file @
4945a136
This diff is collapsed.
Click to expand it.
tools/make_makefiles
View file @
4945a136
...
...
@@ -524,13 +524,17 @@ sub update_dlls(@)
foreach
my
$mod
(
sort
@lib_symlinks
)
{
next
if
$mod
=~
/16$/
;
$text
.=
sprintf
" \\\n\tlib%s.a"
,
$importlibs
{
$mod
};
$text
.=
sprintf
" \\\n\tlib%s.cross.a"
,
$importlibs
{
$mod
};
}
foreach
my
$mod
(
sort
keys
%
staticlib_dirs
)
{
$text
.=
sprintf
" \\\n\t%s/lib%s.cross.a"
,
$staticlib_dirs
{
$mod
},
$mod
;
}
foreach
my
$mod
(
sort
keys
%
importlibs
)
{
next
if
$mod
=~
/16$/
;
next
if
defined
$static_implibs
{
$mod
};
$text
.=
" \\\n\t$directories{$mod}/lib$importlibs{$mod}.a"
;
$text
.=
" \\\n\t$directories{$mod}/lib$importlibs{$mod}.
cross.
a"
;
}
$text
.=
"\n\n"
;
$text
.=
"\$(TESTSUBDIRS:%=%/__crosstest__): \$(CROSS_IMPLIBS)\n\n"
;
...
...
@@ -548,13 +552,13 @@ sub update_dlls(@)
{
$text
.=
sprintf
"%s/lib%s.def: %s/%s.spec \$(WINEBUILD)\n"
,
$dir
,
$lib
,
$dir
,
$spec
;
$text
.=
sprintf
"\t\@cd %s && \$(MAKE) lib%s.def\n\n"
,
$dir
,
$lib
;
$text
.=
sprintf
"%s/lib%s.\$(STATIC_IMPLIBEXT)
: dummy\n"
,
$dir
,
$lib
,
$dir
,
$spec
;
$text
.=
sprintf
"%s/lib%s.\$(STATIC_IMPLIBEXT)
%s/lib%s.cross.a: dummy\n"
,
$dir
,
$lib
,
$dir
,
$lib
,
$dir
,
$spec
;
$text
.=
sprintf
"\t\@cd %s && \$(MAKE) lib%s.\$(STATIC_IMPLIBEXT)\n\n"
,
$dir
,
$lib
;
}
else
{
$text
.=
sprintf
"%s/lib%s.def %s/lib%s.a: %s/%s.spec \$(WINEBUILD)\n"
,
$dir
,
$lib
,
$dir
,
$lib
,
$dir
,
$spec
;
$text
.=
sprintf
"%s/lib%s.def %s/lib%s.a
%s/lib%s.cross.a
: %s/%s.spec \$(WINEBUILD)\n"
,
$dir
,
$lib
,
$dir
,
$lib
,
$dir
,
$
lib
,
$dir
,
$
spec
;
$text
.=
sprintf
"\t\@cd %s && \$(MAKE) `basename \$\@`\n\n"
,
$dir
;
}
}
...
...
@@ -564,6 +568,8 @@ sub update_dlls(@)
my
$lib
=
"lib"
.
$importlibs
{
$mod
};
$text
.=
sprintf
"%s.a: %s/%s.a\n"
,
$lib
,
$dir
,
$lib
;
$text
.=
sprintf
"\t\$(RM) \$@ && \$(LN_S) %s/%s.a \$@\n\n"
,
$dir
,
$lib
;
$text
.=
sprintf
"%s.cross.a: %s/%s.cross.a\n"
,
$lib
,
$dir
,
$lib
;
$text
.=
sprintf
"\t\$(RM) \$@ && \$(LN_S) %s/%s.cross.a \$@\n\n"
,
$dir
,
$lib
;
$text
.=
sprintf
"%s.def: %s/%s.def\n"
,
$lib
,
$dir
,
$lib
;
$text
.=
sprintf
"\t\$(RM) \$@ && \$(LN_S) %s/%s.def \$@\n\n"
,
$dir
,
$lib
;
}
...
...
@@ -577,7 +583,10 @@ sub update_dlls(@)
foreach
my
$mod
(
sort
keys
%
staticlib_dirs
)
{
my
$dir
=
$staticlib_dirs
{
$mod
};
$text
.=
sprintf
"%s/lib%s.a: %s\n"
,
$staticlib_dirs
{
$mod
},
$mod
,
$staticlib_dirs
{
$mod
};
$text
.=
sprintf
"%s/lib%s.cross.a: dummy\n"
,
$dir
,
$mod
;
$text
.=
sprintf
"\t\@cd %s && \$(MAKE) lib%s.cross.a\n\n"
,
$dir
,
$mod
;
}
$text
.=
"\n# Misc rules\n"
;
...
...
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