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
8d6e9161
Commit
8d6e9161
authored
Dec 30, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makedep: Keep track of object files in separate arrays.
parent
ed2d53a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
makedep.c
tools/makedep.c
+13
-5
No files found.
tools/makedep.c
View file @
8d6e9161
...
@@ -1367,6 +1367,9 @@ static struct strarray output_sources(void)
...
@@ -1367,6 +1367,9 @@ static struct strarray output_sources(void)
struct
incl_file
*
source
;
struct
incl_file
*
source
;
int
i
;
int
i
;
int
is_test
=
find_src_file
(
"testlist.o"
)
!=
NULL
;
int
is_test
=
find_src_file
(
"testlist.o"
)
!=
NULL
;
struct
strarray
object_files
=
empty_strarray
;
struct
strarray
crossobj_files
=
empty_strarray
;
struct
strarray
res_files
=
empty_strarray
;
struct
strarray
clean_files
=
empty_strarray
;
struct
strarray
clean_files
=
empty_strarray
;
struct
strarray
po_files
=
empty_strarray
;
struct
strarray
po_files
=
empty_strarray
;
struct
strarray
mc_files
=
empty_strarray
;
struct
strarray
mc_files
=
empty_strarray
;
...
@@ -1457,13 +1460,13 @@ static struct strarray output_sources(void)
...
@@ -1457,13 +1460,13 @@ static struct strarray output_sources(void)
output
(
"
\n
"
);
output
(
"
\n
"
);
output
(
"%s.res:"
,
obj
);
output
(
"%s.res:"
,
obj
);
}
}
strarray_add
(
&
clean
_files
,
strmake
(
"%s.res"
,
obj
));
strarray_add
(
&
res
_files
,
strmake
(
"%s.res"
,
obj
));
}
}
else
if
(
!
strcmp
(
ext
,
"mc"
))
/* message file */
else
if
(
!
strcmp
(
ext
,
"mc"
))
/* message file */
{
{
output
(
"%s.res: $(WMC) $(ALL_MO_FILES) %s
\n
"
,
obj
,
sourcedep
);
output
(
"%s.res: $(WMC) $(ALL_MO_FILES) %s
\n
"
,
obj
,
sourcedep
);
output
(
"
\t
$(WMC) -U -O res $(PORCFLAGS) -o $@ %s
\n
"
,
source
->
filename
);
output
(
"
\t
$(WMC) -U -O res $(PORCFLAGS) -o $@ %s
\n
"
,
source
->
filename
);
strarray_add
(
&
clean
_files
,
strmake
(
"%s.res"
,
obj
));
strarray_add
(
&
res
_files
,
strmake
(
"%s.res"
,
obj
));
strarray_add
(
&
mc_files
,
source
->
filename
);
strarray_add
(
&
mc_files
,
source
->
filename
);
output
(
"msg.pot %s.res:"
,
obj
);
output
(
"msg.pot %s.res:"
,
obj
);
}
}
...
@@ -1551,7 +1554,7 @@ static struct strarray output_sources(void)
...
@@ -1551,7 +1554,7 @@ static struct strarray output_sources(void)
}
}
else
if
(
!
strcmp
(
ext
,
"res"
))
else
if
(
!
strcmp
(
ext
,
"res"
))
{
{
strarray_add
(
&
clean
_files
,
source
->
name
);
strarray_add
(
&
res
_files
,
source
->
name
);
continue
;
/* no dependencies */
continue
;
/* no dependencies */
}
}
else
else
...
@@ -1559,10 +1562,10 @@ static struct strarray output_sources(void)
...
@@ -1559,10 +1562,10 @@ static struct strarray output_sources(void)
if
(
source
->
flags
&
FLAG_GENERATED
)
strarray_add
(
&
clean_files
,
source
->
filename
);
if
(
source
->
flags
&
FLAG_GENERATED
)
strarray_add
(
&
clean_files
,
source
->
filename
);
for
(
i
=
0
;
i
<
object_extensions
.
count
;
i
++
)
for
(
i
=
0
;
i
<
object_extensions
.
count
;
i
++
)
{
{
strarray_add
(
&
clean_files
,
strmake
(
"%s.%s"
,
obj
,
object_extensions
.
str
[
i
]
));
output
(
"%s.%s: %s
\n
"
,
obj
,
object_extensions
.
str
[
i
],
sourcedep
);
output
(
"%s.%s: %s
\n
"
,
obj
,
object_extensions
.
str
[
i
],
sourcedep
);
if
(
strstr
(
object_extensions
.
str
[
i
],
"cross"
))
if
(
strstr
(
object_extensions
.
str
[
i
],
"cross"
))
{
{
strarray_add
(
&
crossobj_files
,
strmake
(
"%s.%s"
,
obj
,
object_extensions
.
str
[
i
]
));
output
(
"
\t
$(CROSSCC) -c -o $@ %s"
,
source
->
filename
);
output
(
"
\t
$(CROSSCC) -c -o $@ %s"
,
source
->
filename
);
output_filenames
(
includes
);
output_filenames
(
includes
);
output_filename
(
"$(ALLCROSSCFLAGS)"
);
output_filename
(
"$(ALLCROSSCFLAGS)"
);
...
@@ -1570,6 +1573,7 @@ static struct strarray output_sources(void)
...
@@ -1570,6 +1573,7 @@ static struct strarray output_sources(void)
}
}
else
else
{
{
strarray_add
(
&
object_files
,
strmake
(
"%s.%s"
,
obj
,
object_extensions
.
str
[
i
]
));
output
(
"
\t
$(CC) -c -o $@ %s"
,
source
->
filename
);
output
(
"
\t
$(CC) -c -o $@ %s"
,
source
->
filename
);
output_filenames
(
includes
);
output_filenames
(
includes
);
output_filename
(
"$(ALLCFLAGS)"
);
output_filename
(
"$(ALLCFLAGS)"
);
...
@@ -1578,7 +1582,7 @@ static struct strarray output_sources(void)
...
@@ -1578,7 +1582,7 @@ static struct strarray output_sources(void)
}
}
if
(
source
->
flags
&
FLAG_C_IMPLIB
)
if
(
source
->
flags
&
FLAG_C_IMPLIB
)
{
{
strarray_add
(
&
c
lean
_files
,
strmake
(
"%s.cross.o"
,
obj
));
strarray_add
(
&
c
rossobj
_files
,
strmake
(
"%s.cross.o"
,
obj
));
output
(
"%s.cross.o: %s
\n
"
,
obj
,
sourcedep
);
output
(
"%s.cross.o: %s
\n
"
,
obj
,
sourcedep
);
output
(
"
\t
$(CROSSCC) -c -o $@ %s"
,
source
->
filename
);
output
(
"
\t
$(CROSSCC) -c -o $@ %s"
,
source
->
filename
);
output_filenames
(
includes
);
output_filenames
(
includes
);
...
@@ -1658,6 +1662,10 @@ static struct strarray output_sources(void)
...
@@ -1658,6 +1662,10 @@ static struct strarray output_sources(void)
strarray_add
(
&
phony_targets
,
"testclean"
);
strarray_add
(
&
phony_targets
,
"testclean"
);
}
}
strarray_addall
(
&
clean_files
,
object_files
);
strarray_addall
(
&
clean_files
,
crossobj_files
);
strarray_addall
(
&
clean_files
,
res_files
);
if
(
clean_files
.
count
)
if
(
clean_files
.
count
)
{
{
output
(
"clean::
\n
"
);
output
(
"clean::
\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