makefiles: Always use the global SOURCES variable for .m files.
This commit is contained in:
parent
bf8cb196b5
commit
92fe7c9c9f
2 changed files with 13 additions and 17 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue