aboutsummaryrefslogtreecommitdiff
path: root/grp/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-06-08 14:43:39 +0000
committerUlrich Drepper <drepper@redhat.com>1999-06-08 14:43:39 +0000
commitf535dd028f68e65f56f999aedbd397c3d0eb4845 (patch)
tree4b02cd654c4d769b9f87e4e09d49ec78e2a49b6e /grp/Makefile
parentf5508a15fd0d28806124e9b6e9fab6f99ac087a0 (diff)
downloadglibc-f535dd028f68e65f56f999aedbd397c3d0eb4845.zip
glibc-f535dd028f68e65f56f999aedbd397c3d0eb4845.tar.gz
glibc-f535dd028f68e65f56f999aedbd397c3d0eb4845.tar.bz2
Update.
1999-06-08 Andreas Jaeger <aj@arthur.rhein-neckar.de> * grp/Makefile: Add rules for tst_fgetgrent. * grp/tst_fgetgrent.c: Rewritten to read only one file. * grp/tst_fgetgrent.sh: New file.
Diffstat (limited to 'grp/Makefile')
-rw-r--r--grp/Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/grp/Makefile b/grp/Makefile
index 5ca4953..c4274ed 100644
--- a/grp/Makefile
+++ b/grp/Makefile
@@ -22,11 +22,20 @@
subdir := grp
headers := grp.h
+distribute := tst_fgetgrent.c tst_fgetgrent.sh
+
routines := fgetgrent initgroups setgroups \
getgrent getgrgid getgrnam putgrent \
getgrent_r getgrgid_r getgrnam_r fgetgrent_r
-tests := testgrp tst_fgetgrent
+include ../Makeconfig
+
+tests := testgrp
+
+ifeq (yes,$(build-shared))
+test-srcs := tst_fgetgrent
+endif
+
include ../Rules
@@ -42,3 +51,15 @@ CFLAGS-getgrgid_r.c = -DUSE_NSCD=1
CFLAGS-getgrnam_r.c = -DUSE_NSCD=1
endif
+
+ifeq (no,$(cross-compiling))
+# tst_fgetgrent currently only works with shared libraries
+ifeq (yes,$(build-shared))
+.PHONY: do-tst-fgetgrent
+tests: do-tst-fgetgrent
+do-tst-fgetgrent: $(objpfx)tst_fgetgrent
+ $(SHELL) -e tst_fgetgrent.sh $(common-objpfx) $(elf-objpfx) \
+ $(rtld-installed-name)
+
+endif
+endif