Initial
This commit is contained in:
commit
94c4bbd6cf
7 changed files with 3403 additions and 0 deletions
23
Makefile
Normal file
23
Makefile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
CC = gcc
|
||||
CFLAGS = -Wall -ggdb
|
||||
|
||||
TARGET = main.elf
|
||||
SRC = main.c monocypher.c
|
||||
|
||||
#LDFLAGS =
|
||||
|
||||
$(TARGET): $(SRC) seed.h
|
||||
@echo CC $@
|
||||
@$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
seed.h:
|
||||
openssl rand 32 \
|
||||
| xxd -i -n seed \
|
||||
| sed 's/unsigned char/static uint8_t/g' \
|
||||
| sed 's/unsigned int/static uint32_t/g' \
|
||||
| sed 's/};/,};/g' \
|
||||
| { echo '#include <stdint.h>'; cat; } \
|
||||
| clang-format > $@
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
Loading…
Add table
Add a link
Reference in a new issue