mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00: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
|
*.dSYM
|
||||||
kernels/**
|
kernels/**
|
||||||
lib/*.a
|
lib/*.a
|
||||||
|
modules/*.so
|
||||||
obj/*.o
|
obj/*.o
|
||||||
include/CL
|
include/CL
|
||||||
|
@ -540,10 +540,13 @@ endif
|
|||||||
##
|
##
|
||||||
|
|
||||||
MODULE_DEPEND := src/bitops.c src/convert.c src/interface.c src/shared.c
|
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
|
modules/module_%.so: modules/module_%.c
|
||||||
$(CC) $(CFLAGS_NATIVE) $< -o $@ -shared -fPIC $(MODULE_DEPEND)
|
$(CC) $(CFLAGS_NATIVE) $< -o $@ -shared -fPIC $(MODULE_DEPEND)
|
||||||
|
|
||||||
|
modules: $(MODULES)
|
||||||
|
|
||||||
##
|
##
|
||||||
## cross compiled hashcat
|
## cross compiled hashcat
|
||||||
|
Loading…
Reference in New Issue
Block a user