From 99e973a956a6d682f3014d1b35a8ff4cb557bd0e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 18 Jan 2005 23:30:31 +0000 Subject: rework dependencies so the archive is re-created only when the object files have been updated --- librt/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'librt') diff --git a/librt/Makefile b/librt/Makefile index b84520af3..10b371cb7 100644 --- a/librt/Makefile +++ b/librt/Makefile @@ -4,7 +4,6 @@ TOPDIR=../ include $(TOPDIR)Rules.mak -LIBC=$(TOPDIR)libc.a LIBRT=librt.a LIBRT_SHARED=librt.so @@ -18,11 +17,9 @@ CSRC=mq_open.c mq_close.c mq_unlink.c mq_getsetattr.c \ timer_settime.c timer_gettime.c timer_getoverr.c OBJS=$(patsubst %.c,%.o, $(CSRC)) -all: $(OBJS) $(LIBC) +all: $(LIBRT) -$(LIBC): ar-target - -ar-target: $(OBJS) +$(LIBRT) ar-target: $(OBJS) $(AR) $(ARFLAGS) $(LIBRT) $(OBJS) $(INSTALL) -d $(TOPDIR)lib $(RM) $(TOPDIR)lib/$(LIBRT) -- cgit v1.2.3