Makefile revision a17dff0dc9d07cb9734943b1f593b856d17776b4
2N/A#
2N/A# This file and its contents are supplied under the terms of the
2N/A# Common Development and Distribution License ("CDDL"), version 1.0.
2N/A# You may only use this file in accordance with the terms of version
2N/A# 1.0 of the CDDL.
2N/A#
2N/A# A full copy of the text of the CDDL should have accompanied this
2N/A# source. A copy of the CDDL is also available via the Internet at
2N/A# http://www.illumos.org/license/CDDL.
2N/A#
2N/A
2N/A#
2N/A# Copyright (c) 2015 Joyent, Inc.
2N/A#
2N/A
2N/Ainclude $(SRC)/Makefile.master
2N/A
2N/AROOTOPTPKG = $(ROOT)/opt/libc-tests
2N/ATESTDIR = $(ROOTOPTPKG)/tests/random
2N/AROOTBINDIR = $(ROOTOPTPKG)/bin
2N/A
2N/APROGS = arc4random \
2N/A arc4random_prefork \
2N/A arc4random_fork \
2N/A arc4random_preforkall \
2N/A arc4random_forkall \
2N/A arc4random_preforksig \
2N/A arc4random_forksig \
2N/A arc4random_rekey \
2N/A chacha \
2N/A getentropy \
2N/A getrandom \
2N/A getrandred \
2N/A inz_child \
2N/A inz_inval \
2N/A inz_mlock \
2N/A inz_region \
2N/A inz_split \
inz_split_vpp \
inz_vpp
SCRIPTS = arc4key.ksh
include $(SRC)/cmd/Makefile.cmd
include $(SRC)/test/Makefile.com
CMDS = $(PROGS:%=$(TESTDIR)/%) $(SCRIPTS:%=$(TESTDIR)/%)
$(CMDS) := FILEMODE = 0555
all: $(PROGS)
install: all $(CMDS)
lint:
clobber: clean
-$(RM) $(PROGS)
clean:
-$(RM) *.o
$(CMDS): $(TESTDIR) $(PROGS)
arc4random_prefork: arc4random_fork.c
$(LINK.c) -o $@ -DARC4_PREINIT=1 arc4random_fork.c $(LDLIBS)
$(POST_PROCESS)
arc4random_preforkall: arc4random_forkall.c
$(LINK.c) -o $@ -DARC4_PREINIT=1 arc4random_forkall.c $(LDLIBS)
$(POST_PROCESS)
arc4random_preforksig: arc4random_forksig.c
$(LINK.c) -o $@ -DARC4_PREINIT=1 arc4random_forksig.c $(LDLIBS)
$(POST_PROCESS)
chacha: chacha_tv.c
$(COMPILE.c) -DKEYSTREAM_ONLY -I$(SRC)/common/crypto/chacha -o chacha.o -c $(SRC)/common/crypto/chacha/chacha.c
$(COMPILE.c) -I$(SRC)/common/crypto/chacha -o chacha_tv.o -c chacha_tv.c
$(LINK.c) -o $@ chacha_tv.o chacha.o $(LDLIBS)
$(POST_PROCESS)
$(ROOTBINDIR):
$(INS.dir)
$(ROOTBINDIR)/%: %
$(INS.file)
$(TESTDIR):
$(INS.dir)
$(TESTDIR)/%: %
$(INS.file)
$(TESTDIR)/%: %
$(INS.file)