--- CHOLMOD/Demo/Makefile.orig 2013-04-20 07:49:10.121084286 +0200 +++ CHOLMOD/Demo/Makefile 2013-04-20 08:00:24.634389311 +0200 @@ -14,38 +14,30 @@ # CAMD and CCOLAMD can be installed without METIS, but are optional. I_WITH_PARTITION = LIB_WITH_PARTITION = -CONFIG = -DNPARTITION -DNCAMD +CONFIG = -DNPARTITION # check if CAMD/CCOLAMD and METIS are requested and available ifeq (,$(findstring -DNCAMD, $(CHOLMOD_CONFIG))) - # CAMD and CCOLAMD are requested. See if they are available - ifeq (../../CAMD, $(wildcard ../../CAMD)) - ifeq (../../CCOLAMD, $(wildcard ../../CCOLAMD)) + # CAMD and CCOLAMD are requested. Assume they are available # CAMD and CCOLAMD are requested and available LIB_WITH_PARTITION = \ - ../../CCOLAMD/Lib/libccolamd.a ../../CAMD/Lib/libcamd.a + -lccolamd -lcamd I_WITH_PARTITION = \ - -I../../CCOLAMD/Include -I../../CAMD/Include + -I/usr/include/ccolamd -I/usr/include/camd CONFIG = -DNPARTITION # check if METIS is requested and available ifeq (,$(findstring -DNPARTITION, $(CHOLMOD_CONFIG))) - # METIS is requested. See if it is available - ifeq ($(METIS_PATH), $(wildcard $(METIS_PATH))) + # METIS is requested. Assume it is available # METIS is available - LIB_WITH_PARTITION = $(METIS) \ - ../../CCOLAMD/Lib/libccolamd.a ../../CAMD/Lib/libcamd.a - I_WITH_PARTITION = -I$(METIS_PATH)/Lib \ - -I../../CCOLAMD/Include -I../../CAMD/Include + LIB_WITH_PARTITION = -lmetis -lccolamd -lcamd + I_WITH_PARTITION = -I/usr/include/metis \ + -I/usr/include/ccolamd -I/usr/include/camd CONFIG = - endif endif - endif - endif endif #------------------------------------------------------------------------------- -LIB2 = ../Lib/libcholmod.a ../../AMD/Lib/libamd.a ../../COLAMD/Lib/libcolamd.a \ - ../../SuiteSparse_config/libsuitesparseconfig.a \ +LIB2 = ../Lib/libcholmod.la -lsuitesparseconfig -lamd -lcolamd \ $(LIB_WITH_PARTITION) $(LAPACK) $(BLAS) $(XERBLA) $(LIB) #------------------------------------------------------------------------------- @@ -88,39 +80,26 @@ #------------------------------------------------------------------------------- # See below if you compile with -DNPARTITION library: - ( cd ../../SuiteSparse_config/xerbla ; $(MAKE) ) - ( cd ../../SuiteSparse_config ; $(MAKE) ) ( cd ../Lib ; $(MAKE) ) - ( cd ../../AMD ; $(MAKE) library ) - ( cd ../../COLAMD ; $(MAKE) library ) -ifneq (,$(findstring -DCAMD, $(CONFIG))) -else - ( cd ../../CCOLAMD ; $(MAKE) library ) - ( cd ../../CAMD ; $(MAKE) library ) -endif -ifneq (,$(findstring -DNPARTITION, $(CONFIG))) -else - ( cd $(METIS_PATH) && $(MAKE) ) -endif #------------------------------------------------------------------------------- I = -I../Include cholmod_demo: library cholmod_demo.c cholmod_demo.h - $(C) -o cholmod_demo $(I) cholmod_demo.c $(LIB2) + libtool --tag=CC --mode=link $(C) $(LDFLAGS) -o cholmod_demo $(I) cholmod_demo.c $(LIB2) cholmod_simple: library cholmod_simple.c - $(C) -o cholmod_simple $(I) cholmod_simple.c $(LIB2) + libtool --tag=CC --mode=link $(C) $(LDFLAGS) -o cholmod_simple $(I) cholmod_simple.c $(LIB2) cholmod_l_demo: library cholmod_l_demo.c cholmod_demo.h - $(C) -o cholmod_l_demo $(I) cholmod_l_demo.c $(LIB2) + libtool --tag=CC --mode=link $(C) $(LDFLAGS) -o cholmod_l_demo $(I) cholmod_l_demo.c $(LIB2) readhb: readhb.f - $(F77) $(FFLAGS) -o readhb readhb.f + $(F77) $(LDFLAGS) $(FFLAGS) -o readhb readhb.f readhb2: readhb2.f - $(F77) $(FFLAGS) -O -o readhb2 readhb2.f + $(F77) $(LDFLAGS) -O $(FFLAGS) -o readhb2 readhb2.f reade: reade.f - $(F77) $(FFLAGS) -O -o reade reade.f + $(F77) $(LDFLAGS) -O $(FFLAGS) -o reade reade.f --- CHOLMOD/Lib/Makefile.orig 2014-10-02 21:02:42.319207445 +0200 +++ CHOLMOD/Lib/Makefile 2014-10-02 21:06:16.905865107 +0200 @@ -43,14 +43,14 @@ C = $(CC) $(CF) $(CHOLMOD_CONFIG) $(CONFIG) -all: libcholmod.a +all: libcholmod.la -library: libcholmod.a +library: libcholmod.la purge: distclean distclean: clean - - $(RM) libcholmod.a + - $(RM) libcholmod.la clean: - $(RM) $(CLEAN) @@ -149,9 +149,13 @@ # to compile just the double/int version, use OBJ = $(DI) OBJ = $(DI) $(DL) -libcholmod.a: $(OBJ) - $(ARCHIVE) libcholmod.a $(OBJ) - - $(RANLIB) libcholmod.a +libcholmod.la: $(OBJ) + libtool --tag=CC --mode=link $(CC) $(LDFLAGS) -o libcholmod.la -rpath $(libdir) $(OBJ:.o=.lo) -lm \ + -lamd -lcolamd -lsuitesparseconfig $(LIB_WITH_PARTITION) $(LAPACK) $(BLAS) + +install: libcholmod.la + install -d $(DESTDIR)$(libdir) + libtool --mode=install cp libcholmod.la $(DESTDIR)$(libdir)/libcholmod.la $(OBJ): $(INC) @@ -160,24 +164,24 @@ #------------------------------------------------------------------------------- cholmod_check.o: ../Check/cholmod_check.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_read.o: ../Check/cholmod_read.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_write.o: ../Check/cholmod_write.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< #------------------------------------------------------------------------------- cholmod_l_check.o: ../Check/cholmod_check.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_read.o: ../Check/cholmod_read.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_write.o: ../Check/cholmod_write.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ #------------------------------------------------------------------------------- @@ -185,98 +189,98 @@ #------------------------------------------------------------------------------- cholmod_common.o: ../Core/cholmod_common.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_dense.o: ../Core/cholmod_dense.c ../Core/t_cholmod_dense.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_factor.o: ../Core/cholmod_factor.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_change_factor.o: ../Core/cholmod_change_factor.c \ ../Core/t_cholmod_change_factor.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_memory.o: ../Core/cholmod_memory.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_sparse.o: ../Core/cholmod_sparse.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_complex.o: ../Core/cholmod_complex.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_transpose.o: ../Core/cholmod_transpose.c ../Core/t_cholmod_transpose.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_band.o: ../Core/cholmod_band.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_copy.o: ../Core/cholmod_copy.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_triplet.o: ../Core/cholmod_triplet.c ../Core/t_cholmod_triplet.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_error.o: ../Core/cholmod_error.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_aat.o: ../Core/cholmod_aat.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_add.o: ../Core/cholmod_add.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_version.o: ../Core/cholmod_version.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< #------------------------------------------------------------------------------- cholmod_l_common.o: ../Core/cholmod_common.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_dense.o: ../Core/cholmod_dense.c ../Core/t_cholmod_dense.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_factor.o: ../Core/cholmod_factor.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_change_factor.o: ../Core/cholmod_change_factor.c \ ../Core/t_cholmod_change_factor.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_memory.o: ../Core/cholmod_memory.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_sparse.o: ../Core/cholmod_sparse.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_complex.o: ../Core/cholmod_complex.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_transpose.o: ../Core/cholmod_transpose.c ../Core/t_cholmod_transpose.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_band.o: ../Core/cholmod_band.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_copy.o: ../Core/cholmod_copy.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_triplet.o: ../Core/cholmod_triplet.c ../Core/t_cholmod_triplet.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_error.o: ../Core/cholmod_error.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_aat.o: ../Core/cholmod_aat.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_add.o: ../Core/cholmod_add.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_version.o: ../Core/cholmod_version.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ #------------------------------------------------------------------------------- @@ -284,116 +288,116 @@ #------------------------------------------------------------------------------- cholmod_amd.o: ../Cholesky/cholmod_amd.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_analyze.o: ../Cholesky/cholmod_analyze.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_colamd.o: ../Cholesky/cholmod_colamd.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_etree.o: ../Cholesky/cholmod_etree.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_factorize.o: ../Cholesky/cholmod_factorize.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_postorder.o: ../Cholesky/cholmod_postorder.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_rcond.o: ../Cholesky/cholmod_rcond.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_resymbol.o: ../Cholesky/cholmod_resymbol.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_rowcolcounts.o: ../Cholesky/cholmod_rowcolcounts.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_solve.o: ../Cholesky/cholmod_solve.c ../Cholesky/t_cholmod_lsolve.c \ ../Cholesky/t_cholmod_ltsolve.c ../Cholesky/t_cholmod_solve.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_spsolve.o: ../Cholesky/cholmod_spsolve.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_rowfac.o: ../Cholesky/cholmod_rowfac.c ../Cholesky/t_cholmod_rowfac.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< #------------------------------------------------------------------------------- cholmod_l_amd.o: ../Cholesky/cholmod_amd.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_analyze.o: ../Cholesky/cholmod_analyze.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_colamd.o: ../Cholesky/cholmod_colamd.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_etree.o: ../Cholesky/cholmod_etree.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_factorize.o: ../Cholesky/cholmod_factorize.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_postorder.o: ../Cholesky/cholmod_postorder.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_rcond.o: ../Cholesky/cholmod_rcond.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_resymbol.o: ../Cholesky/cholmod_resymbol.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_rowcolcounts.o: ../Cholesky/cholmod_rowcolcounts.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_solve.o: ../Cholesky/cholmod_solve.c ../Cholesky/t_cholmod_lsolve.c \ ../Cholesky/t_cholmod_ltsolve.c ../Cholesky/t_cholmod_solve.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_spsolve.o: ../Cholesky/cholmod_spsolve.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_rowfac.o: ../Cholesky/cholmod_rowfac.c ../Cholesky/t_cholmod_rowfac.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ #------------------------------------------------------------------------------- # Partition Module: #------------------------------------------------------------------------------- cholmod_ccolamd.o: ../Partition/cholmod_ccolamd.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_csymamd.o: ../Partition/cholmod_csymamd.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_camd.o: ../Partition/cholmod_camd.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_metis.o: ../Partition/cholmod_metis.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_nesdis.o: ../Partition/cholmod_nesdis.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< #------------------------------------------------------------------------------- cholmod_l_ccolamd.o: ../Partition/cholmod_ccolamd.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_csymamd.o: ../Partition/cholmod_csymamd.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_camd.o: ../Partition/cholmod_camd.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_metis.o: ../Partition/cholmod_metis.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_nesdis.o: ../Partition/cholmod_nesdis.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ #------------------------------------------------------------------------------- @@ -401,88 +405,88 @@ #------------------------------------------------------------------------------- cholmod_horzcat.o: ../MatrixOps/cholmod_horzcat.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_norm.o: ../MatrixOps/cholmod_norm.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_scale.o: ../MatrixOps/cholmod_scale.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_drop.o: ../MatrixOps/cholmod_drop.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_sdmult.o: ../MatrixOps/cholmod_sdmult.c \ ../MatrixOps/t_cholmod_sdmult.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_ssmult.o: ../MatrixOps/cholmod_ssmult.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_submatrix.o: ../MatrixOps/cholmod_submatrix.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_vertcat.o: ../MatrixOps/cholmod_vertcat.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_symmetry.o: ../MatrixOps/cholmod_symmetry.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< #------------------------------------------------------------------------------- cholmod_l_horzcat.o: ../MatrixOps/cholmod_horzcat.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_norm.o: ../MatrixOps/cholmod_norm.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_scale.o: ../MatrixOps/cholmod_scale.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_drop.o: ../MatrixOps/cholmod_drop.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_sdmult.o: ../MatrixOps/cholmod_sdmult.c \ ../MatrixOps/t_cholmod_sdmult.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_ssmult.o: ../MatrixOps/cholmod_ssmult.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_submatrix.o: ../MatrixOps/cholmod_submatrix.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_vertcat.o: ../MatrixOps/cholmod_vertcat.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_symmetry.o: ../MatrixOps/cholmod_symmetry.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ #------------------------------------------------------------------------------- # Modify Module: #------------------------------------------------------------------------------- cholmod_rowadd.o: ../Modify/cholmod_rowadd.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_rowdel.o: ../Modify/cholmod_rowdel.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< cholmod_updown.o: ../Modify/cholmod_updown.c \ ../Modify/t_cholmod_updown.c ../Modify/t_cholmod_updown_numkr.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) $(I) -c $< #------------------------------------------------------------------------------- cholmod_l_rowadd.o: ../Modify/cholmod_rowadd.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_rowdel.o: ../Modify/cholmod_rowdel.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ cholmod_l_updown.o: ../Modify/cholmod_updown.c \ ../Modify/t_cholmod_updown.c ../Modify/t_cholmod_updown_numkr.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG $(I) -c $< -o $@ #------------------------------------------------------------------------------- @@ -492,27 +496,27 @@ cholmod_super_numeric.o: ../Supernodal/cholmod_super_numeric.c \ ../GPU/t_cholmod_gpu.c \ ../Supernodal/t_cholmod_super_numeric.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_super_symbolic.o: ../Supernodal/cholmod_super_symbolic.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_super_solve.o: ../Supernodal/cholmod_super_solve.c \ ../Supernodal/t_cholmod_super_solve.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< #------------------------------------------------------------------------------- cholmod_l_super_numeric.o: ../Supernodal/cholmod_super_numeric.c \ ../Supernodal/t_cholmod_super_numeric.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_super_symbolic.o: ../Supernodal/cholmod_super_symbolic.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ cholmod_l_super_solve.o: ../Supernodal/cholmod_super_solve.c \ ../Supernodal/t_cholmod_super_solve.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@ #------------------------------------------------------------------------------- # GPU module @@ -525,12 +529,12 @@ cholmod_gpu_kernels.o: ../GPU/cholmod_gpu_kernels.c \ ../GPU/cholmod_gpu_kernels.cu - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< $(NVCC) -I../../SuiteSparse_config -Xcompiler -fPIC -O3 -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -c ../GPU/cholmod_gpu_kernels.cu cholmod_gpu.o: ../GPU/cholmod_gpu.c - $(C) -c $(I) $< + libtool --tag=CC --mode=compile $(C) -c $(I) $< cholmod_l_gpu.o: ../GPU/cholmod_gpu.c - $(C) -DDLONG -c $(I) $< -o $@ + libtool --tag=CC --mode=compile $(C) -DDLONG -c $(I) $< -o $@