mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 06:35:32 +03:00
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
|