-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
OPENSLL_INSTALL_DIR=/home/pirug/openssl
IDENTITY_CBINDINGS=/home/pirug/Desktop/identity-cbindings
OPENSSL_LIB=lib64
CC = gcc
CFLAGS =\
-I $(OPENSLL_INSTALL_DIR)/include/\
-Wl,-rpath=$(IDENTITY_CBINDINGS)/target/release/\
-L $(IDENTITY_CBINDINGS)/target/release/\
-Wall -fPIC -g
LDFLAGS = -shared -lidentity_openssl
TARGET = libssiprovider.so
SOURCES = keymgmt/vc_kmgmt.c\
encode_decode/endecoder_local.h encode_decode/endecoder_common.c encode_decode/decode_der2vc.c encode_decode/encode_vc2pem.c\
signature/vc_sig.c\
common/ssi.h common/bio_prov.c common/provider_ctx.c common/include/prov/bio.h common/include/prov/provider_ctx.h\
ssiprov.c names.h
OBJECTS = $(SOURCES:.c=.o)
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJECTS) $(LDFLAGS)
clean:
rm -f ssiprov.o keymgmt/vc_kmgmt.o\
encode_decode/endecoder_common.o encode_decode/decode_der2vc.o encode_decode/encode_vc2pem.o\
signature/vc_sig.o\
common/bio_prov.o common/provider_ctx.o\
libssiprovider.so
install:
cp libssiprovider.so $(OPENSLL_INSTALL_DIR)/$(OPENSSL_LIB)/ossl-modules/ssi.so
uninstall:
rm -f $(OPENSLL_INSTALL_DIR)/$(OPENSSL_LIB)/ossl-modules/ssi.so