summaryrefslogtreecommitdiff
path: root/regress/sys/kern/noexec/Makefile
blob: 8674e3b24787a07d490b6723abdb906db78fff99 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#	$OpenBSD: Makefile,v 1.10 2004/03/01 22:12:36 deraadt Exp $

.if ${MACHINE} == "sparc64" || ${MACHINE} == "sparc" || \
    ${MACHINE} == "alpha" \
    ${MACHINE_ARCH} == "amd64" || ${MACHINE} == "i386" || \
    ${MACHINE} == "hppa"

PROG=	noexec
CFLAGS+=-Wall
LDSTATIC= ${STATIC}
REGRESS_TARGETS=	nxtext-mmap	nxtext-mprotect \
		nxdata	nxdata-mmap	nxdata-mprotect \
		nxbss	nxbss-mmap	nxbss-mprotect \
		nxheap	nxheap-mmap	nxheap-mprotect \
		nxmmap			nxmmap-mprotect \
		nxstack	nxstack-mmap	nxstack-mprotect
.PHONY: ${REGRESS_TARGETS}

nxtext-mmap: ${PROG}
	@echo ./${PROG} -T -m not being run

nxtext-mprotect: ${PROG}
	@./${PROG} -T -p

nxdata: ${PROG}
	@./${PROG} -D

nxdata-mprotect: ${PROG}
	@./${PROG} -D -p

nxdata-mmap: ${PROG}
	@./${PROG} -D -m

nxbss: ${PROG}
	@./${PROG} -B

nxbss-mmap: ${PROG}
	@./${PROG} -B -m

nxbss-mprotect: ${PROG}
	@./${PROG} -B -p

nxheap: ${PROG}
	@./${PROG} -H

nxheap-mmap: ${PROG}
	@./${PROG} -H -m

nxheap-mprotect: ${PROG}
	@./${PROG} -H -p

nxstack: ${PROG}
	@./${PROG} -S

nxstack-mmap: ${PROG}
	@./${PROG} -S -m

nxstack-mprotect: ${PROG}
	@./${PROG} -S -p

nxmmap: ${PROG}
	@./${PROG} -m

nxmmap-mprotect: ${PROG}
	@./${PROG} -m -p

.else
REGRESS_TARGETS=		# this architecture has no test for this
.endif

.include <bsd.regress.mk>