blob: aaca0ef4c7433dfabebfc367923f34fc2e2ccc6d (
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
|
# $OpenBSD: Makefile.inc,v 1.1 2001/08/15 14:37:10 fgsch Exp $
# Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu
LIBC_R?= /usr/lib/libc_r.a
LIBPTHREAD?= /usr/lib/libpthread.a
.if 1 # ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc"
LDADD+= -lpthread
DPADD+= ${LIBPTHREAD}
.else
LDADD+= -pthread
DPADD+= ${LIBC_R}
.endif
CFLAGS+= -Wall # -Werror
DEBUG= -ggdb
CFLAGS+= -DSRCDIR='"${.CURDIR}"'
CFLAGS+= -I${.CURDIR}/../include
NOMAN=
MAXTIME= 5
regress: ${PROG}
@echo; echo "*** $? ***"; \
if (ulimit -t ${MAXTIME}; ${.OBJDIR}/$?); then \
echo "-- $? passed"; \
else \
echo "-- $? FAILED (exit code $$?)" >&2; \
fi;
|