summaryrefslogtreecommitdiff
path: root/libhurd-ihash/Makefile.am
blob: bc6d47e0ef6395eb3090d8664bbf80b84260af01 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Makefile.am - Makefile template for libhurd-ihash.
# Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc.
# Written by Marcus Brinkmann.
#
# This file is part of the GNU Hurd.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307 USA.

lib_LIBRARIES = libhurd-ihash.a libhurd-ihash-kernel.a

includehurddir = $(includedir)/hurd
includehurd_HEADERS = ihash.h

# FIXME: Build a special libhurd-ihash.a using libc-parts for the rootservers,
# and a normal for everybody else.

if ENABLE_TESTS
libhurd_ihash_a_CPPFLAGS = $(CHECK_CPPFLAGS)
libhurd_ihash_a_CFLAGS = $(CHECK_CFLAGS)
else
libhurd_ihash_a_CPPFLAGS = $(USER_CPPFLAGS)
libhurd_ihash_a_CFLAGS = $(USER_CFLAGS)
endif
libhurd_ihash_a_SOURCES = ihash.h ihash.c

libhurd_ihash_kernel_a_CPPFLAGS = -DNO_MALLOC
if ENABLE_TESTS
libhurd_ihash_kernel_a_CPPFLAGS += $(CHECK_CPPFLAGS)
libhurd_ihash_kernel_a_CFLAGS = $(CHECK_CFLAGS)
else
libhurd_ihash_kernel_a_CPPFLAGS += $(KERNEL_CPPFLAGS)
libhurd_ihash_kernel_a_CFLAGS = $(KERNEL_CFLAGS)
endif
libhurd_ihash_kernel_a_SOURCES = ihash.h ihash.c

TESTS = t-ihash t-ihash64
check_PROGRAMS = t-ihash t-ihash64

t_ihash_SOURCES = t-ihash.c ihash.h ihash.c
t_ihash_CPPFLAGS = $(CHECK_CPPFLAGS) \
	-DTEST_LARGE=false
t_ihash_CFLAGS=-std=gnu99

t_ihash64_SOURCES = t-ihash.c ihash.h ihash.c
t_ihash64_CPPFLAGS = $(CHECK_CPPFLAGS) \
	-DTEST_LARGE=true
t_ihash64_CFLAGS=-std=gnu99