File: Makefile.lib.CC

package info (click to toggle)
jade 1.2.1-47
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze
  • size: 8,804 kB
  • ctags: 16,991
  • sloc: cpp: 120,658; sh: 10,522; ansic: 8,228; perl: 378; makefile: 292; sed: 5
file content (24 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
all pure: lib$(LIB).a

# FIXME needs also to depend on template files

REPOSITORY=ptrepository
lib$(LIB).a: $(OBJS) $(COBJS) $(DEPLIBS)
	- $(CXX) $(ALL_CXXFLAGS) $(OBJS) $(COBJS) $(DEPLIBS)
	-rm -f a.out
	if test -d $(REPOSITORY); then \
	  i=1; \
	  tmpdir=/tmp/ar.$$$$; \
	  rm -fr $$tmpdir; \
	  mkdir $$tmpdir; \
	  for o in $(REPOSITORY)/*.o; do \
	    cp $$o $$tmpdir/$$i.o; \
	    i=`expr $$i + 1`; \
	  done ; \
	  $(AR) r $@ $$tmpdir/*.o ; \
	fi
	$(AR) r $@ $?

depend: depend_src
depend.temp: $(GENSRCS)
gen: $(GENSRCS)