summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/inet/rpc/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/libc/inet/rpc/Makefile b/libc/inet/rpc/Makefile
index ade5d2422..b3acc3b08 100644
--- a/libc/inet/rpc/Makefile
+++ b/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