mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-21 05:41:43 +03:00
cc3a139440
This vendors libaes_siv so that we can use it to jet +sivc:aes:crypto.
21 lines
516 B
Makefile
21 lines
516 B
Makefile
CC ?= cc
|
|
AR ?= ar
|
|
PREFIX ?= ./out
|
|
|
|
################################################################################
|
|
|
|
.PHONY: all test install clean
|
|
|
|
all: aes_siv.c aes_siv.h
|
|
$(CC) $(CFLAGS) -Wall -Wextra -Wstrict-prototypes -Wconversion -O3 -fomit-frame-pointer -funroll-loops -ftree-vectorize -DNDEBUG -c aes_siv.c
|
|
$(AR) rcs libaes_siv.a aes_siv.o
|
|
|
|
install: all
|
|
@mkdir -p $(PREFIX)/lib/
|
|
@mkdir -p $(PREFIX)/include/
|
|
cp libaes_siv.a $(PREFIX)/lib/
|
|
cp aes_siv.h $(PREFIX)/include/
|
|
|
|
clean:
|
|
rm -rf ./out
|