SCM

SCM Repository

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

View of /pkg/Matrix/src/Makevars

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2864 - (download) (annotate)
Tue Jan 29 21:45:16 2013 UTC (7 years, 11 months ago) by mmaechler
File size: 1060 byte(s)
mini patch for "race condition" bug with parallel make: https://r-forge.r-project.org/tracker/?func=detail&atid=294&aid=1723&group_id=61]
# -*- Makefile -*-

PKG_CPPFLAGS = -DNTIMER -I./SuiteSparse_config
## we use the BLAS and the LAPACK library:
PKG_LIBS = $(SUBLIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

MkInclude = $(R_HOME)/etc${R_ARCH}/Makeconf

include scripts/SOURCES_C.mkf

OBJECTS = $(SOURCES_C:.c=.o)
SUBDIRS = CHOLMOD COLAMD AMD SuiteSparse_config
SUBLIBS = $(SUBDIRS:=.a)

all: $(SHLIB)
## making src/*.o and in sublibs can be done simultaneously
# for development:
#$(SHLIB): $(OBJECTS) sublibraries
# for real:
$(SHLIB): $(OBJECTS) sublibs

## We have to clean here, to clean up between architectures:
## INSTALL only cleans src/*.o src/*$(SHLIB_EXT) for each arch
sublibs: subclean sublibraries

sublibraries: subclean
	@for d in $(SUBDIRS); do \
	  (cd $${d} && CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" MkInclude="$(MkInclude)" $(MAKE) library) || exit 1; \
	done

clean: subclean
	@-rm -rf .libs _libs
	@-rm -f *.o $(SHLIB)

subclean:
	@-rm -f *.a
	@for d in $(SUBDIRS); do \
	  (cd $${d} && MkInclude="$(MkInclude)" $(MAKE) clean) || exit 1; \
	done


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