Parcourir la source

Fix broken dependancies.
-Erik

Eric Andersen il y a 23 ans
Parent
commit
263f0d0f46
1 fichiers modifiés avec 7 ajouts et 4 suppressions
  1. 7 4
      libc/inet/rpc/Makefile

+ 7 - 4
libc/inet/rpc/Makefile

@@ -36,16 +36,19 @@ CSRC = auth_none.c auth_unix.c authunix_prot.c \
 	svc_tcp.c svc_udp.c xdr.c xdr_array.c xdr_float.c \
 	xdr_mem.c xdr_rec.c xdr_reference.c xdr_stdio.c
 COBJS=$(patsubst %.c,%.o, $(CSRC))
+OBJS=$(COBJS)
 
-all: $(COBJS) $(LIBC)
+all: ar-target
+
+$(LIBC): $(OBJS)
+
+ar-target: $(LIBC)
+	$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
 
 $(COBJS): %.o : %.c
 	$(CC) $(CFLAGS) -c $< -o $@
 	$(STRIPTOOL) -x -R .note -R .comment $*.o
 
-$(LIBC): $(COBJS)
-	$(AR) $(ARFLAGS) $(LIBC) $(COBJS)
-
 clean:
 	rm -f *.[oa] *~ core