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
da4c49c7
Commit
da4c49c7
authored
Oct 14, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Generate explicit build rules for message files from makedep.
parent
c00cc015
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
Make.rules.in
Make.rules.in
+1
-8
makedep.c
tools/makedep.c
+19
-2
No files found.
Make.rules.in
View file @
da4c49c7
...
@@ -36,7 +36,7 @@ CROSSOBJS = $(OBJS:.o=.cross.o)
...
@@ -36,7 +36,7 @@ CROSSOBJS = $(OBJS:.o=.cross.o)
# Implicit rules
# Implicit rules
.SUFFIXES: .
mc .
rc .res .idl .tlb .h .ok .man.in .man _c.c _i.c _p.c _s.c _r.res _t.res .cross.o .po .mo @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
.SUFFIXES: .rc .res .idl .tlb .h .ok .man.in .man _c.c _i.c _p.c _s.c _r.res _t.res .cross.o .po .mo @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
.c.o:
.c.o:
$(CC) -c $(ALLCFLAGS) -o $@ $<
$(CC) -c $(ALLCFLAGS) -o $@ $<
...
@@ -47,9 +47,6 @@ CROSSOBJS = $(OBJS:.o=.cross.o)
...
@@ -47,9 +47,6 @@ CROSSOBJS = $(OBJS:.o=.cross.o)
.c.cross.o:
.c.cross.o:
$(CROSSCC) -c $(INCLUDES) $(DEFS) -DWINE_CROSSTEST $(CPPFLAGS) $(CFLAGS) -o $@ $<
$(CROSSCC) -c $(INCLUDES) $(DEFS) -DWINE_CROSSTEST $(CPPFLAGS) $(CFLAGS) -o $@ $<
.mc.res:
$(WMC) -U -O res $(PORCFLAGS) -o $@ $<
.rc.res:
.rc.res:
$(WRC) $(RCFLAGS) -o $@ $<
$(WRC) $(RCFLAGS) -o $@ $<
...
@@ -218,10 +215,6 @@ install install-lib install-dev uninstall::
...
@@ -218,10 +215,6 @@ install install-lib install-dev uninstall::
rsrc.pot: $(WRC)
rsrc.pot: $(WRC)
$(WRC) $(RCFLAGS) -O pot -o $@ $(PO_SRCS)
$(WRC) $(RCFLAGS) -O pot -o $@ $(PO_SRCS)
msg.pot: $(WMC)
$(WMC) -O pot -o $@ $(MC_SRCS)
$(MC_SRCS:.mc=.res): $(WMC) $(ALL_MO_FILES)
$(RC_SRCS:.rc=.res): $(WRC)
$(RC_SRCS:.rc=.res): $(WRC)
$(PO_SRCS:.rc=.res): $(ALL_MO_FILES)
$(PO_SRCS:.rc=.res): $(ALL_MO_FILES)
...
...
tools/makedep.c
View file @
da4c49c7
...
@@ -926,7 +926,7 @@ static void output_include( struct incl_file *pFile, struct incl_file *owner, in
...
@@ -926,7 +926,7 @@ static void output_include( struct incl_file *pFile, struct incl_file *owner, in
static
void
output_sources
(
void
)
static
void
output_sources
(
void
)
{
{
struct
incl_file
*
source
;
struct
incl_file
*
source
;
int
i
,
column
;
int
i
,
column
,
mc_srcs
=
0
;
LIST_FOR_EACH_ENTRY
(
source
,
&
sources
,
struct
incl_file
,
entry
)
LIST_FOR_EACH_ENTRY
(
source
,
&
sources
,
struct
incl_file
,
entry
)
{
{
...
@@ -966,7 +966,10 @@ static void output_sources(void)
...
@@ -966,7 +966,10 @@ static void output_sources(void)
}
}
else
if
(
!
strcmp
(
ext
,
"mc"
))
/* message file */
else
if
(
!
strcmp
(
ext
,
"mc"
))
/* message file */
{
{
column
+=
output
(
"msg.pot %s.res: %s"
,
obj
,
source
->
filename
);
output
(
"%s.res: $(WMC) $(ALL_MO_FILES) %s
\n
"
,
obj
,
source
->
filename
);
output
(
"
\t
$(WMC) -U -O res $(PORCFLAGS) -o $@ %s
\n
"
,
source
->
filename
);
mc_srcs
++
;
column
+=
output
(
"msg.pot %s.res:"
,
obj
);
}
}
else
if
(
!
strcmp
(
ext
,
"idl"
))
/* IDL file */
else
if
(
!
strcmp
(
ext
,
"idl"
))
/* IDL file */
{
{
...
@@ -1018,6 +1021,20 @@ static void output_sources(void)
...
@@ -1018,6 +1021,20 @@ static void output_sources(void)
if
(
source
->
files
[
i
])
output_include
(
source
->
files
[
i
],
source
,
&
column
);
if
(
source
->
files
[
i
])
output_include
(
source
->
files
[
i
],
source
,
&
column
);
output
(
"
\n
"
);
output
(
"
\n
"
);
}
}
/* rules for files that depend on multiple sources */
if
(
mc_srcs
)
{
column
=
output
(
"msg.pot: $(WMC)"
);
LIST_FOR_EACH_ENTRY
(
source
,
&
sources
,
struct
incl_file
,
entry
)
if
(
strendswith
(
source
->
name
,
".mc"
))
output_filename
(
source
->
filename
,
&
column
);
output
(
"
\n
"
);
column
=
output
(
"
\t
$(WMC) -O pot -o $@"
);
LIST_FOR_EACH_ENTRY
(
source
,
&
sources
,
struct
incl_file
,
entry
)
if
(
strendswith
(
source
->
name
,
".mc"
))
output_filename
(
source
->
filename
,
&
column
);
output
(
"
\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