1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-21 23:58:07 +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
kernels/**
lib/*.a
modules/*.so
obj/*.o
include/CL

View File

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