|
Packit |
5e354d |
# Makefile.am - Makefile for NPTH tests.
|
|
Packit |
5e354d |
# Copyright (C) 2011 g10 Code GmbH
|
|
Packit |
5e354d |
#
|
|
Packit |
5e354d |
# This file is part of nPth.
|
|
Packit |
5e354d |
#
|
|
Packit |
5e354d |
# nPth is free software; you can redistribute it and/or modify it
|
|
Packit |
5e354d |
# under the terms of the GNU Lesser General Public License as
|
|
Packit |
5e354d |
# published by the Free Software Foundation; either version 2.1 of the
|
|
Packit |
5e354d |
# License, or (at your option) any later version.
|
|
Packit |
5e354d |
#
|
|
Packit |
5e354d |
# nPth is distributed in the hope that it will be useful, but WITHOUT
|
|
Packit |
5e354d |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
Packit |
5e354d |
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
|
Packit |
5e354d |
# Public License for more details.
|
|
Packit |
5e354d |
#
|
|
Packit |
5e354d |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit |
5e354d |
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
5e354d |
|
|
Packit |
5e354d |
## Process this file with automake to produce Makefile.in
|
|
Packit |
5e354d |
|
|
Packit |
5e354d |
TESTS = t-mutex t-thread
|
|
Packit |
5e354d |
|
|
Packit |
5e354d |
# We explicitly require POSIX.1-2001 so that pthread_rwlock_t is
|
|
Packit |
5e354d |
# available when build with c99.
|
|
Packit |
5e354d |
if HAVE_W32_SYSTEM
|
|
Packit |
5e354d |
AM_CPPFLAGS = -I$(top_srcdir)/w32
|
|
Packit |
5e354d |
AM_LDFLAGS =
|
|
Packit |
5e354d |
LDADD = ../w32/libnpth.la $(LIB_CLOCK_GETTIME)
|
|
Packit |
5e354d |
else
|
|
Packit |
5e354d |
AM_CPPFLAGS = -I../src -D_POSIX_C_SOURCE=200112L
|
|
Packit |
5e354d |
AM_LDFLAGS =
|
|
Packit |
5e354d |
LDADD = ../src/libnpth.la $(LIBSOCKET) $(LIB_CLOCK_GETTIME)
|
|
Packit |
5e354d |
TESTS += t-fork
|
|
Packit |
5e354d |
endif
|
|
Packit |
5e354d |
|
|
Packit |
5e354d |
noinst_HEADERS = t-support.h
|
|
Packit |
5e354d |
|
|
Packit |
5e354d |
noinst_PROGRAMS = $(TESTS)
|