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
1f254216
Commit
1f254216
authored
Jan 23, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Add rules for cross-compiling static libraries.
parent
07af19f3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
4 deletions
+17
-4
Make.rules.in
Make.rules.in
+3
-0
configure
configure
+2
-2
configure.ac
configure.ac
+1
-1
Makedll.rules.in
dlls/Makedll.rules.in
+6
-1
Makeimplib.rules.in
dlls/Makeimplib.rules.in
+5
-0
No files found.
Make.rules.in
View file @
1f254216
...
@@ -53,6 +53,9 @@ FONTFORGE = @FONTFORGE@
...
@@ -53,6 +53,9 @@ FONTFORGE = @FONTFORGE@
RSVG = @RSVG@
RSVG = @RSVG@
ICOTOOL = @ICOTOOL@
ICOTOOL = @ICOTOOL@
CROSSCC = @CROSSCC@
CROSSCC = @CROSSCC@
CROSSTARGET = @CROSSTARGET@
CROSSAR = $(CROSSTARGET)-ar
CROSSRANLIB = $(CROSSTARGET)-ranlib
FAKEEXT = $(DLLEXT:.so=.fake)
FAKEEXT = $(DLLEXT:.so=.fake)
INCLUDES = -I$(SRCDIR) -I. -I$(TOPSRCDIR)/include -I$(TOPOBJDIR)/include $(EXTRAINCL)
INCLUDES = -I$(SRCDIR) -I. -I$(TOPSRCDIR)/include -I$(TOPOBJDIR)/include $(EXTRAINCL)
EXTRACFLAGS = @EXTRACFLAGS@
EXTRACFLAGS = @EXTRACFLAGS@
...
...
configure
View file @
1f254216
...
@@ -653,7 +653,7 @@ X_PRE_LIBS
...
@@ -653,7 +653,7 @@ X_PRE_LIBS
X_CFLAGS
X_CFLAGS
XMKMF
XMKMF
LIBPTHREAD
LIBPTHREAD
CROSSTARGET
FLAGS
CROSSTARGET
CROSSTEST
CROSSTEST
CROSSCC
CROSSCC
CARBONLIB
CARBONLIB
...
@@ -6950,7 +6950,7 @@ test -n "$CROSSCC" || CROSSCC="false"
...
@@ -6950,7 +6950,7 @@ test -n "$CROSSCC" || CROSSCC="false"
done
done
if
test
-n
"
$target
"
if
test
-n
"
$target
"
then
then
CROSSTARGET
FLAGS
=
"-b
$target
"
CROSSTARGET
=
"
$target
"
fi
fi
fi
fi
...
...
configure.ac
View file @
1f254216
...
@@ -772,7 +772,7 @@ then
...
@@ -772,7 +772,7 @@ then
done
done
if test -n "$target"
if test -n "$target"
then
then
AC_SUBST(CROSSTARGET
FLAGS,"-b
$target")
AC_SUBST(CROSSTARGET
,"
$target")
fi
fi
fi
fi
fi
fi
...
...
dlls/Makedll.rules.in
View file @
1f254216
...
@@ -28,6 +28,8 @@ $(MODULE) $(MODULE).so $(MODULE).fake: $(MAINSPEC) $(OBJS) Makefile.in
...
@@ -28,6 +28,8 @@ $(MODULE) $(MODULE).so $(MODULE).fake: $(MAINSPEC) $(OBJS) Makefile.in
# Rules for import libraries
# Rules for import libraries
IMPLIB_CROSSOBJS = $(IMPLIB_OBJS:.o=.cross.o)
.PHONY: implib $(IMPLIB_SRCS:%=__static_implib__%)
.PHONY: implib $(IMPLIB_SRCS:%=__static_implib__%)
all implib: $(IMPORTLIBFILE) $(IMPLIB_SRCS:%=__static_implib__%)
all implib: $(IMPORTLIBFILE) $(IMPLIB_SRCS:%=__static_implib__%)
...
@@ -43,7 +45,10 @@ $(IMPORTLIB:%=lib%.def.a): $(IMPLIB_OBJS)
...
@@ -43,7 +45,10 @@ $(IMPORTLIB:%=lib%.def.a): $(IMPLIB_OBJS)
$(RANLIB) $@
$(RANLIB) $@
$(IMPORTLIB:%=lib%.a): $(MAINSPEC) $(IMPLIB_OBJS)
$(IMPORTLIB:%=lib%.a): $(MAINSPEC) $(IMPLIB_OBJS)
$(WINEBUILD) $(IMPLIBFLAGS) @CROSSTARGETFLAGS@ -w --implib -o $@ --export $(SRCDIR)/$(MAINSPEC) $(IMPLIB_OBJS)
$(WINEBUILD) $(IMPLIBFLAGS) -w --implib -o $@ --export $(SRCDIR)/$(MAINSPEC) $(IMPLIB_OBJS)
$(IMPORTLIB:%=lib%.cross.a): $(MAINSPEC) $(IMPLIB_CROSSOBJS)
$(WINEBUILD) $(IMPLIBFLAGS) $(CROSSTARGET:%=-b %) -w --implib -o $@ --export $(SRCDIR)/$(MAINSPEC) $(IMPLIB_CROSSOBJS)
$(SUBDIRS): implib
$(SUBDIRS): implib
...
...
dlls/Makeimplib.rules.in
View file @
1f254216
...
@@ -21,6 +21,11 @@ $(MODULE:%=lib%.a): $(OBJS) Makefile.in
...
@@ -21,6 +21,11 @@ $(MODULE:%=lib%.a): $(OBJS) Makefile.in
$(AR) $(ARFLAGS) $@ $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
$(RANLIB) $@
$(RANLIB) $@
$(MODULE:%=lib%.cross.a): $(CROSSOBJS) Makefile.in
$(RM) $@
$(CROSSAR) $(ARFLAGS) $@ $(CROSSOBJS)
$(CROSSRANLIB) $@
# Rules for installation
# Rules for installation
install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)
install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)
...
...
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