diff options
Diffstat (limited to 'src/crypto/isa-l/isa-l_crypto/examples/saturation_test/Makefile')
-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) |