-# Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
+# Copyright (C) 1991-1999, 2000 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
bits/posix1_lim.h bits/posix2_lim.h bits/posix_opt.h \
bits/local_lim.h tar.h bits/utsname.h bits/confname.h \
bits/waitflags.h bits/waitstatus.h sys/unistd.h sched.h \
- bits/sched.h re_comp.h wait.h bits/environments.h cpio.h
+ bits/sched.h re_comp.h wait.h bits/environments.h cpio.h \
+ sys/sysmacros.h spawn.h
distribute := confstr.h TESTS TESTS2C.sed testcases.h \
PTESTS PTESTS2C.sed ptestcases.h \
- globtest.c globtest.sh wordexp-tst.sh
+ globtest.c globtest.sh wordexp-tst.sh annexc.c fnmatch_loop.c \
+ spawn_int.h
routines := \
uname \
getpgid setpgid getpgrp bsd-getpgrp setpgrp getsid setsid \
getlogin getlogin_r setlogin \
pathconf sysconf fpathconf \
- glob fnmatch regex \
+ glob glob64 fnmatch regex \
confstr \
getopt getopt1 getopt_init \
sched_setp sched_getp sched_sets sched_gets sched_yield sched_primax \
sched_primin sched_rr_gi \
getaddrinfo gai_strerror wordexp \
- pread pwrite pread64 pwrite64
+ pread pwrite pread64 pwrite64 \
+ spawn_faction_init spawn_faction_destroy spawn_faction_addclose \
+ spawn_faction_addopen spawn_faction_adddup2 \
+ spawnattr_init spawnattr_destroy \
+ spawnattr_getdefault spawnattr_setdefault \
+ spawnattr_getflags spawnattr_setflags \
+ spawnattr_getpgroup spawnattr_setpgroup spawn spawnp spawni
+
+include ../Makeconfig
aux := init-posix environ
-tests := tstgetopt testfnm runtests wordexp-test runptests
+tests := tstgetopt testfnm runtests runptests \
+ tst-preadwrite test-vfork regexbug1 tst-getlogin tst-mmap
+ifeq (yes,$(build-shared))
test-srcs := globtest
+tests += wordexp-test
+endif
others := getconf
install-bin := getconf
+ifeq (yes,$(build-static))
install-lib := libposix.a
+endif
gpl2lgpl := getopt.c getopt1.c getopt.h regex.c regex.h
before-compile := testcases.h ptestcases.h
# So they get cleaned up.
-generated := $(addprefix wordexp-test-result, 1 2 3 4 5 6 7 8 9 10)
+generated := $(addprefix wordexp-test-result, 1 2 3 4 5 6 7 8 9 10) \
+ annexc annexc.out
include ../Rules
ifeq (no,$(cross-compiling))
+# globtest and wordexp-test currently only works with shared libraries
+ifeq (yes,$(build-shared))
.PHONY: do-globtest do-wordexp-test
tests: do-globtest do-wordexp-test
do-globtest: $(objpfx)globtest
$(SHELL) -e wordexp-tst.sh $(common-objpfx) $(elf-objpfx) \
$(rtld-installed-name)
endif
+endif
-CFLAGS-regex.c = -Wno-unused -Wno-strict-prototypes
+CFLAGS-regex.c = -Wno-strict-prototypes
CFLAGS-getaddrinfo.c = -DRESOLVER
$(objpfx)libposix.a: $(dep-dummy-lib); $(make-dummy-lib)
%.gz: %
gzip -9v -c $< > $@-tmp
mv $@-tmp $@
+
+# Run a test on the header files we use.
+# XXX Please note that for now we ignore the result of this test.
+tests: $(objpfx)annexc
+ -$(dir $<)$(notdir $<) '$(CC)' \
+ '-I../include -I.. $(+sysdep-includes)' > $<.out
+
+$(objpfx)annexc: annexc.c
+ $(native-compile)