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
a6fd273a
Commit
a6fd273a
authored
Nov 16, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Generate rules from makedep for running tests.
parent
29d08186
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
25 deletions
+30
-25
Make.rules.in
Make.rules.in
+1
-9
Makefile.in
Makefile.in
+1
-1
configure
configure
+1
-3
configure.ac
configure.ac
+1
-3
makedep.c
tools/makedep.c
+26
-9
No files found.
Make.rules.in
View file @
a6fd273a
...
...
@@ -32,10 +32,7 @@ ALLCROSSCFLAGS = $(INCLUDES) $(DEFS) -DWINE_CROSSTEST $(CPPFLAGS) $(CFLAGS)
# Implicit rules
.SUFFIXES: .ok .man.in .man @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
.c.ok:
$(RUNTEST) $(RUNTESTFLAGS) $< && touch $@
.SUFFIXES: .man.in .man @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
.sfd.ttf:
$(FONTFORGE) -script $(top_srcdir)/fonts/genttf.ff $< $@
...
...
@@ -106,11 +103,6 @@ $(CROSSTESTMODULE): $(CROSSOBJS) Makefile.in
$(WINETEST_RES): $(TESTMODULE_STRIPPED)
echo "$(TESTMODULE) TESTRES \"$(TESTMODULE_STRIPPED)\"" | $(WRC) $(RCFLAGS) -o $@
testclean::
$(RM) *.ok
.PHONY: check test testclean
# Rules for man pages
MANPAGES = $(MANPAGE) $(EXTRA_MANPAGES)
...
...
Makefile.in
View file @
a6fd273a
...
...
@@ -58,7 +58,7 @@ uninstall:: __uninstall__
# dependencies needed to build any dll or program
__tooldeps__
:
libs/port libs/wine libs/wpp
__builddeps__
:
__tooldeps__ include
.PHONY
:
test
crosstest __tooldeps__ __builddeps__
.PHONY
:
check test testclean
crosstest __tooldeps__ __builddeps__
loader server
:
libs/port libs/wine tools
fonts
:
tools
...
...
configure
View file @
a6fd273a
...
...
@@ -16161,9 +16161,7 @@ all: \$(TESTMODULE)$DLLEXT \$(WINETEST_RES)
\$
(C_SRCS:.c=.ok):
\$
(TESTMODULE)
$DLLEXT
\$
(TESTDLL:%=../%
$DLLEXT
)
check test:
\$
(C_SRCS:.c=.ok)
.PHONY: check test crosstest
.PHONY: check test testclean crosstest
"
if
test
-n
"
$CROSSTARGET
"
...
...
configure.ac
View file @
a6fd273a
...
...
@@ -2647,9 +2647,7 @@ all: \$(TESTMODULE)$DLLEXT \$(WINETEST_RES)
\$(C_SRCS:.c=.ok): \$(TESTMODULE)$DLLEXT \$(TESTDLL:%=../%$DLLEXT)
check test: \$(C_SRCS:.c=.ok)
.PHONY: check test crosstest
.PHONY: check test testclean crosstest
")
if test -n "$CROSSTARGET"
then
...
...
tools/makedep.c
View file @
a6fd273a
...
...
@@ -1149,6 +1149,7 @@ static void output_sources(void)
struct
incl_file
*
source
;
struct
strarray
clean_files
;
int
i
,
column
,
po_srcs
=
0
,
mc_srcs
=
0
;
int
is_test
=
find_src_file
(
"testlist.o"
)
!=
NULL
;
strarray_init
(
&
clean_files
);
...
...
@@ -1247,12 +1248,12 @@ static void output_sources(void)
}
else
{
struct
object_extension
*
ext
;
LIST_FOR_EACH_ENTRY
(
ext
,
&
object_extensions
,
struct
object_extension
,
entry
)
struct
object_extension
*
obj_
ext
;
LIST_FOR_EACH_ENTRY
(
obj_
ext
,
&
object_extensions
,
struct
object_extension
,
entry
)
{
strarray_add
(
&
clean_files
,
strmake
(
"%s.%s"
,
obj
,
ext
->
extension
));
output
(
"%s.%s: %s
\n
"
,
obj
,
ext
->
extension
,
source
->
filename
);
if
(
strstr
(
ext
->
extension
,
"cross"
))
strarray_add
(
&
clean_files
,
strmake
(
"%s.%s"
,
obj
,
obj_
ext
->
extension
));
output
(
"%s.%s: %s
\n
"
,
obj
,
obj_
ext
->
extension
,
source
->
filename
);
if
(
strstr
(
obj_
ext
->
extension
,
"cross"
))
output
(
"
\t
$(CROSSCC) -c $(ALLCROSSCFLAGS) -o $@ %s
\n
"
,
source
->
filename
);
else
output
(
"
\t
$(CC) -c $(ALLCFLAGS) -o $@ %s
\n
"
,
source
->
filename
);
...
...
@@ -1263,8 +1264,13 @@ static void output_sources(void)
output
(
"%s.cross.o: %s
\n
"
,
obj
,
source
->
filename
);
output
(
"
\t
$(CROSSCC) -c $(ALLCROSSCFLAGS) -o $@ %s
\n
"
,
source
->
filename
);
}
LIST_FOR_EACH_ENTRY
(
ext
,
&
object_extensions
,
struct
object_extension
,
entry
)
column
+=
output
(
"%s.%s "
,
obj
,
ext
->
extension
);
if
(
is_test
&&
!
strcmp
(
ext
,
"c"
)
&&
!
is_generated_idl
(
source
))
{
output
(
"%s.ok:
\n
"
,
obj
);
output
(
"
\t
$(RUNTEST) $(RUNTESTFLAGS) %s && touch $@
\n
"
,
obj
);
}
LIST_FOR_EACH_ENTRY
(
obj_ext
,
&
object_extensions
,
struct
object_extension
,
entry
)
column
+=
output
(
"%s.%s "
,
obj
,
obj_ext
->
extension
);
if
(
source
->
flags
&
FLAG_C_IMPLIB
)
column
+=
output
(
"%s.cross.o"
,
obj
);
column
+=
output
(
":"
);
}
...
...
@@ -1313,13 +1319,24 @@ static void output_sources(void)
strarray_add
(
&
clean_files
,
"dlldata.c"
);
}
if
(
find_src_file
(
"testlist.o"
)
)
if
(
is_test
)
{
output
(
"testlist.c: $(MAKECTESTS) Makefile.in
\n
"
);
column
=
output
(
"
\t
$(MAKECTESTS) -o $@"
);
LIST_FOR_EACH_ENTRY
(
source
,
&
sources
,
struct
incl_file
,
entry
)
if
(
strendswith
(
source
->
name
,
".c"
)
&&
!
is_generated_idl
(
source
))
output_filename
(
source
->
filename
,
&
column
);
output_filename
(
source
->
name
,
&
column
);
output
(
"
\n
"
);
column
=
output
(
"check test:"
);
LIST_FOR_EACH_ENTRY
(
source
,
&
sources
,
struct
incl_file
,
entry
)
if
(
strendswith
(
source
->
name
,
".c"
)
&&
!
is_generated_idl
(
source
))
output_filename
(
replace_extension
(
source
->
name
,
2
,
".ok"
),
&
column
);
output
(
"
\n
"
);
output
(
"clean testclean::
\n
"
);
column
=
output
(
"
\t
$(RM)"
);
LIST_FOR_EACH_ENTRY
(
source
,
&
sources
,
struct
incl_file
,
entry
)
if
(
strendswith
(
source
->
name
,
".c"
)
&&
!
is_generated_idl
(
source
))
output_filename
(
replace_extension
(
source
->
name
,
2
,
".ok"
),
&
column
);
output
(
"
\n
"
);
strarray_add
(
&
clean_files
,
"testlist.c"
);
}
...
...
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