diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-01-19 01:36:59 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-01-19 01:36:59 +0000 |
commit | 10b86198725dc9363023d612c9fb1422fe6bf6fe (patch) | |
tree | 83f759644c43371ef72e5f12d929713f58c6b632 /libpthread/linuxthreads | |
parent | 13e84d1073dbc608bbf5aa4b6f6f363402cdcf9f (diff) |
tweak dependencies so the archive is only rebuilt when the object files are updated
Diffstat (limited to 'libpthread/linuxthreads')
-rw-r--r-- | libpthread/linuxthreads/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libpthread/linuxthreads/Makefile b/libpthread/linuxthreads/Makefile index f825e992d..49bb04791 100644 --- a/libpthread/linuxthreads/Makefile +++ b/libpthread/linuxthreads/Makefile @@ -57,11 +57,12 @@ endif COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(COBJS) -all: $(OBJS) $(LIBPTHREAD) +# TODO: fix race condition between subdirs and $(OBJS). +# only applies to pt-machine.o and sh64. -$(LIBPTHREAD): ar-target subdirs +all: $(LIBPTHREAD) -ar-target: $(OBJS) +$(LIBPTHREAD) ar-target: $(OBJS) subdirs $(AR) $(ARFLAGS) $(LIBPTHREAD) $(OBJS) $(COBJS): %.o : %.c @@ -84,5 +85,4 @@ $(patsubst %, _dir_%, $(DIRS)) : dummy $(patsubst %, _dirclean_%, $(DIRS)) : dummy $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean -.PHONY: dummy subdirs - +.PHONY: dummy |