CC = gcc CFLAGS = -Wall -ggdb TARGET = main.elf SRC = main.c monocypher.c #LDFLAGS = $(TARGET): $(SRC) seed.h @echo CC $@ @$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) @#rm seed.h # Enable for extra security 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 '; cat; } \ | clang-format > $@ clean: rm -f $(TARGET) rm -f seed.h