Commit 92fe7c9c authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent bf8cb196
......@@ -14,8 +14,17 @@ UNIX_LIBS = \
-framework Security \
$(METAL_LIBS)
C_SRCS = \
SOURCES = \
clipboard.c \
cocoa_app.m \
cocoa_clipboard.m \
cocoa_cursorclipping.m \
cocoa_display.m \
cocoa_event.m \
cocoa_main.m \
cocoa_opengl.m \
cocoa_status_item.m \
cocoa_window.m \
display.c \
dllmain.c \
dragdrop.c \
......@@ -29,17 +38,5 @@ C_SRCS = \
surface.c \
systray.c \
vulkan.c \
window.c
OBJC_SRCS = \
cocoa_app.m \
cocoa_clipboard.m \
cocoa_cursorclipping.m \
cocoa_display.m \
cocoa_event.m \
cocoa_main.m \
cocoa_opengl.m \
cocoa_status_item.m \
cocoa_window.m
RC_SRCS = winemac.rc
window.c \
winemac.rc
......@@ -338,12 +338,11 @@ sub assign_sources_to_makefiles(@)
my $make = $makefiles{"$dir/Makefile.in"};
my $name = substr( $file, length($dir) + 1 );
if ($name =~ /\.(mc|po)$/)
if ($name =~ /\.(m|mc|po)$/)
{
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; }
......
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