summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-07 01:31:32 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-07 01:31:32 +0000
commited004f7af354ebf0ddb3b271619601555b5176fb (patch)
treead8b1736bf1d89c2753f35fcbb2c762557c6bd65
parent252277d7506fef610326b17ddbf5d1d42d244e52 (diff)
Dependancy fixup, and remove some obcolete files.
-rw-r--r--libc/pwd_grp/Makefile18
-rw-r--r--libc/pwd_grp/config.h2
2 files changed, 13 insertions, 7 deletions
diff --git a/libc/pwd_grp/Makefile b/libc/pwd_grp/Makefile
index a8a916525..e5977c5ea 100644
--- a/libc/pwd_grp/Makefile
+++ b/libc/pwd_grp/Makefile
@@ -24,14 +24,20 @@ TOPDIR=../
include $(TOPDIR)Rules.make
LIBC=$(TOPDIR)libc.a
-OBJ=__getpwent.o pwent.o getpwnam.o getpwuid.o putpwent.o getpw.o fgetpwent.o \
- __getgrent.o grent.o getgrnam.o getgrgid.o fgetgrent.o initgroups.o \
- utent.o
+CSRC=__getpwent.c pwent.c getpwnam.c getpwuid.c putpwent.c getpw.c fgetpwent.c \
+ __getgrent.c grent.c getgrnam.c getgrgid.c fgetgrent.c initgroups.c \
+ utent.c
+COBJS=$(patsubst %.c,%.o, $(CSRC))
-all: $(OBJ) $(LIBC)
-$(LIBC): $(OBJ)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJ)
+all: $(COBJS) $(LIBC)
+
+$(LIBC): $(COBJS)
+ $(AR) $(ARFLAGS) $(LIBC) $(COBJS)
+
+$(COBJS): Makefile
+__getgrent.c: config.h
+initgroups.c: config.h
clean:
rm -f *.[oa] *~ core
diff --git a/libc/pwd_grp/config.h b/libc/pwd_grp/config.h
index 699434b2a..eb029a31a 100644
--- a/libc/pwd_grp/config.h
+++ b/libc/pwd_grp/config.h
@@ -1,5 +1,5 @@
/*
- * config-grp.h - This file is part of the libc-8086/grp package for ELKS,
+ * config.h - This file is part of the libc-8086/grp package for ELKS,
* Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
*
* This library is free software; you can redistribute it and/or