makedep: Make the spec file optional for testdll resources.

This commit is contained in:
Alexandre Julliard 2023-09-05 12:40:29 +02:00
parent 9ac4f151c0
commit cfcf5ca286
11 changed files with 1 additions and 20 deletions

View file

@ -12,11 +12,8 @@ SOURCES = \
device8.c \
dinput.c \
driver_bus.c \
driver_bus.spec \
driver_hid.c \
driver_hid.spec \
driver_hid_poll.c \
driver_hid_poll.spec \
force_feedback.c \
hid.c \
hotplug.c \

View file

@ -1 +0,0 @@
# nothing here yet

View file

@ -1 +0,0 @@
# nothing here yet

View file

@ -1 +0,0 @@
# nothing here yet

View file

@ -14,13 +14,8 @@ driver_pnp_EXTRADLLFLAGS = -nodefaultlibs -nostartfiles -Wl,--subsystem,native
SOURCES = \
driver.c \
driver.spec \
driver2.c \
driver2.spec \
driver3.c \
driver3.spec \
driver_netio.c \
driver_netio.spec \
driver_pnp.c \
driver_pnp.spec \
ntoskrnl.c

View file

@ -1 +0,0 @@
# nothing here yet

View file

@ -1 +0,0 @@
# nothing here yet

View file

@ -1 +0,0 @@
# nothing here yet

View file

@ -1 +0,0 @@
# nothing here yet

View file

@ -1 +0,0 @@
# nothing here yet

View file

@ -3077,7 +3077,7 @@ static void output_source_testdll( struct makefile *make, struct incl_file *sour
struct strarray dll_flags = empty_strarray;
struct strarray default_imports = empty_strarray;
struct strarray all_libs, dep_libs;
const char *dll_name, *obj_name, *res_name, *output_rsrc, *output_file, *debug_file, *ext;
const char *dll_name, *obj_name, *res_name, *output_rsrc, *output_file, *debug_file, *ext = ".dll";
struct incl_file *spec_file = find_src_file( make, strmake( "%.spec", obj ));
unsigned int arch;
@ -3085,10 +3085,7 @@ static void output_source_testdll( struct makefile *make, struct incl_file *sour
strarray_addall( &dll_flags, make->extradllflags );
strarray_addall( &dll_flags, get_expanded_file_local_var( make, obj, "EXTRADLLFLAGS" ));
if (!strarray_exists( &dll_flags, "-nodefaultlibs" )) default_imports = get_default_imports( make, imports );
if (strarray_exists( &dll_flags, "-mconsole" )) ext = ".exe";
else if (!spec_file) fatal_error( "testdll source %s needs a .spec file\n", source->name );
else ext = ".dll";
for (arch = 0; arch < archs.count; arch++)
{