Browse Source

rework the dependencies so libpthread_db.a is only rebuilt when the object files get updated

Mike Frysinger 19 years ago
parent
commit
2216a1d79e
1 changed files with 2 additions and 6 deletions
  1. 2 6
      libpthread/linuxthreads_db/Makefile

+ 2 - 6
libpthread/linuxthreads_db/Makefile

@@ -57,11 +57,9 @@ CSRC=	td_init.c td_log.c td_ta_delete.c td_ta_get_nthreads.c		\
 COBJS=$(patsubst %.c,%.o, $(CSRC))
 OBJS=$(COBJS)
 
-all: $(OBJS) $(LIBTHREAD_DB)
+all: $(LIBTHREAD_DB)
 
-$(LIBTHREAD_DB): ar-target
-
-ar-target: $(OBJS)
+$(LIBTHREAD_DB) ar-target: $(OBJS)
 	$(AR) $(ARFLAGS) $(LIBTHREAD_DB) $(OBJS)
 
 $(COBJS): %.o : %.c
@@ -70,5 +68,3 @@ $(COBJS): %.o : %.c
 
 clean:
 	$(RM) *.[oa] *~ core
-
-