SCM

SCM Repository

[matrix] Annotation of /branches/Matrix-mer2/src/Makefile
ViewVC logotype

Annotation of /branches/Matrix-mer2/src/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1140 - (view) (download)

1 : bates 10 #
2 :     pkg = Matrix
3 :    
4 : bates 1049 PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS)
5 : bates 329 include SOURCES_C.mkf
6 : maechler 971
7 : bates 1049 ## zherk.f and lsame.f are part of BLAS, but not of R's BLAS sources
8 : bates 1140 ifeq (, $(strip $(BLAS_LIBS)))
9 : bates 1049 SOURCES_BLAS = zherk.f lsame.f
10 :     else
11 :     SOURCES_BLAS =
12 :     endif
13 : bates 1140
14 : bates 1049 ## zpotrf.f and zpotf2.f are part of LAPACK, but not of R's LAPACK sources
15 : bates 1140 ifeq (, $(findstring -lRlapack, $(LAPACK_LIBS)))
16 :     SOURCES_LAPACK =
17 : bates 1049 else
18 : bates 1140 SOURCES_LAPACK = zpotf2.f zpotrf.f
19 : bates 1049 endif
20 : bates 1140
21 : bates 1049 SOURCES_F = $(SOURCES_BLAS) $(SOURCES_LAPACK)
22 : maechler 971
23 : bates 967 OBJECTS = $(SOURCES_C:.c=.o) $(SOURCES_F:.f=.o)
24 : bates 10 SHLIB = $(pkg)$(SHLIB_EXT)
25 : bates 1028 SUBDIRS = CHOLMOD UMFPACK COLAMD CCOLAMD AMD Metis LDL
26 : bates 10 SUBLIBS = $(SUBDIRS:=.a)
27 : bates 525 SUBSTAMP = $(SUBDIRS:=.stamp)
28 : bates 10
29 :     $(SHLIB): $(OBJECTS) $(SUBLIBS)
30 :     $(SHLIB_LINK) -o $@ $(OBJECTS) $(SUBLIBS) $(ALL_LIBS)
31 :    
32 :     all: $(SHLIB)
33 :    
34 :     mostlyclean: clean
35 :    
36 : bates 525 $(SUBLIBS): $(SUBSTAMP)
37 : bates 10 @for d in $(SUBDIRS); do \
38 : bates 1028 (cd $${d} && MkInclude=$(R_HOME)/etc/Makeconf $(MAKE) lib) || exit 1; \
39 : bates 525 touch $${d}.stamp; \
40 : bates 10 done
41 :    
42 : maechler 956 $(SUBSTAMP):
43 : bates 531 touch $(SUBSTAMP)
44 :    
45 : bates 1140 clean:
46 : bates 10 @-rm -rf .libs _libs
47 : maechler 956 @-rm -f *.o *.so *.a $(SUBSTAMP)
48 : bates 448 @for d in $(SUBDIRS); do \
49 :     (cd $${d} && $(MAKE) clean) || exit 1; \
50 : bates 525 rm -f $${d}.stamp; \
51 : bates 448 done
52 : bates 10
53 : bates 354 include DEPS.mkf

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge