summaryrefslogtreecommitdiff
path: root/regress/usr.bin/pcc/ccom/Makefile
blob: c8de94bea6c9101346042733bb7113d2bc2a4037 (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
# $OpenBSD: Makefile,v 1.4 2007/11/06 14:59:45 stefan Exp $

CC=/usr/local/bin/cc

REGRESS_TARGETS=\
	arith001 \
	const001 \
	darray001 \
	enum001 \
	init001 init004 \
	switch003 \
	tmpalloc001 \
	shouldfail

.c:
	@echo ${*}
	${CC} ${.CURDIR}/${*}.c -o ${*}.out && ${.CURDIR}/${*}.out

shouldfail:
	@echo ${*}
	if ${CC} ${.CURDIR}/init002.c; then false; else true; fi
	if ${CC} ${.CURDIR}/init003.c; then false; else true; fi
	if ${CC} ${.CURDIR}/switch001.c; then false; else true; fi
	if ${CC} ${.CURDIR}/switch002.c; then false; else true; fi
	
clean:
	rm -f *.out

.include <bsd.regress.mk>