SCM

SCM Repository

[matrix] Annotation of /pkg/Matrix/src/Makevars
ViewVC logotype

Annotation of /pkg/Matrix/src/Makevars

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2297 - (view) (download)
Original Path: pkg/src/Makevars

1 : mmaechler 2289 # -*- Makefile -*-
2 :    
3 :     PKG_CPPFLAGS = -I./UFconfig
4 :     ## we use the BLAS and the LAPACK library:
5 :     PKG_LIBS = $(SUBLIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
6 :    
7 :     MkInclude = $(R_HOME)/etc${R_ARCH}/Makeconf
8 :    
9 : mmaechler 2293 include scripts/SOURCES_C.mkf
10 : mmaechler 2289
11 :     OBJECTS = $(SOURCES_C:.c=.o)
12 :     SUBDIRS = SPQR CHOLMOD COLAMD AMD
13 :     SUBLIBS = $(SUBDIRS:=.a)
14 :    
15 : mmaechler 2297 all: $(SHLIB)
16 :     ## making src/*.o and in sublibs can be done simultaneously
17 :     $(SHLIB): $(OBJECTS) sublibs
18 : mmaechler 2289
19 : mmaechler 2297 ## We have to clean here, to clean up between architectures:
20 :     ## INSTALL only cleans src/*.o src/*$(SHLIB_EXT) for each arch
21 :     sublibs: subclean
22 : mmaechler 2289 @for d in $(SUBDIRS); do \
23 :     (cd $${d} && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" MkInclude="$(MkInclude)" $(MAKE) library) || exit 1; \
24 :     done
25 :    
26 : mmaechler 2297 clean: subclean
27 : mmaechler 2289 @-rm -rf .libs _libs
28 : mmaechler 2297 @-rm -f *.o $(SHLIB)
29 :    
30 :     subclean:
31 :     @-rm -f *.a
32 : mmaechler 2289 @for d in $(SUBDIRS); do \
33 :     (cd $${d} && MkInclude="$(MkInclude)" $(MAKE) clean) || exit 1; \
34 :     done
35 :    
36 : mmaechler 2297
37 : mmaechler 2293 include scripts/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