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
bb45a93d
Commit
bb45a93d
authored
Oct 14, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makedep: Generate correct dependencies for testlist.c.
parent
c3aa4952
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
40 deletions
+51
-40
Make.rules.in
Make.rules.in
+1
-4
makedep.c
tools/makedep.c
+50
-36
No files found.
Make.rules.in
View file @
bb45a93d
...
...
@@ -4,7 +4,6 @@
# C_SRCS : C sources for the module
# OBJC_SRCS : Objective-C sources for the module
# RC_SRCS : resource source files
# EXTRA_SRCS : extra source files for make depend
# EXTRA_OBJS : extra object files
# IMPORTS : dlls to import
# DELAYIMPORTS : dlls to import in delayed mode
...
...
@@ -147,7 +146,7 @@ $(IMPORTLIB:%=lib%.cross.a): $(MAINSPEC) $(IMPLIB_SRCS:.c=.cross.o)
DEPEND_SRCS = $(C_SRCS) $(OBJC_SRCS) $(RC_SRCS) $(MC_SRCS) \
$(IDL_H_SRCS) $(IDL_C_SRCS) $(IDL_I_SRCS) $(IDL_P_SRCS) $(IDL_S_SRCS) \
$(IDL_GEN_C_SRCS) $(IDL_R_SRCS:.idl=_r.res) $(IDL_TLB_SRCS) $(IDL_TLB_SRCS:.idl=.tlb) \
$(BISON_SRCS) $(LEX_SRCS) $(EXTRA_
SRC
S)
$(BISON_SRCS) $(LEX_SRCS) $(EXTRA_
OBJ
S)
depend: dummy
$(MAKEDEP) $(MAKEDEPFLAGS) -C$(srcdir) -S$(top_srcdir) -T$(top_builddir) $(EXTRAINCL) $(DEPEND_SRCS)
...
...
@@ -171,8 +170,6 @@ $(WINETEST_RES): $(TESTMODULE_STRIPPED)
testlist.c: Makefile.in $(MAKECTESTS)
$(MAKECTESTS) -o $@ $(C_SRCS)
testlist.o testlist.cross.o: testlist.c $(top_srcdir)/include/wine/test.h
testclean::
$(RM) *.ok
...
...
tools/makedep.c
View file @
bb45a93d
...
...
@@ -810,11 +810,6 @@ static void parse_generated_idl( struct incl_file *source )
add_include
(
source
,
"wine/exception.h"
,
1
);
add_include
(
source
,
header
,
0
);
}
else
if
(
!
strcmp
(
source
->
name
,
"dlldata.c"
))
{
add_include
(
source
,
"objbase.h"
,
1
);
add_include
(
source
,
"rpcproxy.h"
,
1
);
}
free
(
header
);
free
(
basename
);
...
...
@@ -823,46 +818,68 @@ static void parse_generated_idl( struct incl_file *source )
/*******************************************************************
* parse_file
*/
static
void
parse_file
(
struct
incl_file
*
pFil
e
,
int
src
)
static
void
parse_file
(
struct
incl_file
*
sourc
e
,
int
src
)
{
FILE
*
file
;
/* special case for source files generated from idl */
if
(
strendswith
(
pFile
->
name
,
"_c.c"
)
||
strendswith
(
pFile
->
name
,
"_i.c"
)
||
strendswith
(
pFile
->
name
,
"_p.c"
)
||
strendswith
(
pFile
->
name
,
"_s.c"
)
||
!
strcmp
(
pFile
->
name
,
"dlldata.c"
))
if
(
strendswith
(
source
->
name
,
"_c.c"
)
||
strendswith
(
source
->
name
,
"_i.c"
)
||
strendswith
(
source
->
name
,
"_p.c"
)
||
strendswith
(
source
->
name
,
"_s.c"
))
{
parse_generated_idl
(
source
);
return
;
}
if
(
!
strcmp
(
source
->
name
,
"dlldata.o"
))
{
source
->
filename
=
xstrdup
(
"dlldata.c"
);
add_include
(
source
,
"objbase.h"
,
1
);
add_include
(
source
,
"rpcproxy.h"
,
1
);
return
;
}
if
(
!
strcmp
(
source
->
name
,
"testlist.o"
))
{
parse_generated_idl
(
pFile
);
source
->
filename
=
xstrdup
(
"testlist.c"
);
add_include
(
source
,
"wine/test.h"
,
1
);
return
;
}
if
(
strendswith
(
source
->
name
,
".o"
))
{
/* default to .c for unknown extra object files */
source
->
filename
=
xstrdup
(
source
->
name
);
source
->
filename
[
strlen
(
source
->
filename
)
-
1
]
=
'c'
;
return
;
}
/* don't try to open certain types of files */
if
(
strendswith
(
pFil
e
->
name
,
".tlb"
)
||
strendswith
(
pFil
e
->
name
,
".res"
)
||
strendswith
(
pFil
e
->
name
,
".x"
))
if
(
strendswith
(
sourc
e
->
name
,
".tlb"
)
||
strendswith
(
sourc
e
->
name
,
".res"
)
||
strendswith
(
sourc
e
->
name
,
".x"
))
{
pFile
->
filename
=
xstrdup
(
pFil
e
->
name
);
source
->
filename
=
xstrdup
(
sourc
e
->
name
);
return
;
}
file
=
src
?
open_src_file
(
pFile
)
:
open_include_file
(
pFil
e
);
file
=
src
?
open_src_file
(
source
)
:
open_include_file
(
sourc
e
);
if
(
!
file
)
return
;
input_file_name
=
pFil
e
->
filename
;
if
(
pFile
->
sourcename
&&
strendswith
(
pFil
e
->
sourcename
,
".idl"
))
parse_idl_file
(
pFil
e
,
file
,
1
);
else
if
(
strendswith
(
pFil
e
->
filename
,
".idl"
))
parse_idl_file
(
pFil
e
,
file
,
0
);
else
if
(
strendswith
(
pFil
e
->
filename
,
".c"
)
||
strendswith
(
pFil
e
->
filename
,
".m"
)
||
strendswith
(
pFil
e
->
filename
,
".h"
)
||
strendswith
(
pFil
e
->
filename
,
".l"
)
||
strendswith
(
pFil
e
->
filename
,
".y"
))
parse_c_file
(
pFil
e
,
file
);
else
if
(
strendswith
(
pFil
e
->
filename
,
".rc"
))
parse_rc_file
(
pFil
e
,
file
);
input_file_name
=
sourc
e
->
filename
;
if
(
source
->
sourcename
&&
strendswith
(
sourc
e
->
sourcename
,
".idl"
))
parse_idl_file
(
sourc
e
,
file
,
1
);
else
if
(
strendswith
(
sourc
e
->
filename
,
".idl"
))
parse_idl_file
(
sourc
e
,
file
,
0
);
else
if
(
strendswith
(
sourc
e
->
filename
,
".c"
)
||
strendswith
(
sourc
e
->
filename
,
".m"
)
||
strendswith
(
sourc
e
->
filename
,
".h"
)
||
strendswith
(
sourc
e
->
filename
,
".l"
)
||
strendswith
(
sourc
e
->
filename
,
".y"
))
parse_c_file
(
sourc
e
,
file
);
else
if
(
strendswith
(
sourc
e
->
filename
,
".rc"
))
parse_rc_file
(
sourc
e
,
file
);
fclose
(
file
);
input_file_name
=
NULL
;
}
...
...
@@ -1151,11 +1168,8 @@ int main( int argc, char *argv[] )
free
(
path
);
}
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
add_src_file
(
argv
[
i
]
);
if
(
strendswith
(
argv
[
i
],
"_p.c"
))
add_src_file
(
"dlldata.c"
);
}
for
(
i
=
1
;
i
<
argc
;
i
++
)
add_src_file
(
argv
[
i
]
);
LIST_FOR_EACH_ENTRY
(
pFile
,
&
includes
,
struct
incl_file
,
entry
)
parse_file
(
pFile
,
0
);
output_dependencies
();
return
0
;
...
...
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