summaryrefslogtreecommitdiff
path: root/libc-parts/Makefile.am
blob: 58d20ce5fede45780788cc71b48dc9b6b036ccd0 (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
61
# Makefile.am - Makefile template for libc-parts.
# Copyright (C) 2003, 2008 Free Software Foundation, Inc.
# Written by Marcus Brinkmann.
#
# This file is part of the GNU Hurd.
# 
# The GNU Hurd is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# The GNU Hurd 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 General Public License for more details.
# 
# You should have received a copy of the GNU 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

if ARCH_IA32
  ARCH_COMMON_SOURCES = 
  ARCH_USER_SOURCES = ia32-cmain.c ia32-crt0.S
  ARCH_KERNEL_SOURCES = ia32-setjmp.S 
endif

if ! ENABLE_TESTS
noinst_LIBRARIES = libc-parts.a libc-kernel.a
endif

common_sources = assert.h 					\
	backtrace.c s-printf.h s_printf.c startup.c		\
	panic.c _exit.c						\
	elf.h loader.h loader.c					\
	process-spawn.h process-spawn.c				\
	md5.h md5.c						\
	profile.h profile.c					\
	stack-protector.c

libc_parts_a_CPPFLAGS = $(USER_CPPFLAGS)
libc_parts_a_CFLAGS = $(USER_CFLAGS)
libc_parts_a_SOURCES = 						\
	$(ARCH_COMMON_SOURCES) $(ARCH_USER_SOURCES) 		\
	ctype.h c-ctype.h c-ctype.c				\
	getpagesize.c		 				\
	$(common_sources)

libc_kernel_a_CPPFLAGS = $(KERNEL_CPPFLAGS)
libc_kernel_a_CFLAGS = $(KERNEL_CFLAGS)
libc_kernel_a_SOURCES =						\
	$(ARCH_COMMON_SOURCES) $(ARCH_KERNEL_SOURCES) 		\
	errno.h errno.c	 					\
	strtol.c strtoll.c strtoul.c strtoull.c			\
	setjmp.h						\
	$(common_sources)

TESTS = t-setjmp
check_PROGRAMS = $(TESTS)

t_setjmp_CPPFLAGS = $(CHECK_CPPFLAGS)
t_setjmp_SOURCES = t-setjmp.c setjmp.h ia32-setjmp.S