1 all pure: lib$(LIB).a
2 
3 # FIXME needs also to depend on template files
4 
5 REPOSITORY=ptrepository
6 lib$(LIB).a: $(OBJS) $(COBJS) $(DEPLIBS)
7 	- $(CXX) $(ALL_CXXFLAGS) $(OBJS) $(COBJS) $(DEPLIBS)
8 	-rm -f a.out
9 	if test -d $(REPOSITORY); then \
10 	  i=1; \
11 	  tmpdir=/tmp/ar.$$$$; \
12 	  rm -fr $$tmpdir; \
13 	  mkdir $$tmpdir; \
14 	  for o in $(REPOSITORY)/*.o; do \
15 	    cp $$o $$tmpdir/$$i.o; \
16 	    i=`expr $$i + 1`; \
17 	  done ; \
18 	  $(AR) r $@ $$tmpdir/*.o ; \
19 	fi
20 	$(AR) r $@ $?
21 
22 depend: depend_src
23 depend.temp: $(GENSRCS)
24 gen: $(GENSRCS)
25