File: Makefile.am

package info (click to toggle)
courier 0.47-4sarge5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 32,680 kB
  • ctags: 12,265
  • sloc: ansic: 164,045; cpp: 23,863; sh: 19,569; perl: 7,225; makefile: 4,192; yacc: 316; sed: 16
file content (34 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (2)
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
#
# Copyright 2000-2002 Double Precision, Inc.
# See COPYING for distribution information.
#
#$Id: Makefile.am,v 1.3 2003/11/15 21:04:46 mrsam Exp $

AUTOMAKE = srcdir=${srcdir} @SHELL@ ${srcdir}/../automake.fix @AUTOMAKE@

noinst_LIBRARIES=libthreadlib.a
noinst_DATA=libthread.dep
noinst_PROGRAMS=threadtest

CLEANFILES=libthread.dep t

if HAVE_PTHREADS
threadc=pthread.c
else
threadc=nopthread.c
endif

libthreadlib_a_SOURCES=$(threadc) threadlib.h havepthread.h nopthread.h
EXTRA_DIST=pthread.c nopthread.c testsuite testsuite.txt

libthread.dep: config.status
	echo @THREADLIB@ >libthread.dep

threadtest_SOURCES=test.c
threadtest_DEPENDENCIES=libthreadlib.a libthread.dep
threadtest_LDADD=libthreadlib.a `cat libthread.dep`

check-am: threadtest
	@echo '------------- Testing threadlib ---------------'
	@sh $(srcdir)/testsuite | tee t
	@cmp -s t $(srcdir)/testsuite.txt