summaryrefslogtreecommitdiffstats
path: root/lib/libcrypt/test/Makefile
blob: 91aa28963fbdf69a429e58e1931ba7956cc1b78d (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.
#
# $Id: Makefile,v 1.5 1996/06/24 20:28:35 markm Exp $
#
LIBCRYPT= -lcrypt

#CFLAGS+= -DHAVE_CRYPT16
CFLAGS+= -ggdb

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
	$(CC) $(CFLAGS) -o cert ${.CURDIR}/cert.c ${LIBCRYPT}

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

clean:
	rm -f ${TARGETS}

install:

obj:

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