xref: /isa-l_crypto/examples/saturation_test/Makefile (revision acb6d41595d8bf1d2004b1277ee1957d411ffc14)
1
2INCLUDE = /usr/include
3CFLAGS = -O2 -I$(INCLUDE)
4LDLIBS = -lisal_crypto -lcrypto -lpthread
5test = isal_multithread_perf
6
7source += isal_multithread_perf.c
8source += md5_thread.c \
9        sha1_thread.c \
10        sha256_thread.c \
11        sha512_thread.c \
12        aes_thread.c
13
14ODIR = bin
15objects = $(addprefix $(ODIR)/, $(patsubst %.c, %.o, $(source)))
16
17$(test): $(objects)
18	gcc   $? $(LDLIBS) -o $@
19
20$(ODIR): ; mkdir -p $(ODIR)
21$(objects): | $(ODIR)
22$(ODIR)/%.o: %.c
23	gcc -c  $(CFLAGS) $< -o $@
24
25clean:
26	@echo Cleaning up
27	@rm -fr $(ODIR) $(test)
28