Browse Source

More cleanups

Eric Andersen 24 years ago
parent
commit
7f7410d05a
4 changed files with 11 additions and 7 deletions
  1. 1 1
      Makefile
  2. 0 2
      libc/inet/rpc/Makefile
  3. 3 0
      libc/inet/rpc/auth_unix.c
  4. 7 4
      libc/misc/regex/Makefile

+ 1 - 1
Makefile

@@ -21,7 +21,7 @@
 # respective copyright holders.
 
 DIRS = error getent malloc misc regex stdio \
-	    string termios time sysdeps #rpc
+	    string termios time sysdeps shm #rpc
 all: libc.a
 
 libc.a: headers subdirs

+ 0 - 2
libc/inet/rpc/Makefile

@@ -42,8 +42,6 @@ all: $(COBJS) $(LIBC)
 $(LIBC): $(COBJS)
 	$(AR) $(ARFLAGS) $(LIBC) $(COBJS)
 
-$(COBJS): $(CSRC)
-
 clean:
 	rm -f *.[oa] *~ core
 

+ 3 - 0
libc/inet/rpc/auth_unix.c

@@ -44,6 +44,9 @@ static char sccsid[] = "@(#)auth_unix.c 1.19 87/08/11 Copyr 1984 Sun Micro";
  */
 
 #include <stdio.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <string.h>
 
 #include <rpc/types.h>
 #include <rpc/xdr.h>

+ 7 - 4
libc/misc/regex/Makefile

@@ -24,12 +24,15 @@ TOPDIR=../
 include $(TOPDIR)Rules.make
 LIBC=$(TOPDIR)libc.a
 
-OBJ=rx.o
+CSRC=rx.c
+COBJS=$(patsubst %.c,%.o, $(CSRC))
 
-all: $(OBJ) $(LIBC)
+all: $(COBJS) $(LIBC)
 
-$(LIBC): $(OBJ)
-	$(AR) $(ARFLAGS) $(LIBC) $(OBJ)
+$(LIBC): $(COBJS)
+	$(AR) $(ARFLAGS) $(LIBC) $(COBJS)
+
+$(COBJS): Makefile
 
 clean:
 	rm -f *.[oa] *~ core