Commit 64de93e3 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Always use the global SOURCES variable for .mc files.

parent 1255764a
......@@ -7,10 +7,11 @@ EXTRADLLFLAGS = -nodefaultlibs -nostartfiles
i386_EXTRADLLFLAGS = -Wl,--image-base,0x7b000000
x86_64_EXTRADLLFLAGS = -Wl,--image-base,0x174000000
C_SRCS = \
SOURCES = \
console.c \
debug.c \
file.c \
kernelbase.rc \
loader.c \
locale.c \
main.c \
......@@ -23,7 +24,5 @@ C_SRCS = \
sync.c \
thread.c \
version.c \
volume.c
RC_SRCS = kernelbase.rc
MC_SRCS = winerror.mc
volume.c \
winerror.mc
......@@ -2,4 +2,4 @@ MODULE = mferror.dll
EXTRADLLFLAGS = -Wb,--data-only
MC_SRCS = mferror.mc
SOURCES = mferror.mc
......@@ -5,7 +5,7 @@ IMPORTS = $(ZLIB_PE_LIBS) mpr shlwapi shell32 user32 ws2_32 advapi32
EXTRAINCL = $(ZLIB_PE_CFLAGS)
DELAYIMPORTS = secur32 crypt32 cryptui dhcpcsvc iphlpapi
C_SRCS = \
SOURCES = \
cookie.c \
dialogs.c \
ftp.c \
......@@ -14,9 +14,6 @@ C_SRCS = \
internet.c \
netconnection.c \
urlcache.c \
utility.c
RC_SRCS = wininet.rc
MC_SRCS = \
utility.c \
wininet.rc \
winineterror.mc
......@@ -3,8 +3,6 @@ IMPORTS = user32
EXTRADLLFLAGS = -mconsole -municode
C_SRCS = \
SOURCES = \
fsutil.mc \
main.c
MC_SRCS = \
fsutil.mc
......@@ -338,7 +338,12 @@ sub assign_sources_to_makefiles(@)
my $make = $makefiles{"$dir/Makefile.in"};
my $name = substr( $file, length($dir) + 1 );
if ($name =~ /\.m$/) { push @{${$make}{"=OBJC_SRCS"}}, $name; }
if ($name =~ /\.mc$/)
{
push @{${$make}{"=SOURCES"}}, $name;
next;
}
elsif ($name =~ /\.m$/) { push @{${$make}{"=OBJC_SRCS"}}, $name; }
elsif ($name =~ /\.l$/) { push @{${$make}{"=LEX_SRCS"}}, $name; }
elsif ($name =~ /\.y$/) { push @{${$make}{"=BISON_SRCS"}}, $name; }
elsif ($name =~ /\.svg$/) { push @{${$make}{"=SVG_SRCS"}}, $name; }
......@@ -358,10 +363,6 @@ sub assign_sources_to_makefiles(@)
{
push @{${$make}{"=RC_SRCS"}}, $name;
}
elsif ($name =~ /\.mc$/)
{
push @{${$make}{"=MC_SRCS"}}, $name;
}
elsif ($name =~ /\.po$/)
{
push @{${$make}{"=PO_SRCS"}}, $name;
......@@ -408,6 +409,7 @@ sub assign_sources_to_makefiles(@)
my $make = $makefiles{$file};
my $parent = get_parent_makefile( $file );
next unless $parent;
preserve_shared_source_files( $makefiles{$file}, $makefiles{$parent}, "SOURCES" );
preserve_shared_source_files( $makefiles{$file}, $makefiles{$parent}, "C_SRCS" );
preserve_shared_source_files( $makefiles{$file}, $makefiles{$parent}, "RC_SRCS" );
preserve_shared_source_files( $makefiles{$file}, $makefiles{$parent}, "IDL_SRCS" );
......
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