summaryrefslogtreecommitdiff
path: root/regress/lib/libpthread/Makefile
blob: f4b0e9a9ae0b4445a8c32ce52fc78e73fc6a284f (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
# $OpenBSD: Makefile,v 1.16 2003/01/30 04:36:27 marc Exp $

SUBDIR= cancel cancel2 close cwd execve fork group malloc_duel netdb pcap poll \
	preemption preemption_float pthread_cond_timedwait pthread_create \
	pthread_join pthread_kill pthread_mutex pthread_specific readdir \
	select setjmp signal sigdeliver siginfo signodefer sigsuspend \
	sigwait sleep socket stdarg stdio switch system

# Not available or disabled: fcntl, pause, and pw

install:

.PHONY: testall
testall:
	rm -f /tmp/thread-{shared,static,debug}
	make clean && make obj && make depend && \
	REGRESS_LOG=/tmp/thread-shared make
	(export COPTS=-static; make clean && make obj && make depend && \
	 REGRESS_LOG=/tmp/thread-static make)
	(export DEBUG=-g; make clean && make obj && make depend && \
	 REGRESS_LOG=/tmp/thread-debug make)
	@echo "\n\nTest Results:"
	@(shared=$$(grep FAIL /tmp/thread-shared) || true; \
	  if [ "$$shared" ]; then \
	     echo "** SHARED lib failures:"; echo "$$shared"; echo; \
	  else \
	     echo "No SHARED lib failures"; \
	  fi)
	@(static=$$(grep FAIL /tmp/thread-static) || true; \
	  if [ "$$static" ]; then \
	     echo "** STATIC lib failures:"; echo "$$static"; echo; \
	  else \
	     echo "No STATIC lib failures"; \
	  fi)
	@(debug=$$(grep FAIL /tmp/thread-debug) || true; \
	  if [ "$$debug" ]; then \
	     echo "** DEBUG lib failures:"; echo "$$debug"; echo; \
	  else \
	     echo "No DEBUG lib failures"; \
	  fi)

.include <bsd.subdir.mk>