-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 748 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
CC?= clang
AR?= ar
INSTALL?= install
PREFIX?= /usr/local
CFLAGS?= -O2
all: librngd rngtest
librngd:
$(CC) -c -I./src -I$(PREFIX)/include $(CFLAGS) -pthread -g -Wall -Werror ./src/fips.c ./src/stats.c ./src/util.c ./src/viapadlock_engine.c
$(AR) rvs librngd.a fips.o stats.o util.o viapadlock_engine.o
rngtest:
$(CC) -I./src -I/usr/include -I$(PREFIX)/include $(CFLAGS) -pthread -Wall -Werror ./src/rngtest.c -o rngtest $(PREFIX)/lib/libargp.a ./librngd.a
install:
$(INSTALL) -m 755 -o root -g wheel rngtest $(PREFIX)/bin/
$(INSTALL) -m 644 doc/rngtest.1 $(PREFIX)/man/man1/
clean:
rm -f *.o
rm -f *.a
rm -f rngtest
deinstall:
rm -f $(PREFIX)/bin/rngtest
rm -f $(PREFIX)/man/man1/rngtest.*