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
3e40fea9
Commit
3e40fea9
authored
Jan 08, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Automatically add the necessary msvcrt flags to the generated rules.
parent
ddc7f300
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
31 additions
and
62 deletions
+31
-62
Make.rules.in
Make.rules.in
+1
-1
Make.vars.in
Make.vars.in
+1
-0
configure
configure
+2
-0
configure.ac
configure.ac
+2
-0
Makefile.in
dlls/crtdll/Makefile.in
+0
-2
msvcirt.c
dlls/msvcirt/msvcirt.c
+0
-1
Makefile.in
dlls/msvcp100/Makefile.in
+0
-2
Makefile.in
dlls/msvcp100/tests/Makefile.in
+0
-2
Makefile.in
dlls/msvcp110/Makefile.in
+0
-2
Makefile.in
dlls/msvcp60/Makefile.in
+0
-2
Makefile.in
dlls/msvcp60/tests/Makefile.in
+0
-2
Makefile.in
dlls/msvcp71/Makefile.in
+0
-2
Makefile.in
dlls/msvcp80/Makefile.in
+0
-2
Makefile.in
dlls/msvcp90/Makefile.in
+0
-2
Makefile.in
dlls/msvcp90/tests/Makefile.in
+0
-2
Makefile.in
dlls/msvcr100/Makefile.in
+0
-2
Makefile.in
dlls/msvcr100/tests/Makefile.in
+0
-2
Makefile.in
dlls/msvcr110/Makefile.in
+0
-2
Makefile.in
dlls/msvcr80/Makefile.in
+0
-2
Makefile.in
dlls/msvcr90/Makefile.in
+0
-2
Makefile.in
dlls/msvcr90/tests/Makefile.in
+0
-2
Makefile.in
dlls/msvcrt/tests/Makefile.in
+1
-2
Makefile.in
dlls/msvcrtd/Makefile.in
+0
-2
Makefile.in
dlls/msvcrtd/tests/Makefile.in
+0
-2
Makefile.in
loader/Makefile.in
+0
-1
Makefile.in
programs/notepad/Makefile.in
+0
-3
Makefile.in
programs/regedit/Makefile.in
+0
-3
Makefile.in
programs/taskmgr/Makefile.in
+0
-3
Makefile.in
programs/wordpad/Makefile.in
+0
-3
Makefile.in
programs/xcopy/Makefile.in
+0
-2
makedep.c
tools/makedep.c
+24
-7
No files found.
Make.rules.in
View file @
3e40fea9
...
...
@@ -11,7 +11,7 @@
# First some useful definitions
ALLCFLAGS = $(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS)
$(MODCFLAGS)
ALLCFLAGS = $(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS)
IDLFLAGS = $(EXTRAIDLFLAGS)
RCFLAGS = --nostdinc $(PORCFLAGS)
...
...
Make.vars.in
View file @
3e40fea9
...
...
@@ -22,6 +22,7 @@ CROSSCC = @CROSSCC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
EXTRACFLAGS = @EXTRACFLAGS@
MSVCRTFLAGS = @BUILTINFLAG@
TARGETFLAGS = @TARGETFLAGS@
LIBS = @LIBS@
BISON = @BISON@
...
...
configure
View file @
3e40fea9
...
...
@@ -14388,6 +14388,8 @@ install install-lib:: $wine_binary-preloader
uninstall::
\$
(RM)
\$
(DESTDIR)
\$
(bindir)/
$wine_binary
-preloader
preloader_EXTRADEFS =
$BUILTINFLAG
"
;;
esac
;;
...
...
configure.ac
View file @
3e40fea9
...
...
@@ -1994,6 +1994,8 @@ install install-lib:: $wine_binary-preloader
uninstall::
\$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
preloader_EXTRADEFS = $BUILTINFLAG
"]) ;;
esac
;;
...
...
dlls/crtdll/Makefile.in
View file @
3e40fea9
MODULE
=
crtdll.dll
IMPORTLIB
=
crtdll
IMPORTS
=
msvcrt
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
crtdll_main.c
dlls/msvcirt/msvcirt.c
View file @
3e40fea9
...
...
@@ -17,7 +17,6 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
...
...
dlls/msvcp100/Makefile.in
View file @
3e40fea9
MODULE
=
msvcp100.dll
IMPORTS
=
msvcr100
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
EXTRADEFS
=
-D_MSVCP_VER
=
100
PARENTSRC
=
../msvcp90
...
...
dlls/msvcp100/tests/Makefile.in
View file @
3e40fea9
TESTDLL
=
msvcp100.dll
APPMODE
=
-mno-cygwin
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
misc.c
\
...
...
dlls/msvcp110/Makefile.in
View file @
3e40fea9
MODULE
=
msvcp110.dll
IMPORTS
=
msvcr110
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
EXTRADEFS
=
-D_MSVCP_VER
=
110
PARENTSRC
=
../msvcp90
...
...
dlls/msvcp60/Makefile.in
View file @
3e40fea9
MODULE
=
msvcp60.dll
IMPORTS
=
msvcrt
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
exception.c
\
...
...
dlls/msvcp60/tests/Makefile.in
View file @
3e40fea9
TESTDLL
=
msvcp60.dll
APPMODE
=
-mno-cygwin
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
ios.c
\
...
...
dlls/msvcp71/Makefile.in
View file @
3e40fea9
MODULE
=
msvcp71.dll
IMPORTS
=
msvcrt
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
EXTRADEFS
=
-D_MSVCP_VER
=
71
PARENTSRC
=
../msvcp90
...
...
dlls/msvcp80/Makefile.in
View file @
3e40fea9
MODULE
=
msvcp80.dll
IMPORTS
=
msvcr80
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
EXTRADEFS
=
-D_MSVCP_VER
=
80
PARENTSRC
=
../msvcp90
...
...
dlls/msvcp90/Makefile.in
View file @
3e40fea9
MODULE
=
msvcp90.dll
IMPORTS
=
msvcr90
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
EXTRADEFS
=
-D_MSVCP_VER
=
90
C_SRCS
=
\
...
...
dlls/msvcp90/tests/Makefile.in
View file @
3e40fea9
TESTDLL
=
msvcp90.dll
APPMODE
=
-mno-cygwin
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
ios.c
\
...
...
dlls/msvcr100/Makefile.in
View file @
3e40fea9
MODULE
=
msvcr100.dll
IMPORTLIB
=
msvcr100
IMPORTS
=
msvcrt
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
msvcr100.c
...
...
dlls/msvcr100/tests/Makefile.in
View file @
3e40fea9
TESTDLL
=
msvcr100.dll
APPMODE
=
-mno-cygwin
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
msvcr100.c
dlls/msvcr110/Makefile.in
View file @
3e40fea9
MODULE
=
msvcr110.dll
IMPORTLIB
=
msvcr110
IMPORTS
=
msvcrt
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
msvcr110.c
dlls/msvcr80/Makefile.in
View file @
3e40fea9
MODULE
=
msvcr80.dll
IMPORTLIB
=
msvcr80
IMPORTS
=
msvcrt
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
msvcr80.c
...
...
dlls/msvcr90/Makefile.in
View file @
3e40fea9
MODULE
=
msvcr90.dll
IMPORTLIB
=
msvcr90
IMPORTS
=
msvcrt
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
msvcr90.c
...
...
dlls/msvcr90/tests/Makefile.in
View file @
3e40fea9
TESTDLL
=
msvcr90.dll
APPMODE
=
-mno-cygwin
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
msvcr90.c
...
...
dlls/msvcrt/tests/Makefile.in
View file @
3e40fea9
TESTDLL
=
msvcrt.dll
APPMODE
=
-mno-cygwin
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
-I
$(srcdir)
/..
EXTRAINCL
=
-I
$(srcdir)
/..
C_SRCS
=
\
cpp.c
\
...
...
dlls/msvcrtd/Makefile.in
View file @
3e40fea9
MODULE
=
msvcrtd.dll
IMPORTLIB
=
msvcrtd
IMPORTS
=
msvcrt
MODCFLAGS
=
@BUILTINFLAG@
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
C_SRCS
=
\
debug.c
dlls/msvcrtd/tests/Makefile.in
View file @
3e40fea9
TESTDLL
=
msvcrtd.dll
APPMODE
=
-mno-cygwin
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
MODCFLAGS
=
@BUILTINFLAG@
C_SRCS
=
\
debug.c
loader/Makefile.in
View file @
3e40fea9
MODCFLAGS
=
@BUILTINFLAG@
EXTRALIBS
=
@LIBPTHREAD@
C_SRCS
=
\
...
...
programs/notepad/Makefile.in
View file @
3e40fea9
MODULE
=
notepad.exe
APPMODE
=
-mwindows
-mno-cygwin
IMPORTS
=
comdlg32 shell32 shlwapi user32 gdi32 advapi32
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
MODCFLAGS
=
@BUILTINFLAG@
EXTRADEFS
=
-DNO_LIBWINE_PORT
C_SRCS
=
\
dialog.c
\
...
...
programs/regedit/Makefile.in
View file @
3e40fea9
...
...
@@ -2,9 +2,6 @@ MODULE = regedit.exe
APPMODE
=
-mwindows
-mno-cygwin
IMPORTS
=
advapi32
DELAYIMPORTS
=
shlwapi shell32 comdlg32 comctl32 user32 gdi32
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
EXTRADEFS
=
-DNO_LIBWINE_PORT
MODCFLAGS
=
@BUILTINFLAG@
C_SRCS
=
\
about.c
\
...
...
programs/taskmgr/Makefile.in
View file @
3e40fea9
MODULE
=
taskmgr.exe
APPMODE
=
-mwindows
-mno-cygwin
IMPORTS
=
psapi shell32 comctl32 user32 gdi32 advapi32
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
EXTRADEFS
=
-DNO_LIBWINE_PORT
MODCFLAGS
=
@BUILTINFLAG@
C_SRCS
=
\
about.c
\
...
...
programs/wordpad/Makefile.in
View file @
3e40fea9
MODULE
=
wordpad.exe
APPMODE
=
-mwindows
-mno-cygwin
IMPORTS
=
comdlg32 uuid ole32 shell32 user32 gdi32 advapi32 comctl32
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
EXTRADEFS
=
-DNO_LIBWINE_PORT
MODCFLAGS
=
@BUILTINFLAG@
C_SRCS
=
\
olecallback.c
\
...
...
programs/xcopy/Makefile.in
View file @
3e40fea9
MODULE
=
xcopy.exe
APPMODE
=
-mconsole
-municode
-mno-cygwin
IMPORTS
=
shell32 user32
EXTRAINCL
=
-I
$(top_srcdir)
/include/msvcrt
MODCFLAGS
=
@BUILTINFLAG@
C_SRCS
=
\
xcopy.c
...
...
tools/makedep.c
View file @
3e40fea9
...
...
@@ -93,6 +93,9 @@ static const struct strarray empty_strarray;
static
struct
strarray
include_args
;
static
struct
strarray
define_args
;
static
struct
strarray
appmode
;
static
struct
strarray
dllflags
;
static
struct
strarray
imports
;
static
struct
strarray
make_vars
;
static
struct
strarray
cmdline_vars
;
...
...
@@ -1393,8 +1396,6 @@ static struct strarray output_sources(void)
struct
strarray
includes
=
empty_strarray
;
struct
strarray
subdirs
=
empty_strarray
;
struct
strarray
phony_targets
=
empty_strarray
;
struct
strarray
dllflags
=
get_expanded_make_var_array
(
"DLLFLAGS"
);
struct
strarray
imports
=
get_expanded_make_var_array
(
"IMPORTS"
);
struct
strarray
all_targets
=
get_expanded_make_var_array
(
"PROGRAMS"
);
struct
strarray
targetflags
=
get_expanded_make_var_array
(
"TARGETFLAGS"
);
struct
strarray
delayimports
=
get_expanded_make_var_array
(
"DELAYIMPORTS"
);
...
...
@@ -1402,7 +1403,6 @@ static struct strarray output_sources(void)
char
*
module
=
get_expanded_make_variable
(
"MODULE"
);
char
*
exeext
=
get_expanded_make_variable
(
"EXEEXT"
);
char
*
testdll
=
get_expanded_make_variable
(
"TESTDLL"
);
char
*
appmode
=
get_expanded_make_variable
(
"APPMODE"
);
char
*
staticlib
=
get_expanded_make_variable
(
"STATICLIB"
);
char
*
crosstarget
=
get_expanded_make_variable
(
"CROSSTARGET"
);
...
...
@@ -1690,7 +1690,7 @@ static struct strarray output_sources(void)
{
char
*
importlib
=
get_expanded_make_variable
(
"IMPORTLIB"
);
struct
strarray
all_libs
=
empty_strarray
;
char
*
spec_file
=
appmode
?
NULL
:
replace_extension
(
module
,
".dll"
,
".spec"
);
char
*
spec_file
=
appmode
.
count
?
NULL
:
replace_extension
(
module
,
".dll"
,
".spec"
);
if
(
spec_file
&&
src_dir
)
spec_file
=
strmake
(
"%s/%s"
,
src_dir
,
spec_file
);
for
(
i
=
0
;
i
<
delayimports
.
count
;
i
++
)
...
...
@@ -1726,7 +1726,7 @@ static struct strarray output_sources(void)
output
(
" -shared %s"
,
spec_file
);
output_filenames
(
extradllflags
);
}
else
output_filename
(
appmode
);
else
output_filename
s
(
appmode
);
output_filenames
(
object_files
);
output_filenames
(
res_files
);
output_filenames
(
all_libs
);
...
...
@@ -1857,7 +1857,7 @@ static struct strarray output_sources(void)
output
(
"%s%s:
\n
"
,
testmodule
,
dllext
);
output
(
"
\t
$(WINEGCC) -o $@"
);
output_filenames
(
targetflags
);
if
(
appmode
)
output_filename
(
appmode
);
output_filenames
(
appmode
);
output_filenames
(
object_files
);
output_filenames
(
res_files
);
output_filenames
(
all_libs
);
...
...
@@ -1867,7 +1867,7 @@ static struct strarray output_sources(void)
output
(
"
\t
$(WINEGCC) -s -o $@"
);
output_filenames
(
targetflags
);
output_filename
(
strmake
(
"-Wb,-F,%s"
,
testmodule
));
if
(
appmode
)
output_filename
(
appmode
);
output_filenames
(
appmode
);
output_filenames
(
object_files
);
output_filenames
(
res_files
);
output_filenames
(
all_libs
);
...
...
@@ -2101,6 +2101,7 @@ static void update_makefile( const char *path )
};
const
char
**
var
;
unsigned
int
i
;
int
use_msvcrt
=
0
;
struct
strarray
value
;
struct
incl_file
*
file
;
...
...
@@ -2113,6 +2114,15 @@ static void update_makefile( const char *path )
top_obj_dir
=
get_expanded_make_variable
(
"top_builddir"
);
parent_dir
=
get_expanded_make_variable
(
"PARENTSRC"
);
appmode
=
get_expanded_make_var_array
(
"APPMODE"
);
dllflags
=
get_expanded_make_var_array
(
"DLLFLAGS"
);
imports
=
get_expanded_make_var_array
(
"IMPORTS"
);
for
(
i
=
0
;
i
<
appmode
.
count
&&
!
use_msvcrt
;
i
++
)
use_msvcrt
=
!
strcmp
(
appmode
.
str
[
i
],
"-mno-cygwin"
);
for
(
i
=
0
;
i
<
imports
.
count
&&
!
use_msvcrt
;
i
++
)
use_msvcrt
=
!
strncmp
(
imports
.
str
[
i
],
"msvcr"
,
5
);
include_args
=
empty_strarray
;
define_args
=
empty_strarray
;
strarray_add
(
&
define_args
,
"-D__WINESRC__"
);
...
...
@@ -2127,6 +2137,13 @@ static void update_makefile( const char *path )
init_paths
();
if
(
use_msvcrt
)
{
strarray_add
(
&
dllflags
,
get_expanded_make_variable
(
"MSVCRTFLAGS"
));
strarray_add
(
&
include_args
,
strmake
(
"-I%s/include/msvcrt"
,
top_src_dir
?
top_src_dir
:
top_obj_dir
));
}
list_init
(
&
sources
);
list_init
(
&
includes
);
...
...
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