Commit e9afeb2a authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Automatically add dll flags where necessary.

parent 1cd2786f
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# First some useful definitions # First some useful definitions
DEFS = -D__WINESRC__ $(EXTRADEFS) DEFS = -D__WINESRC__ $(EXTRADEFS)
ALLCFLAGS = $(DEFS) $(DLLFLAGS) $(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) $(MODCFLAGS) ALLCFLAGS = $(DEFS) $(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) $(MODCFLAGS)
IDLFLAGS = $(DEFS) $(EXTRAIDLFLAGS) IDLFLAGS = $(DEFS) $(EXTRAIDLFLAGS)
RCFLAGS = --nostdinc $(PORCFLAGS) $(TARGETFLAGS) $(DEFS) $(EXTRARCFLAGS) RCFLAGS = --nostdinc $(PORCFLAGS) $(TARGETFLAGS) $(DEFS) $(EXTRARCFLAGS)
......
...@@ -39,6 +39,7 @@ LN_S = @LN_S@ ...@@ -39,6 +39,7 @@ LN_S = @LN_S@
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
TOOLSDIR = @TOOLSDIR@ TOOLSDIR = @TOOLSDIR@
LDFLAGS = @LDFLAGS@ LDFLAGS = @LDFLAGS@
DLLFLAGS = @DLLFLAGS@
PRELINK = @PRELINK@ PRELINK = @PRELINK@
FONTFORGE = @FONTFORGE@ FONTFORGE = @FONTFORGE@
RSVG = @RSVG@ RSVG = @RSVG@
......
...@@ -16530,24 +16530,18 @@ ac_config_commands="$ac_config_commands include/stamp-h" ...@@ -16530,24 +16530,18 @@ ac_config_commands="$ac_config_commands include/stamp-h"
$as_echo_n "creating Makefile rules..." >&6 $as_echo_n "creating Makefile rules..." >&6
MAKE_IMPLIB_RULES="DLLFLAGS = $DLLFLAGS MAKE_IMPLIB_RULES=""
"
MAKE_DLL_RULES=" MAKE_DLL_RULES=""
DLLFLAGS = $DLLFLAGS
"
MAKE_PROG_RULES=" MAKE_PROG_RULES=""
DLLFLAGS = $DLLFLAGS
"
MAKE_TEST_RULES=" MAKE_TEST_RULES="
DLLFLAGS = $DLLFLAGS
RUNTESTFLAGS = -q -P wine RUNTESTFLAGS = -q -P wine
" "
......
...@@ -2593,23 +2593,17 @@ AS_ECHO_N("creating Makefile rules...") >&AS_MESSAGE_FD ...@@ -2593,23 +2593,17 @@ AS_ECHO_N("creating Makefile rules...") >&AS_MESSAGE_FD
dnl Import library rules dnl Import library rules
AC_SUBST(MAKE_IMPLIB_RULES,"DLLFLAGS = $DLLFLAGS AC_SUBST(MAKE_IMPLIB_RULES,"")
")
dnl Dll and program rules dnl Dll and program rules
AC_SUBST(MAKE_DLL_RULES," AC_SUBST(MAKE_DLL_RULES,"")
DLLFLAGS = $DLLFLAGS
")
AC_SUBST(MAKE_PROG_RULES," AC_SUBST(MAKE_PROG_RULES,"")
DLLFLAGS = $DLLFLAGS
")
dnl Test rules dnl Test rules
AC_SUBST(MAKE_TEST_RULES," AC_SUBST(MAKE_TEST_RULES,"
DLLFLAGS = $DLLFLAGS
RUNTESTFLAGS = -q -P wine RUNTESTFLAGS = -q -P wine
") ")
......
DLLFLAGS = @DLLFLAGS@
STATICLIB = libwine_port.a STATICLIB = libwine_port.a
C_SRCS = \ C_SRCS = \
......
DLLFLAGS = @DLLFLAGS@
EXTRALIBS = $(LIBPORT) @LIBDL@ @COREFOUNDATIONLIB@ @CORESERVICESLIB@ EXTRALIBS = $(LIBPORT) @LIBDL@ @COREFOUNDATIONLIB@ @CORESERVICESLIB@
EXTRADEFS = -DWINE_UNICODE_API="" \ EXTRADEFS = -DWINE_UNICODE_API="" \
-DBINDIR='"$(bindir)"' \ -DBINDIR='"$(bindir)"' \
......
DLLFLAGS = @DLLFLAGS@
STATICLIB = libwpp.a STATICLIB = libwpp.a
C_SRCS = \ C_SRCS = \
......
...@@ -1376,6 +1376,7 @@ static struct strarray output_sources(void) ...@@ -1376,6 +1376,7 @@ static struct strarray output_sources(void)
struct strarray includes = empty_strarray; struct strarray includes = empty_strarray;
struct strarray subdirs = empty_strarray; struct strarray subdirs = empty_strarray;
struct strarray phony_targets = 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 imports = get_expanded_make_var_array( "IMPORTS" );
struct strarray all_targets = get_expanded_make_var_array( "PROGRAMS" ); struct strarray all_targets = get_expanded_make_var_array( "PROGRAMS" );
struct strarray delayimports = get_expanded_make_var_array( "DELAYIMPORTS" ); struct strarray delayimports = get_expanded_make_var_array( "DELAYIMPORTS" );
...@@ -1578,6 +1579,7 @@ static struct strarray output_sources(void) ...@@ -1578,6 +1579,7 @@ static struct strarray output_sources(void)
output( "%s.o: %s\n", obj, sourcedep ); output( "%s.o: %s\n", obj, sourcedep );
output( "\t$(CC) -c -o $@ %s", source->filename ); output( "\t$(CC) -c -o $@ %s", source->filename );
output_filenames( includes ); output_filenames( includes );
if (module || staticlib || testdll) output_filenames( dllflags );
output_filename( "$(ALLCFLAGS)" ); output_filename( "$(ALLCFLAGS)" );
output( "\n" ); output( "\n" );
if (crosstarget && need_cross) if (crosstarget && need_cross)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment