summaryrefslogtreecommitdiffstats
path: root/secure/lib/libcrypt/test/Makefile
blob: 0ba817f88cd7b6d0ddb407a708382279c5ef751f (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
#	Hacked Makefile to compile and run the DES-certification program,
#	but not install anything.
#
# $FreeBSD$
#
LIBCRYPT= $(.OBJDIR)/libdescrypt.a

#CFLAGS+= -DHAVE_CRYPT16

TARGETS=cert speedcrypt

all: ${TARGETS}

test: all testcrypt testspeed

testcrypt: cert
	@./cert -c

testspeed: cryptspeed

cryptspeed: speedcrypt
	@./speedcrypt 30 1
	@./speedcrypt 30 1
	@./speedcrypt 30 0
	@./speedcrypt 30 0

cert: cert.c ${LIBCRYPT}
	$(CC) $(CFLAGS) -o cert ${.CURDIR}/cert.c ${LIBCRYPT}

speedcrypt: speedcrypt.c ${LIBCRYPT}
	$(CC) $(CFLAGS) -o speedcrypt ${.CURDIR}/speedcrypt.c ${LIBCRYPT}


clean:
	rm -f ${TARGETS}

install:

obj:

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud