1
0
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:
R. Yushaev 2018-12-19 14:31:32 +01:00
parent 7e1e1d34f8
commit 031094552b
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -16,5 +16,6 @@ hashcat.dll
*.dSYM *.dSYM
kernels/** kernels/**
lib/*.a lib/*.a
modules/*.so
obj/*.o obj/*.o
include/CL include/CL

View File

@ -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