⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 提供矩阵类的函数库
💻
字号:
include ../../../make.inc

#######################################################################
#  This is the makefile to create a library of the least squares
#  routines from LAPACK that have been instrumented to time specific
#  parts of the code and count operations. 
#  The files are organized as follows:
#
#     SLINSRC -- Single precision real instrumented LAPACK routines
#     CLINSRC -- Single precision complex instrumented LAPACK routines
#     DLINSRC -- Double precision real instrumented LAPACK routines
#     ZLINSRC -- Double precision complex instrumented LAPACK routines
#
#  The library can be set up to include routines for any combination
#  of the four precisions.  To create or add to the library, enter make
#  followed by one or more of the precisions desired.  Some examples:
#       make single
#       make single complex
#       make single double complex complex16
#  Alternatively, the command
#       make
#  without any arguments creates a library of all four precisions.
#  The library is called
#       linsrc.a
#  and is created at the next higher directory level.
#
#  To remove the object files after the library is created, enter
#       make clean
#  On some systems, you can force the source files to be recompiled by
#  entering (for example)
#       make single FRC=FRC
#
#######################################################################

SCAUX = sopla.o sopla2.o

DZAUX = dopla.o dopla2.o
 
SLINSRC = \
   sgels.o  sgelsd.o sgelss.o sgelsx.o sgelsy.o slaic1.o slals0.o \
   slalsa.o slalsd.o

CLINSRC = \
   cgels.o  cgelsd.o cgelss.o cgelsx.o cgelsy.o claic1.o clals0.o \
   clalsa.o clalsd.o

DLINSRC = \
   dgels.o  dgelsd.o dgelss.o dgelsx.o dgelsy.o dlaic1.o dlals0.o \
   dlalsa.o dlalsd.o

ZLINSRC = \
   zgels.o  zgelsd.o zgelss.o zgelsx.o zgelsy.o zlaic1.o zlals0.o \
   zlalsa.o zlalsd.o

all: single complex double complex16

single: $(SLINSRC) $(SCAUX)
	$(ARCH) $(ARCHFLAGS) ../$(LINSRCLIB) $(SLINSRC) $(SCAUX)
	$(RANLIB) ../$(LINSRCLIB)

complex: $(CLINSRC) $(SCAUX)
	$(ARCH) $(ARCHFLAGS) ../$(LINSRCLIB) $(CLINSRC) $(SCAUX)
	$(RANLIB) ../$(LINSRCLIB)

double: $(DLINSRC) $(DZAUX)
	$(ARCH) $(ARCHFLAGS) ../$(LINSRCLIB) $(DLINSRC) $(DZAUX)
	$(RANLIB) ../$(LINSRCLIB)

complex16: $(ZLINSRC) $(DZAUX)
	$(ARCH) $(ARCHFLAGS) ../$(LINSRCLIB) $(ZLINSRC) $(DZAUX)
	$(RANLIB) ../$(LINSRCLIB)

$(SCAUX): $(FRC)
$(DZAUX): $(FRC)
$(SLINSRC): $(FRC)
$(CLINSRC): $(FRC)
$(DLINSRC): $(FRC)
$(ZLINSRC): $(FRC)

FRC:
	@FRC=$(FRC)

clean:
	rm -f *.o

.c.o:
	$(CC) -c $(CFLAGS) $<

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -