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
3571c067
Commit
3571c067
authored
Oct 28, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Generate explicit build rules for C source files from makedep.
parent
57f5e141
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
18 deletions
+31
-18
Make.rules.in
Make.rules.in
+1
-0
Makefile.in
libs/wine/Makefile.in
+10
-15
makedep.c
tools/makedep.c
+20
-3
No files found.
Make.rules.in
View file @
3571c067
...
@@ -33,6 +33,7 @@ OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_
...
@@ -33,6 +33,7 @@ OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_
$(IDL_R_SRCS:.idl=_r.res) $(IDL_TLB_RES) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS)
$(IDL_R_SRCS:.idl=_r.res) $(IDL_TLB_RES) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS)
CROSSOBJS = $(OBJS:.o=.cross.o)
CROSSOBJS = $(OBJS:.o=.cross.o)
ALLCROSSCFLAGS = $(INCLUDES) $(DEFS) -DWINE_CROSSTEST $(CPPFLAGS) $(CFLAGS)
# Implicit rules
# Implicit rules
...
...
libs/wine/Makefile.in
View file @
3571c067
DLLFLAGS
=
@DLLFLAGS@
DLLFLAGS
=
@DLLFLAGS@
EXTRALIBS
=
$(LIBPORT)
@LIBDL@ @COREFOUNDATIONLIB@ @CORESERVICESLIB@
EXTRALIBS
=
$(LIBPORT)
@LIBDL@ @COREFOUNDATIONLIB@ @CORESERVICESLIB@
EXTRADEFS
=
-DWINE_UNICODE_API
=
""
EXTRADEFS
=
-DWINE_UNICODE_API
=
""
\
-DBINDIR
=
'"
$(bindir)
"'
\
-DDLLDIR
=
'"
$(dlldir)
"'
\
-DDLLPREFIX
=
'"
$(DLLPREFIX)
"'
\
-DLIB_TO_BINDIR
=
\"
`
$(RELPATH)
$(libdir)
$(bindir)
`
\"
\
-DLIB_TO_DLLDIR
=
\"
`
$(RELPATH)
$(libdir)
$(dlldir)
`
\"
\
-DBIN_TO_DLLDIR
=
\"
`
$(RELPATH)
$(bindir)
$(dlldir)
`
\"
\
-DBIN_TO_DATADIR
=
\"
`
$(RELPATH)
$(bindir)
$(datadir)
/wine
`
\"
STATICLIB
=
libwine_static.a
STATICLIB
=
libwine_static.a
VERSION
=
1.0
VERSION
=
1.0
...
@@ -103,23 +110,11 @@ EXTRA_OBJS = version.o
...
@@ -103,23 +110,11 @@ EXTRA_OBJS = version.o
@MAKE_RULES@
@MAKE_RULES@
# Special defines needed for config.c
CONFIGDIRS
=
\
-DBINDIR
=
'"
$(bindir)
"'
\
-DDLLDIR
=
'"
$(dlldir)
"'
\
-DDLLPREFIX
=
'"
$(DLLPREFIX)
"'
\
-DLIB_TO_BINDIR
=
\"
`
$(RELPATH)
$(libdir)
$(bindir)
`
\"
\
-DLIB_TO_DLLDIR
=
\"
`
$(RELPATH)
$(libdir)
$(dlldir)
`
\"
\
-DBIN_TO_DLLDIR
=
\"
`
$(RELPATH)
$(bindir)
$(dlldir)
`
\"
\
-DBIN_TO_DATADIR
=
\"
`
$(RELPATH)
$(bindir)
$(datadir)
/wine
`
\"
config.o
:
config.c $(RELPATH)
$(CC)
-c
$(ALLCFLAGS)
-o
$@
$(srcdir)
/config.c
$(CONFIGDIRS)
version.c
:
dummy
version.c
:
dummy
version
=
`
(
GIT_DIR
=
$(top_srcdir)
/.git git describe HEAD 2>/dev/null
||
echo
"wine-@PACKAGE_VERSION@"
)
|
sed
-n
-e
'$$s/\(.*\)/const char wine_build[] = "\1";/p'
`
&&
(
echo
$$
version | cmp
-s
-
$@
)
||
echo
$$
version
>
$@
||
(
$(RM)
$@
&&
exit
1
)
version
=
`
(
GIT_DIR
=
$(top_srcdir)
/.git git describe HEAD 2>/dev/null
||
echo
"wine-@PACKAGE_VERSION@"
)
|
sed
-n
-e
'$$s/\(.*\)/const char wine_build[] = "\1";/p'
`
&&
(
echo
$$
version | cmp
-s
-
$@
)
||
echo
$$
version
>
$@
||
(
$(RM)
$@
&&
exit
1
)
$(OBJS)
:
$(RELPATH)
$(RELPATH)
:
$(RELPATH)
:
@
cd
$(TOOLSDIR)
/tools
&&
$(MAKE)
relpath
$(TOOLSEXT)
@
cd
$(TOOLSDIR)
/tools
&&
$(MAKE)
relpath
$(TOOLSEXT)
...
...
tools/makedep.c
View file @
3571c067
...
@@ -981,14 +981,18 @@ static void output_sources(void)
...
@@ -981,14 +981,18 @@ static void output_sources(void)
else
output
(
"%s.tab.c: %s
\n
"
,
obj
,
source
->
filename
);
else
output
(
"%s.tab.c: %s
\n
"
,
obj
,
source
->
filename
);
output
(
"
\t
$(BISON) $(BISONFLAGS) -p %s_ -o $@ %s
\n
"
,
obj
,
source
->
filename
);
output
(
"
\t
$(BISON) $(BISONFLAGS) -p %s_ -o $@ %s
\n
"
,
obj
,
source
->
filename
);
column
+=
output
(
"%s.tab.o: %s.tab.c"
,
obj
,
obj
);
output
(
"%s.tab.o: %s.tab.c
\n
"
,
obj
,
obj
);
output
(
"
\t
$(CC) -c $(ALLCFLAGS) -o $@ %s.tab.c
\n
"
,
obj
);
column
+=
output
(
"%s.tab.o:"
,
obj
);
free
(
header
);
free
(
header
);
}
}
else
if
(
!
strcmp
(
ext
,
"l"
))
/* lex file */
else
if
(
!
strcmp
(
ext
,
"l"
))
/* lex file */
{
{
output
(
"%s.yy.c: %s
\n
"
,
obj
,
source
->
filename
);
output
(
"%s.yy.c: %s
\n
"
,
obj
,
source
->
filename
);
output
(
"
\t
$(FLEX) $(LEXFLAGS) -o$@ %s
\n
"
,
source
->
filename
);
output
(
"
\t
$(FLEX) $(LEXFLAGS) -o$@ %s
\n
"
,
source
->
filename
);
column
+=
output
(
"%s.yy.o: %s.yy.c"
,
obj
,
obj
);
output
(
"%s.yy.o: %s.yy.c
\n
"
,
obj
,
obj
);
output
(
"
\t
$(CC) -c $(ALLCFLAGS) -o $@ %s.yy.c
\n
"
,
obj
);
column
+=
output
(
"%s.yy.o:"
,
obj
);
}
}
else
if
(
!
strcmp
(
ext
,
"rc"
))
/* resource file */
else
if
(
!
strcmp
(
ext
,
"rc"
))
/* resource file */
{
{
...
@@ -1069,8 +1073,21 @@ static void output_sources(void)
...
@@ -1069,8 +1073,21 @@ static void output_sources(void)
{
{
struct
object_extension
*
ext
;
struct
object_extension
*
ext
;
LIST_FOR_EACH_ENTRY
(
ext
,
&
object_extensions
,
struct
object_extension
,
entry
)
LIST_FOR_EACH_ENTRY
(
ext
,
&
object_extensions
,
struct
object_extension
,
entry
)
{
if
(
strstr
(
ext
->
extension
,
"cross"
))
{
output
(
"%s.%s: %s
\n
"
,
obj
,
ext
->
extension
,
source
->
filename
);
output
(
"
\t
$(CROSSCC) -c $(ALLCROSSCFLAGS) -o $@ %s
\n
"
,
source
->
filename
);
}
else
{
output
(
"%s.%s: %s
\n
"
,
obj
,
ext
->
extension
,
source
->
filename
);
output
(
"
\t
$(CC) -c $(ALLCFLAGS) -o $@ %s
\n
"
,
source
->
filename
);
}
}
LIST_FOR_EACH_ENTRY
(
ext
,
&
object_extensions
,
struct
object_extension
,
entry
)
column
+=
output
(
"%s.%s "
,
obj
,
ext
->
extension
);
column
+=
output
(
"%s.%s "
,
obj
,
ext
->
extension
);
column
+=
output
(
":
%s"
,
source
->
filename
);
column
+=
output
(
":
"
);
}
}
free
(
obj
);
free
(
obj
);
...
...
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