From f535dd028f68e65f56f999aedbd397c3d0eb4845 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 8 Jun 1999 14:43:39 +0000 Subject: Update. 1999-06-08 Andreas Jaeger * grp/Makefile: Add rules for tst_fgetgrent. * grp/tst_fgetgrent.c: Rewritten to read only one file. * grp/tst_fgetgrent.sh: New file. --- grp/Makefile | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'grp/Makefile') 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 -- cgit v1.1