mirror of
https://github.com/hashcat/hashcat
synced 2024-11-20 23:27:31 +01:00
Add Makefile target 'modules'
Allows to build all shared objects in modules directory using the command 'make modules'. Also add objects to gitignore.
This commit is contained in:
parent
7e1e1d34f8
commit
031094552b
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,5 +16,6 @@ hashcat.dll
|
||||
*.dSYM
|
||||
kernels/**
|
||||
lib/*.a
|
||||
modules/*.so
|
||||
obj/*.o
|
||||
include/CL
|
||||
|
@ -540,10 +540,13 @@ endif
|
||||
##
|
||||
|
||||
MODULE_DEPEND := src/bitops.c src/convert.c src/interface.c src/shared.c
|
||||
MODULES_SRC := $(wildcard modules/*.c)
|
||||
MODULES := $(patsubst %.c, %.so, $(MODULES_SRC))
|
||||
|
||||
modules/module_%.so: modules/module_%.c
|
||||
$(CC) $(CFLAGS_NATIVE) $< -o $@ -shared -fPIC $(MODULE_DEPEND)
|
||||
|
||||
modules: $(MODULES)
|
||||
|
||||
##
|
||||
## cross compiled hashcat
|
||||
|
Loading…
Reference in New Issue
Block a user