mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-01 12:28:24 +00:00
Fix module suffix on msys
This commit is contained in:
parent
53eecc2337
commit
4b49ceea46
16
src/Makefile
16
src/Makefile
@ -590,10 +590,20 @@ endif
|
|||||||
## native compiled modules
|
## native compiled modules
|
||||||
##
|
##
|
||||||
|
|
||||||
MODULES_SRC := $(wildcard src/modules/*.c)
|
MODULE_SUFFIX := so
|
||||||
MODULES_LIB := $(patsubst src/modules/module_%.c, modules/module_%.so, $(MODULES_SRC))
|
|
||||||
|
|
||||||
modules/module_%.so: src/modules/module_%.c $(MODULE_NATIVE_SHARED_OBJS)
|
ifeq ($(UNAME),CYGWIN)
|
||||||
|
MODULE_SUFFIX := dll
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(UNAME),MSYS2)
|
||||||
|
MODULE_SUFFIX := dll
|
||||||
|
endif
|
||||||
|
|
||||||
|
MODULES_SRC := $(wildcard src/modules/*.c)
|
||||||
|
MODULES_LIB := $(patsubst src/modules/module_%.c, modules/module_%.$(MODULE_SUFFIX), $(MODULES_SRC))
|
||||||
|
|
||||||
|
modules/module_%.$(MODULE_SUFFIX): src/modules/module_%.c $(MODULE_NATIVE_SHARED_OBJS)
|
||||||
$(CC) $(CFLAGS_NATIVE) $^ -o $@ $(LFLAGS_NATIVE) -shared -fPIC -D MODULE_INTERFACE_VERSION_CURRENT=$(MODULE_INTERFACE_VERSION)
|
$(CC) $(CFLAGS_NATIVE) $^ -o $@ $(LFLAGS_NATIVE) -shared -fPIC -D MODULE_INTERFACE_VERSION_CURRENT=$(MODULE_INTERFACE_VERSION)
|
||||||
|
|
||||||
modules: $(MODULES_LIB)
|
modules: $(MODULES_LIB)
|
||||||
|
Loading…
Reference in New Issue
Block a user