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
c2efb3b3
Commit
c2efb3b3
authored
Dec 12, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Generate rules from makedep for .in files.
parent
cc978c90
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
23 deletions
+23
-23
Make.rules.in
Make.rules.in
+1
-1
Make.vars.in
Make.vars.in
+1
-1
configure
configure
+0
-6
configure.ac
configure.ac
+0
-6
Makefile.in
loader/Makefile.in
+4
-0
Makefile.in
tools/Makefile.in
+3
-3
make_makefiles
tools/make_makefiles
+7
-1
makedep.c
tools/makedep.c
+7
-5
No files found.
Make.rules.in
View file @
c2efb3b3
...
@@ -78,7 +78,7 @@ $(IMPORTLIB:%=lib%.cross.a): $(MAINSPEC) $(IMPLIB_SRCS:.c=.cross.o)
...
@@ -78,7 +78,7 @@ $(IMPORTLIB:%=lib%.cross.a): $(MAINSPEC) $(IMPLIB_SRCS:.c=.cross.o)
DEPEND_SRCS = $(C_SRCS) $(OBJC_SRCS) $(RC_SRCS) $(MC_SRCS) \
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_R_SRCS) $(IDL_TLB_SRCS) \
$(IDL_H_SRCS) $(IDL_C_SRCS) $(IDL_I_SRCS) $(IDL_P_SRCS) $(IDL_S_SRCS) $(IDL_R_SRCS) $(IDL_TLB_SRCS) \
$(BISON_SRCS) $(LEX_SRCS) $(XTEMPLATE_SRCS) $(EXTRA_OBJS) $(MANPAGES)
$(BISON_SRCS) $(LEX_SRCS) $(XTEMPLATE_SRCS) $(
IN_SRCS) $(
EXTRA_OBJS) $(MANPAGES)
depend: dummy
depend: dummy
$(MAKEDEP) $(MAKEDEPFLAGS) -C$(srcdir) -S$(top_srcdir) -T$(top_builddir) $(PARENTSRC:%=-P%) $(EXTRAINCL) $(DEPEND_SRCS)
$(MAKEDEP) $(MAKEDEPFLAGS) -C$(srcdir) -S$(top_srcdir) -T$(top_builddir) $(PARENTSRC:%=-P%) $(EXTRAINCL) $(DEPEND_SRCS)
...
...
Make.vars.in
View file @
c2efb3b3
...
@@ -70,7 +70,7 @@ LIBWINE = -L$(top_builddir)/libs/wine -lwine
...
@@ -70,7 +70,7 @@ LIBWINE = -L$(top_builddir)/libs/wine -lwine
LIBWINE_STATIC = $(top_builddir)/libs/wine/libwine_static.a
LIBWINE_STATIC = $(top_builddir)/libs/wine/libwine_static.a
WINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc $(TARGETFLAGS) -B$(TOOLSDIR)/tools/winebuild --sysroot=$(top_builddir) @UNWINDFLAGS@
WINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc $(TARGETFLAGS) -B$(TOOLSDIR)/tools/winebuild --sysroot=$(top_builddir) @UNWINDFLAGS@
CROSSWINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc $(CROSSTARGET:%=-b %) -B$(TOOLSDIR)/tools/winebuild --sysroot=$(top_builddir) --lib-suffix=.cross.a
CROSSWINEGCC = $(TOOLSDIR)/tools/winegcc/winegcc $(CROSSTARGET:%=-b %) -B$(TOOLSDIR)/tools/winebuild --sysroot=$(top_builddir) --lib-suffix=.cross.a
SED_CMD = LC_ALL=C sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g'
SED_CMD = LC_ALL=C sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g'
-e 's,@PACKAGE_VERSION\@,@PACKAGE_VERSION@,g'
LDRPATH_INSTALL = @LDRPATH_INSTALL@
LDRPATH_INSTALL = @LDRPATH_INSTALL@
LDRPATH_LOCAL = @LDRPATH_LOCAL@
LDRPATH_LOCAL = @LDRPATH_LOCAL@
INSTALL = @INSTALL@ $(INSTALL_FLAGS)
INSTALL = @INSTALL@ $(INSTALL_FLAGS)
...
...
configure
View file @
c2efb3b3
...
@@ -7493,9 +7493,6 @@ $wine_binary: main.o wine_info.plist
...
@@ -7493,9 +7493,6 @@ $wine_binary: main.o wine_info.plist
wine-installed: main.o wine_info.plist
wine-installed: main.o wine_info.plist
\$
(CC) -o
\$
@
$LDEXECFLAGS
main.o
\$
(LIBWINE)
\$
(LIBPORT)
\$
(EXTRALIBS)
\$
(LDFLAGS)
\$
(LDRPATH_INSTALL)
\$
(CC) -o
\$
@
$LDEXECFLAGS
main.o
\$
(LIBWINE)
\$
(LIBPORT)
\$
(EXTRALIBS)
\$
(LDFLAGS)
\$
(LDRPATH_INSTALL)
wine_info.plist: wine_info.plist.in
\$
(top_builddir)/include/config.h
LC_ALL=C sed -e 's,@PACKAGE_VERSION@,
$PACKAGE_VERSION
,g'
\$
(srcdir)/wine_info.plist.in >
\$
@ || (
\$
(RM)
\$
@ && false)
"
"
;;
;;
...
@@ -17566,9 +17563,6 @@ else
...
@@ -17566,9 +17563,6 @@ else
as_fn_append LOADER_RULES
"
as_fn_append LOADER_RULES
"
all: wine.inf
all: wine.inf
wine.inf: wine.inf.in
\$
(top_builddir)/include/config.h
LC_ALL=C sed -e 's,@PACKAGE_STRING@,
$PACKAGE_STRING
,g'
\$
(srcdir)/wine.inf.in >
\$
@ || (
\$
(RM)
\$
@ && false)
install install-lib:: wine.inf
\$
(DESTDIR)
\$
(datadir)/wine install-man-pages
install install-lib:: wine.inf
\$
(DESTDIR)
\$
(datadir)/wine install-man-pages
\$
(INSTALL_DATA) wine.inf
\$
(DESTDIR)
\$
(datadir)/wine/wine.inf
\$
(INSTALL_DATA) wine.inf
\$
(DESTDIR)
\$
(datadir)/wine/wine.inf
\$
(INSTALL_DATA)
\$
(srcdir)/l_intl.nls
\$
(DESTDIR)
\$
(datadir)/wine/l_intl.nls
\$
(INSTALL_DATA)
\$
(srcdir)/l_intl.nls
\$
(DESTDIR)
\$
(datadir)/wine/l_intl.nls
...
...
configure.ac
View file @
c2efb3b3
...
@@ -878,9 +878,6 @@ $wine_binary: main.o wine_info.plist
...
@@ -878,9 +878,6 @@ $wine_binary: main.o wine_info.plist
wine-installed: main.o wine_info.plist
wine-installed: main.o wine_info.plist
\$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
\$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
wine_info.plist: wine_info.plist.in \$(top_builddir)/include/config.h
LC_ALL=C sed -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g' \$(srcdir)/wine_info.plist.in >\$@ || (\$(RM) \$@ && false)
"])
"])
;;
;;
...
@@ -3538,9 +3535,6 @@ else
...
@@ -3538,9 +3535,6 @@ else
AS_VAR_APPEND([LOADER_RULES],["
AS_VAR_APPEND([LOADER_RULES],["
all: wine.inf
all: wine.inf
wine.inf: wine.inf.in \$(top_builddir)/include/config.h
LC_ALL=C sed -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' \$(srcdir)/wine.inf.in >\$@ || (\$(RM) \$@ && false)
install install-lib:: wine.inf \$(DESTDIR)\$(datadir)/wine install-man-pages
install install-lib:: wine.inf \$(DESTDIR)\$(datadir)/wine install-man-pages
\$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
\$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
\$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
\$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
...
...
loader/Makefile.in
View file @
c2efb3b3
...
@@ -20,6 +20,10 @@ MANPAGES = \
...
@@ -20,6 +20,10 @@ MANPAGES = \
wine.man.in
\
wine.man.in
\
wine.pl.UTF-8.man.in
wine.pl.UTF-8.man.in
IN_SRCS
=
\
wine.inf.in
\
wine_info.plist.in
INSTALLDIRS
=
\
INSTALLDIRS
=
\
$(DESTDIR)$(bindir)
\
$(DESTDIR)$(bindir)
\
$(DESTDIR)$(datadir)
/wine
$(DESTDIR)$(datadir)
/wine
...
...
tools/Makefile.in
View file @
c2efb3b3
...
@@ -20,6 +20,9 @@ C_SRCS = \
...
@@ -20,6 +20,9 @@ C_SRCS = \
makedep.c
\
makedep.c
\
sfnt2fnt.c
sfnt2fnt.c
IN_SRCS
=
\
wineapploader.in
INSTALLDIRS
=
\
INSTALLDIRS
=
\
$(DESTDIR)$(bindir)
\
$(DESTDIR)$(bindir)
\
$(DESTDIR)$(datadir)
/applications
$(DESTDIR)$(datadir)
/applications
...
@@ -42,9 +45,6 @@ fnt2fon$(EXEEXT): fnt2fon.o
...
@@ -42,9 +45,6 @@ fnt2fon$(EXEEXT): fnt2fon.o
sfnt2fnt$(EXEEXT)
:
sfnt2fnt.o
sfnt2fnt$(EXEEXT)
:
sfnt2fnt.o
$(CC)
$(CFLAGS)
-o
$@
sfnt2fnt.o
$(LIBWINE_STATIC)
$(LIBPORT)
$(LDFLAGS)
$(FREETYPELIBS)
$(CC)
$(CFLAGS)
-o
$@
sfnt2fnt.o
$(LIBWINE_STATIC)
$(LIBPORT)
$(LDFLAGS)
$(FREETYPELIBS)
wineapploader
:
wineapploader.in
sed
-e
's,@bindir\@,
$(bindir)
,g'
$(srcdir)
/wineapploader.in
>
$@
||
(
$(RM)
$@
&&
false
)
install install-lib
::
$(DESTDIR)$(datadir)/applications
install install-lib
::
$(DESTDIR)$(datadir)/applications
$(INSTALL_DATA)
$(srcdir)
/wine.desktop
$(DESTDIR)$(datadir)
/applications/wine.desktop
$(INSTALL_DATA)
$(srcdir)
/wine.desktop
$(DESTDIR)$(datadir)
/applications/wine.desktop
-
$(UPDATE_DESKTOP_DATABASE)
-
$(UPDATE_DESKTOP_DATABASE)
...
...
tools/make_makefiles
View file @
c2efb3b3
...
@@ -328,7 +328,7 @@ sub parse_makefile($)
...
@@ -328,7 +328,7 @@ sub parse_makefile($)
$
{
$make
{
"=flags"
}}{
"implib"
}
=
1
if
$var
eq
"IMPORTLIB"
;
$
{
$make
{
"=flags"
}}{
"implib"
}
=
1
if
$var
eq
"IMPORTLIB"
;
next
;
next
;
}
}
if
(
/^\s*(BISON_SRCS|LEX_SRCS|IDL_[CHIPRS]_SRCS|IDL_TLB_SRCS|IMPLIB_SRCS|C_SRCS|OBJC_SRCS|MC_SRCS|RC_SRCS|PO_SRCS|SVG_SRCS|PROGRAMS|MANPAGES)\s*=\s*(.*)/
)
if
(
/^\s*(BISON_SRCS|LEX_SRCS|IDL_[CHIPRS]_SRCS|IDL_TLB_SRCS|IMPLIB_SRCS|C_SRCS|OBJC_SRCS|MC_SRCS|RC_SRCS|PO_SRCS|SVG_SRCS|
IN_SRCS|
PROGRAMS|MANPAGES)\s*=\s*(.*)/
)
{
{
my
$var
=
$1
;
my
$var
=
$1
;
my
@list
=
split
(
/\s+/
,
$2
);
my
@list
=
split
(
/\s+/
,
$2
);
...
@@ -422,6 +422,7 @@ sub assign_sources_to_makefiles(@)
...
@@ -422,6 +422,7 @@ sub assign_sources_to_makefiles(@)
foreach
my
$file
(
@_
)
foreach
my
$file
(
@_
)
{
{
next
if
defined
$ignored_source_files
{
$file
};
next
if
defined
$ignored_source_files
{
$file
};
next
if
$file
=~
/Makefile\.in$/
;
my
$dir
=
dirname
(
$file
);
my
$dir
=
dirname
(
$file
);
my
$subdir
=
$dir
;
my
$subdir
=
$dir
;
...
@@ -501,6 +502,10 @@ sub assign_sources_to_makefiles(@)
...
@@ -501,6 +502,10 @@ sub assign_sources_to_makefiles(@)
push
@
{
$
{
$make
}{
"=MANPAGES"
}},
$name
;
push
@
{
$
{
$make
}{
"=MANPAGES"
}},
$name
;
$
{
$
{
$make
}{
"=flags"
}}{
"manpage"
}
=
1
;
$
{
$
{
$make
}{
"=flags"
}}{
"manpage"
}
=
1
;
}
}
elsif
(
$name
=~
/\.in$/
)
{
push
@
{
$
{
$make
}{
"=IN_SRCS"
}},
$name
;
}
}
}
}
}
...
@@ -625,6 +630,7 @@ sub update_makefiles(@)
...
@@ -625,6 +630,7 @@ sub update_makefiles(@)
replace_makefile_variable
(
$file
,
"IDL_S_SRCS"
);
replace_makefile_variable
(
$file
,
"IDL_S_SRCS"
);
replace_makefile_variable
(
$file
,
"IDL_TLB_SRCS"
);
replace_makefile_variable
(
$file
,
"IDL_TLB_SRCS"
);
replace_makefile_variable
(
$file
,
"XTEMPLATE_SRCS"
);
replace_makefile_variable
(
$file
,
"XTEMPLATE_SRCS"
);
replace_makefile_variable
(
$file
,
"IN_SRCS"
);
replace_makefile_variable
(
$file
,
"IMPLIB_SRCS"
);
replace_makefile_variable
(
$file
,
"IMPLIB_SRCS"
);
replace_makefile_variable
(
$file
,
"SRCDIR_INCLUDES"
);
replace_makefile_variable
(
$file
,
"SRCDIR_INCLUDES"
);
replace_makefile_variable
(
$file
,
"MANPAGES"
);
replace_makefile_variable
(
$file
,
"MANPAGES"
);
...
...
tools/makedep.c
View file @
c2efb3b3
...
@@ -914,15 +914,17 @@ static void parse_rc_file( struct incl_file *pFile, FILE *file )
...
@@ -914,15 +914,17 @@ static void parse_rc_file( struct incl_file *pFile, FILE *file )
/*******************************************************************
/*******************************************************************
* parse_
man_pag
e
* parse_
in_fil
e
*/
*/
static
void
parse_
man_pag
e
(
struct
incl_file
*
source
,
FILE
*
file
)
static
void
parse_
in_fil
e
(
struct
incl_file
*
source
,
FILE
*
file
)
{
{
char
*
p
,
*
buffer
;
char
*
p
,
*
buffer
;
/* make sure it gets rebuilt when the version changes */
/* make sure it gets rebuilt when the version changes */
add_include
(
source
,
"config.h"
,
1
);
add_include
(
source
,
"config.h"
,
1
);
if
(
!
strendswith
(
source
->
filename
,
".man.in"
))
return
;
/* not a man page */
input_line
=
0
;
input_line
=
0
;
while
((
buffer
=
get_line
(
file
)))
while
((
buffer
=
get_line
(
file
)))
{
{
...
@@ -1012,8 +1014,8 @@ static void parse_file( struct incl_file *source, int src )
...
@@ -1012,8 +1014,8 @@ static void parse_file( struct incl_file *source, int src )
parse_c_file
(
source
,
file
);
parse_c_file
(
source
,
file
);
else
if
(
strendswith
(
source
->
filename
,
".rc"
))
else
if
(
strendswith
(
source
->
filename
,
".rc"
))
parse_rc_file
(
source
,
file
);
parse_rc_file
(
source
,
file
);
else
if
(
strendswith
(
source
->
filename
,
".
man.
in"
))
else
if
(
strendswith
(
source
->
filename
,
".in"
))
parse_
man_pag
e
(
source
,
file
);
parse_
in_fil
e
(
source
,
file
);
fclose
(
file
);
fclose
(
file
);
input_file_name
=
NULL
;
input_file_name
=
NULL
;
}
}
...
@@ -1269,7 +1271,7 @@ static void output_sources(void)
...
@@ -1269,7 +1271,7 @@ static void output_sources(void)
}
}
column
+=
output
(
" %s"
,
source
->
filename
);
column
+=
output
(
" %s"
,
source
->
filename
);
}
}
else
if
(
!
strcmp
(
ext
,
"in"
))
/* man page */
else
if
(
!
strcmp
(
ext
,
"in"
))
/*
.in file or
man page */
{
{
if
(
strendswith
(
obj
,
".man"
)
&&
source
->
sourcename
)
if
(
strendswith
(
obj
,
".man"
)
&&
source
->
sourcename
)
{
{
...
...
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