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