Threefish cipher based raw PRN/noise generator.

This commit is contained in:
Andrey Rys
2019-03-17 17:41:21 +07:00
commit 76b80ded3a
11 changed files with 436 additions and 0 deletions

27
Makefile Normal file
View File

@ -0,0 +1,27 @@
PROGS = tfrand
PROGSRCS = $(PROGS:=.c)
PROGOBJS = $(PROGSRCS:.c=.o)
SRCS = $(filter-out $(PROGSRCS), $(wildcard *.c))
HDRS = $(wildcard *.h)
OBJS = $(SRCS:.c=.o)
ifneq (,$(DEBUG))
override CFLAGS+=-Wall -O0 -g
else
override CFLAGS+=-O3
endif
default: $(OBJS) libtf.a tfrand
all: $(OBJS) libtf.a $(PROGS)
%.o: %.c $(HDRS)
$(CC) $(CFLAGS) -c -o $@ $<
libtf.a: $(OBJS)
$(AR) cru $@ $^
$(PROGS): %: %.o libtf.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
clean:
rm -f libtf.a $(OBJS) $(PROGOBJS) $(SUPPOBJS) $(PROGS)