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
237ed76e
Commit
237ed76e
authored
Oct 10, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Generate the common rules for programs from configure.
parent
41c7ba4b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
33 deletions
+22
-33
.gitignore
.gitignore
+0
-1
aclocal.m4
aclocal.m4
+1
-1
configure
configure
+10
-8
configure.ac
configure.ac
+7
-2
Makeprog.rules.in
programs/Makeprog.rules.in
+0
-16
Makefile.in
programs/winetest/Makefile.in
+2
-2
make_makefiles
tools/make_makefiles
+2
-3
No files found.
.gitignore
View file @
237ed76e
...
@@ -286,7 +286,6 @@ loader/wine64-preloader
...
@@ -286,7 +286,6 @@ loader/wine64-preloader
loader/wine_info.plist
loader/wine_info.plist
msg.pot
msg.pot
po/*.mo
po/*.mo
programs/Makeprog.rules
programs/rpcss/epm.h
programs/rpcss/epm.h
programs/rpcss/epm_s.c
programs/rpcss/epm_s.c
programs/rpcss/irot.h
programs/rpcss/irot.h
...
...
aclocal.m4
View file @
237ed76e
...
@@ -524,7 +524,7 @@ wine_fn_config_program ()
...
@@ -524,7 +524,7 @@ wine_fn_config_program ()
AS_VAR_IF([$ac_enable],[no],[wine_fn_disabled_rules $ac_clean; return])
AS_VAR_IF([$ac_enable],[no],[wine_fn_disabled_rules $ac_clean; return])
wine_fn_all_rules
programs/Makeprog.rules
wine_fn_all_rules
Make.rules.in
wine_fn_clean_rules $ac_clean
wine_fn_clean_rules $ac_clean
wine_fn_append_rule "$ac_dir: __builddeps__"
wine_fn_append_rule "$ac_dir: __builddeps__"
wine_fn_pot_rules
wine_fn_pot_rules
...
...
configure
View file @
237ed76e
...
@@ -627,6 +627,7 @@ LIBOBJS
...
@@ -627,6 +627,7 @@ LIBOBJS
PORCFLAGS
PORCFLAGS
LINGUAS
LINGUAS
ALL_TEST_RESOURCES
ALL_TEST_RESOURCES
MAKE_PROG_RULES
MAKE_DLL_RULES
MAKE_DLL_RULES
MAKE_IMPLIB_RULES
MAKE_IMPLIB_RULES
LDAPLIBS
LDAPLIBS
...
@@ -801,8 +802,7 @@ PACKAGE_NAME
...
@@ -801,8 +802,7 @@ PACKAGE_NAME
PATH_SEPARATOR
PATH_SEPARATOR
SHELL'
SHELL'
ac_subst_files
=
'MAKE_RULES
ac_subst_files
=
'MAKE_RULES
MAKE_TEST_RULES
MAKE_TEST_RULES'
MAKE_PROG_RULES'
ac_user_opts
=
'
ac_user_opts
=
'
enable_option_checking
enable_option_checking
enable_win16
enable_win16
...
@@ -16082,6 +16082,13 @@ all: $deps
...
@@ -16082,6 +16082,13 @@ all: $deps
"
"
MAKE_PROG_RULES
=
"
DLLFLAGS =
$DLLFLAGS
all:
$deps
"
wine_rules_file
=
conf
$$
rules.make
wine_rules_file
=
conf
$$
rules.make
rm
-f
$wine_rules_file
rm
-f
$wine_rules_file
...
@@ -16418,7 +16425,7 @@ wine_fn_config_program ()
...
@@ -16418,7 +16425,7 @@ wine_fn_config_program ()
wine_fn_disabled_rules
$ac_clean
;
return
wine_fn_disabled_rules
$ac_clean
;
return
fi
fi
wine_fn_all_rules
programs/Makeprog.rules
wine_fn_all_rules
Make.rules.in
wine_fn_clean_rules
$ac_clean
wine_fn_clean_rules
$ac_clean
wine_fn_append_rule
"
$ac_dir
: __builddeps__"
wine_fn_append_rule
"
$ac_dir
: __builddeps__"
wine_fn_pot_rules
wine_fn_pot_rules
...
@@ -16623,10 +16630,6 @@ wine_fn_config_makerules Maketest.rules Make.rules
...
@@ -16623,10 +16630,6 @@ wine_fn_config_makerules Maketest.rules Make.rules
MAKE_TEST_RULES
=
Maketest.rules
MAKE_TEST_RULES
=
Maketest.rules
ac_config_files
=
"
$ac_config_files
Maketest.rules"
ac_config_files
=
"
$ac_config_files
Maketest.rules"
wine_fn_config_makerules programs/Makeprog.rules Make.rules
MAKE_PROG_RULES
=
programs/Makeprog.rules
ac_config_files
=
"
$ac_config_files
programs/Makeprog.rules"
wine_fn_config_dll acledit enable_acledit
wine_fn_config_dll acledit enable_acledit
wine_fn_config_dll aclui enable_aclui implib
wine_fn_config_dll aclui enable_aclui implib
...
@@ -18194,7 +18197,6 @@ do
...
@@ -18194,7 +18197,6 @@ do
"include/wine") CONFIG_COMMANDS="
$CONFIG_COMMANDS
include/wine" ;;
"include/wine") CONFIG_COMMANDS="
$CONFIG_COMMANDS
include/wine" ;;
"Make.rules") CONFIG_FILES="
$CONFIG_FILES
Make.rules" ;;
"Make.rules") CONFIG_FILES="
$CONFIG_FILES
Make.rules" ;;
"Maketest.rules") CONFIG_FILES="
$CONFIG_FILES
Maketest.rules" ;;
"Maketest.rules") CONFIG_FILES="
$CONFIG_FILES
Maketest.rules" ;;
"programs/Makeprog.rules") CONFIG_FILES="
$CONFIG_FILES
programs/Makeprog.rules" ;;
"Makefile") CONFIG_COMMANDS="
$CONFIG_COMMANDS
Makefile" ;;
"Makefile") CONFIG_COMMANDS="
$CONFIG_COMMANDS
Makefile" ;;
"Make.tmp") CONFIG_FILES="
$CONFIG_FILES
Make.tmp:Make.vars.in:Makefile.in" ;;
"Make.tmp") CONFIG_FILES="
$CONFIG_FILES
Make.tmp:Make.vars.in:Makefile.in" ;;
...
...
configure.ac
View file @
237ed76e
...
@@ -2608,7 +2608,7 @@ all: \$(STATICLIB:.a=.cross.a)
...
@@ -2608,7 +2608,7 @@ all: \$(STATICLIB:.a=.cross.a)
")
")
fi
fi
dnl Dll rules
dnl Dll
and program
rules
if test -n "$DLLEXT"
if test -n "$DLLEXT"
then
then
...
@@ -2626,6 +2626,12 @@ MODULEFLAGS = -shared \$(srcdir)/\$(MAINSPEC) \$(EXTRADLLFLAGS)
...
@@ -2626,6 +2626,12 @@ MODULEFLAGS = -shared \$(srcdir)/\$(MAINSPEC) \$(EXTRADLLFLAGS)
all: $deps
all: $deps
")
")
AC_SUBST(MAKE_PROG_RULES,"
DLLFLAGS = $DLLFLAGS
all: $deps
")
dnl Main makefile
dnl Main makefile
WINE_APPEND_RULE([
WINE_APPEND_RULE([
...
@@ -2654,7 +2660,6 @@ WINE_CONFIG_EXTRA_DIR(include/wine)
...
@@ -2654,7 +2660,6 @@ WINE_CONFIG_EXTRA_DIR(include/wine)
WINE_CONFIG_MAKERULES([Make.rules],[MAKE_RULES])
WINE_CONFIG_MAKERULES([Make.rules],[MAKE_RULES])
WINE_CONFIG_MAKERULES([Maketest.rules],[MAKE_TEST_RULES],[Make.rules])
WINE_CONFIG_MAKERULES([Maketest.rules],[MAKE_TEST_RULES],[Make.rules])
WINE_CONFIG_MAKERULES([programs/Makeprog.rules],[MAKE_PROG_RULES],[Make.rules])
WINE_CONFIG_DLL(acledit)
WINE_CONFIG_DLL(acledit)
WINE_CONFIG_DLL(aclui,,[implib])
WINE_CONFIG_DLL(aclui,,[implib])
...
...
programs/Makeprog.rules.in
deleted
100644 → 0
View file @
41c7ba4b
# Global rules for building a Winelib program -*-Makefile-*-
#
# Each individual makefile should define the following variables:
# MODULE : name of the main module being built
# APPMODE : program mode (-mwindows,-mconsole)
# EXTRALIBS : extra libraries to link in (optional)
# EXTRADEFS : extra symbol definitions, like -DWINELIB (optional)
#
# plus all variables required by the global Make.rules.in
#
DLLFLAGS = @DLLFLAGS@
all: $(MODULE)$(DLLEXT) $(MODULE)$(FAKEEXT)
@MAKE_RULES@
programs/winetest/Makefile.in
View file @
237ed76e
...
@@ -16,8 +16,6 @@ SVG_SRCS = winetest.svg
...
@@ -16,8 +16,6 @@ SVG_SRCS = winetest.svg
EXTRA_OBJS
=
build.res @ALL_TEST_RESOURCES@
EXTRA_OBJS
=
build.res @ALL_TEST_RESOURCES@
@MAKE_PROG_RULES@
clean
::
clean
::
$(RM)
build.rc build.nfo
$(RM)
build.rc build.nfo
...
@@ -28,3 +26,5 @@ build.nfo:
...
@@ -28,3 +26,5 @@ build.nfo:
-
$(CC)
-v
2>
$@
-
$(CC)
-v
2>
$@
build.res
:
build.nfo
build.res
:
build.nfo
@MAKE_PROG_RULES@
tools/make_makefiles
View file @
237ed76e
...
@@ -26,7 +26,6 @@ my %makerules =
...
@@ -26,7 +26,6 @@ my %makerules =
(
(
"MAKE_RULES"
=>
"Make.rules"
,
"MAKE_RULES"
=>
"Make.rules"
,
"MAKE_TEST_RULES"
=>
"Maketest.rules"
,
"MAKE_TEST_RULES"
=>
"Maketest.rules"
,
"MAKE_PROG_RULES"
=>
"programs/Makeprog.rules"
,
);
);
# Programs that we want to install in the bin directory too
# Programs that we want to install in the bin directory too
...
@@ -351,7 +350,7 @@ sub parse_makefile($)
...
@@ -351,7 +350,7 @@ sub parse_makefile($)
if
(
defined
$make
{
"=flags"
}
&&
defined
$make
{
"=rules"
}
&&
if
(
defined
$make
{
"=flags"
}
&&
defined
$make
{
"=rules"
}
&&
(
$make
{
"=rules"
}
eq
"MAKE_DLL_RULES"
||
(
$make
{
"=rules"
}
eq
"MAKE_DLL_RULES"
||
$make
{
"=rules"
}
eq
$makerules
{
"MAKE_PROG_RULES"
}
))
$make
{
"=rules"
}
eq
"MAKE_PROG_RULES"
))
{
{
die
"Custom install-lib rule not allowed in $file"
if
defined
$
{
$make
{
"=flags"
}}{
"install-lib"
};
die
"Custom install-lib rule not allowed in $file"
if
defined
$
{
$make
{
"=flags"
}}{
"install-lib"
};
die
"Custom install-dev rule not allowed in $file"
if
defined
$
{
$make
{
"=flags"
}}{
"install-dev"
};
die
"Custom install-dev rule not allowed in $file"
if
defined
$
{
$make
{
"=flags"
}}{
"install-dev"
};
...
@@ -472,7 +471,7 @@ sub update_makefiles(@)
...
@@ -472,7 +471,7 @@ sub update_makefiles(@)
$args
.=
",[$implib]"
if
$implib
&&
$implib
ne
$name
;
$args
.=
",[$implib]"
if
$implib
&&
$implib
ne
$name
;
push
@lines
,
"WINE_CONFIG_DLL($name$args)\n"
;
push
@lines
,
"WINE_CONFIG_DLL($name$args)\n"
;
}
}
elsif
(
$rules
eq
$makerules
{
"MAKE_PROG_RULES"
}
)
elsif
(
$rules
eq
"MAKE_PROG_RULES"
)
{
{
(
my
$name
=
$file
)
=~
s/^programs\/(.*)\/Makefile/$1/
;
(
my
$name
=
$file
)
=~
s/^programs\/(.*)\/Makefile/$1/
;
if
(
$name
=~
/\./
)
if
(
$name
=~
/\./
)
...
...
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