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
aa6c4d4e
Commit
aa6c4d4e
authored
Jan 23, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Add specific creation macros for the various types of makefiles.
parent
e2af560a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
8 deletions
+52
-8
aclocal.m4
aclocal.m4
+28
-0
configure.ac
configure.ac
+0
-0
make_makefiles
tools/make_makefiles
+24
-8
No files found.
aclocal.m4
View file @
aa6c4d4e
...
...
@@ -189,6 +189,34 @@ ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
AC_CONFIG_FILES([$1])dnl
m4_popdef([ac_dir])])
dnl **** Create a dll makefile from config.status ****
dnl
dnl Usage: WINE_CONFIG_DLL(name,enable)
dnl
AC_DEFUN([WINE_CONFIG_DLL],
[WINE_CONFIG_MAKEFILE([dlls/$1/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS],[$2])])
dnl **** Create a program makefile from config.status ****
dnl
dnl Usage: WINE_CONFIG_PROGRAM(name,var,enable)
dnl
AC_DEFUN([WINE_CONFIG_PROGRAM],
[WINE_CONFIG_MAKEFILE([programs/$1/Makefile],[programs/Makeprog.rules],[programs],[$2],[$3])])
dnl **** Create a test makefile from config.status ****
dnl
dnl Usage: WINE_CONFIG_TEST(dir)
dnl
AC_DEFUN([WINE_CONFIG_TEST],
[WINE_CONFIG_MAKEFILE([$1/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])])
dnl **** Create a static lib makefile from config.status ****
dnl
dnl Usage: WINE_CONFIG_LIB(name)
dnl
AC_DEFUN([WINE_CONFIG_LIB],
[WINE_CONFIG_MAKEFILE([dlls/$1/Makefile],[dlls/Makeimplib.rules],[dlls],[ALL_IMPLIB_DIRS])])
dnl **** Add a message to the list displayed at the end ****
dnl
dnl Usage: WINE_NOTICE(notice)
...
...
configure.ac
View file @
aa6c4d4e
This diff is collapsed.
Click to expand it.
tools/make_makefiles
View file @
aa6c4d4e
...
...
@@ -341,22 +341,38 @@ sub update_makefiles(@)
my
$args
=
""
;
if
(
$rules
eq
$makerules
{
"MAKE_DLL_RULES"
})
{
$args
=
",[dlls],[ALL_DLL_DIRS]"
;
$args
.=
",[enable_win16]"
if
$make
{
"MODULE"
}
=~
/(16|\.vxd)$/
;
(
my
$name
=
$file
)
=~
s/^dlls\/(.*)\/Makefile/$1/
;
$args
.=
",enable_win16"
if
$make
{
"MODULE"
}
=~
/(16|\.vxd)$/
;
push
@lines
,
"WINE_CONFIG_DLL($name$args)\n"
;
}
elsif
(
$rules
eq
$makerules
{
"MAKE_IMPLIB_RULES"
})
{
$args
=
",[dlls],[ALL_IMPLIB_DIRS]"
;
}
elsif
(
$rules
eq
$makerules
{
"MAKE_TEST_RULES"
})
{
$args
=
",[dlls],[ALL_TEST_DIRS],[enable_tests]"
;
}
elsif
(
$rules
eq
$makerules
{
"MAKE_PROG_RULES"
})
{
(
my
$name
=
$file
)
=~
s/^programs\/(.*)\/Makefile/$1/
;
$args
=
",[
programs],[
ALL_PROGRAM_DIRS"
;
$args
=
",[ALL_PROGRAM_DIRS"
;
$args
.=
",ALL_PROGRAM_INSTALL_DIRS"
unless
$dont_install
{
$name
};
$args
.=
",ALL_PROGRAM_BIN_INSTALL_DIRS"
if
$bin_install
{
$name
};
$args
.=
"]"
;
$args
.=
",[enable_win16]"
if
$make
{
"MODULE"
}
=~
/16$/
;
$args
.=
",enable_win16"
if
$make
{
"MODULE"
}
=~
/16$/
;
push
@lines
,
"WINE_CONFIG_PROGRAM($name$args)\n"
;
}
elsif
(
$rules
eq
$makerules
{
"MAKE_TEST_RULES"
})
{
(
my
$dir
=
$file
)
=~
s/^(.*)\/Makefile/$1/
;
push
@lines
,
"WINE_CONFIG_TEST($dir)\n"
;
}
elsif
(
$rules
eq
$makerules
{
"MAKE_IMPLIB_RULES"
})
{
(
my
$name
=
$file
)
=~
s/^dlls\/(.*)\/Makefile/$1/
;
push
@lines
,
"WINE_CONFIG_LIB($name)\n"
;
}
elsif
(
$file
=~
/^[^\/]*\/Makefile$/
)
{
push
@lines
,
"WINE_CONFIG_MAKEFILE([$file],[$rules],[],[ALL_TOP_DIRS])\n"
;
}
else
{
push
@lines
,
"WINE_CONFIG_MAKEFILE([$file],[$rules])\n"
;
}
elsif
(
$file
=~
/^[^\/]*\/Makefile$/
)
{
$args
=
",[],[ALL_TOP_DIRS]"
;
}
push
@lines
,
"WINE_CONFIG_MAKEFILE([$file],[$rules]$args)\n"
;
}
# update the source variables in all the makefiles
...
...
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