diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/crypto/isa-l/isa-l_crypto/examples/saturation_test/Makefile | |
parent | Initial commit. (diff) | |
download | ceph-upstream/18.2.2.tar.xz ceph-upstream/18.2.2.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/crypto/isa-l/isa-l_crypto/examples/saturation_test/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/Makefile b/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/Makefile new file mode 100644 index 000000000..41e9e29f2 --- /dev/null +++ b/src/crypto/isa-l/isa-l_crypto/examples/saturation_test/Makefile @@ -0,0 +1,27 @@ + +INCLUDE = /usr/include +CFLAGS = -O2 -I$(INCLUDE) +LDLIBS = -lisal_crypto -lcrypto -lpthread +test = isal_multithread_perf + +source += isal_multithread_perf.c +source += md5_thread.c \ + sha1_thread.c \ + sha256_thread.c \ + sha512_thread.c \ + aes_thread.c + +ODIR = bin +objects = $(addprefix $(ODIR)/, $(patsubst %.c, %.o, $(source))) + +$(test): $(objects) + gcc $? $(LDLIBS) -o $@ + +$(ODIR): ; mkdir -p $(ODIR) +$(objects): | $(ODIR) +$(ODIR)/%.o: %.c + gcc -c $(CFLAGS) $< -o $@ + +clean: + @echo Cleaning up + @rm -fr $(ODIR) $(test) |