xref: /openbsd/regress/lib/libpthread/Makefile (revision 404b540a)
1# $OpenBSD: Makefile,v 1.26 2006/10/13 18:04:07 kurt Exp $
2
3SUBDIR= blocked_close blocked_dup2 blocked_shutdown cancel cancel2 close \
4	closefrom close_race cwd dup2_race execve fork group \
5	malloc_duel netdb pcap poll \
6	preemption preemption_float \
7	pthread_atfork pthread_cond_timedwait pthread_create \
8	pthread_join pthread_kill pthread_mutex pthread_specific readdir \
9	select setjmp signal sigdeliver siginfo signodefer sigsuspend \
10	sigwait sleep socket stdarg stdio switch system
11
12# Not available or disabled: fcntl, getaddrinfo, pause, pw, sigmask, stdfiles
13
14install:
15
16.PHONY: testall
17testall:
18	rm -f /tmp/thread-{shared,static,debug}
19	make cleandir && make obj && make depend && \
20	REGRESS_LOG=/tmp/thread-shared make
21	(export LDFLAGS=-static; make clean && \
22	 REGRESS_LOG=/tmp/thread-static make)
23	(export DEBUG=-g; make clean && \
24	 REGRESS_LOG=/tmp/thread-debug make)
25	@echo "\n\nTest Results:"
26	@(shared=$$(grep FAIL /tmp/thread-shared) || true; \
27	  if [ "$$shared" ]; then \
28	     echo "** SHARED lib failures:"; echo "$$shared"; echo; \
29	  else \
30	     echo "No SHARED lib failures"; \
31	  fi)
32	@(static=$$(grep FAIL /tmp/thread-static) || true; \
33	  if [ "$$static" ]; then \
34	     echo "** STATIC lib failures:"; echo "$$static"; echo; \
35	  else \
36	     echo "No STATIC lib failures"; \
37	  fi)
38	@(debug=$$(grep FAIL /tmp/thread-debug) || true; \
39	  if [ "$$debug" ]; then \
40	     echo "** DEBUG lib failures:"; echo "$$debug"; echo; \
41	  else \
42	     echo "No DEBUG lib failures"; \
43	  fi)
44
45.include <bsd.subdir.mk>
46