mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-19 20:34:49 -04:00
add fork of libsam3
add funtion to get i2p certificate crypto algo names
This commit is contained in:
parent
130d846e47
commit
76f0678820
25 changed files with 5858 additions and 7 deletions
41
supportlibs/libsam3/Makefile
Normal file
41
supportlibs/libsam3/Makefile
Normal file
|
@ -0,0 +1,41 @@
|
|||
CFLAGS := -Wall -g -O2 -std=gnu99
|
||||
|
||||
SRCS := \
|
||||
src/libsam3/libsam3.c \
|
||||
src/libsam3a/libsam3a.c
|
||||
|
||||
TESTS := \
|
||||
src/ext/tinytest.c \
|
||||
test/test.c \
|
||||
test/libsam3/test_b32.c
|
||||
|
||||
LIB_OBJS := ${SRCS:.c=.o}
|
||||
TEST_OBJS := ${TESTS:.c=.o}
|
||||
|
||||
OBJS := ${LIB_OBJS} ${TEST_OBJS}
|
||||
|
||||
LIB := libsam3.a
|
||||
|
||||
|
||||
all: build check
|
||||
|
||||
check: libsam3-tests
|
||||
./libsam3-tests
|
||||
|
||||
build: ${LIB}
|
||||
|
||||
${LIB}: ${LIB_OBJS}
|
||||
${AR} -sr ${LIB} ${LIB_OBJS}
|
||||
|
||||
libsam3-tests: ${TEST_OBJS} ${LIB}
|
||||
${CC} $^ -o $@
|
||||
|
||||
clean:
|
||||
rm -f libsam3-tests ${LIB} ${OBJS} examples/sam3/samtest
|
||||
|
||||
%.o: %.c Makefile
|
||||
${CC} ${CFLAGS} -c $< -o $@
|
||||
|
||||
fmt:
|
||||
find . -name '*.c' -exec clang-format -i {} \;
|
||||
find . -name '*.h' -exec clang-format -i {} \;
|
Loading…
Add table
Add a link
Reference in a new issue