blob: 1a2f8ac439a072ff5c8b13d894c537246c8c7e5e (
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
|
# 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-nomalloc.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.
libhurd_ihash_a_CPPFLAGS = $(USER_CPPFLAGS)
libhurd_ihash_a_CFLAGS = $(USER_CFLAGS)
libhurd_ihash_a_SOURCES = ihash.h ihash.c
libhurd_ihash_nomalloc_a_CPPFLAGS = $(USER_CPPFLAGS) -DNO_MALLOC
libhurd_ihash_nomalloc_a_CFLAGS = $(USER_CFLAGS)
libhurd_ihash_nomalloc_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 = -DTEST_LARGE=false -DS_PRINTF=printf
t_ihash_CFLAGS=-std=gnu99
t_ihash64_SOURCES = t-ihash.c ihash.h ihash.c
t_ihash64_CPPFLAGS = -DTEST_LARGE=true -DS_PRINTF=printf
t_ihash64_CFLAGS=-std=gnu99
|