-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmp - creating CMake lists for bundled libs
- Loading branch information
1 parent
b48d5c3
commit 200b4d9
Showing
7 changed files
with
199 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
############################################################################ | ||
# | ||
# Program: ARPACK | ||
# | ||
# Module: Makefile | ||
# | ||
# Purpose: Sources Makefile | ||
# | ||
# Creation date: February 22, 1996 | ||
# | ||
# Modified: 2021 | ||
# | ||
# Send bug reports, comments or suggestions to arpack.caam.rice.edu | ||
# | ||
############################################################################ | ||
|
||
project(ARPACK Fortran) | ||
|
||
add_library(ARPACK) | ||
|
||
target_sources(ARPACK PUBLIC | ||
dgetv0.f dlaqrb.f dstqrb.f dsortc.f dsortr.f dstatn.f dstats.f | ||
dnaitr.f dnapps.f dnaup2.f dnaupd.f dnconv.f dneigh.f dngets.f | ||
dsaitr.f dsapps.f dsaup2.f dsaupd.f dsconv.f dseigt.f dsgets.f | ||
dneupd.f dseupd.f dsesrt.f dvout.f dmout.f | ||
icnteq.f icopy.f iset.f iswap.f ivout.f second.f | ||
) | ||
|
||
# Required on Unix OS family to be able to be linked into shared libraries. | ||
set_target_properties(${PROJECT_NAME} | ||
PROPERTIES POSITION_INDEPENDENT_CODE ON) | ||
|
||
#target_link_libraries(${PROJECT_NAME}) | ||
|
||
# Expose B's public includes to other subprojects through cache variable. | ||
set(${PROJECT_NAME}_INCLUDE_DIRS ${PROJECT_SOURCE_DIR} | ||
CACHE INTERNAL "${PROJECT_NAME}: Include Directories" FORCE) | ||
|
||
export(TARGETS ARPACK | ||
FILE "${CMAKE_CURRENT_BINARY_DIR}/cmake/ARPACK.cmake" | ||
#EXPORT_LINK_INTERFACE_LIBRARIES #NAMESPACE MathFunctions:: | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
include ../../Makefile.def | ||
|
||
####################################################################### | ||
# This is the makefile to create a library for C-BLAS. | ||
# The files are organized as follows: | ||
# | ||
# SBLAS1 -- Single precision real BLAS routines | ||
# CBLAS1 -- Single precision complex BLAS routines | ||
# DBLAS1 -- Double precision real BLAS routines | ||
# ZBLAS1 -- Double precision complex BLAS routines | ||
# | ||
# CB1AUX -- Real BLAS routines called by complex routines | ||
# ZB1AUX -- D.P. real BLAS routines called by d.p. complex | ||
# routines | ||
# | ||
# ALLBLAS -- Auxiliary routines for Level 2 and 3 BLAS | ||
# | ||
# SBLAS2 -- Single precision real BLAS2 routines | ||
# CBLAS2 -- Single precision complex BLAS2 routines | ||
# DBLAS2 -- Double precision real BLAS2 routines | ||
# ZBLAS2 -- Double precision complex BLAS2 routines | ||
# | ||
# SBLAS3 -- Single precision real BLAS3 routines | ||
# CBLAS3 -- Single precision complex BLAS3 routines | ||
# DBLAS3 -- Double precision real BLAS3 routines | ||
# ZBLAS3 -- Double precision complex BLAS3 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 | ||
# blas.a | ||
# and is created at the next higher directory level. | ||
# | ||
# To remove the object files after the library is created, enter | ||
# make clean | ||
# | ||
####################################################################### | ||
|
||
MYSBLAS2 = smyblas2.o | ||
MYDBLAS2 = dmyblas2.o | ||
MYCBLAS2 = cmyblas2.o | ||
MYZBLAS2 = zmyblas2.o | ||
|
||
SBLAS1 = isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o \ | ||
srot.o sscal.o | ||
SBLAS2 = sgemv.o ssymv.o strsv.o sger.o ssyr2.o | ||
|
||
DBLAS1 = idamax.o dasum.o daxpy.o dcopy.o ddot.o dnrm2.o \ | ||
drot.o dscal.o | ||
DBLAS2 = dgemv.o dsymv.o dtrsv.o dger.o dsyr2.o | ||
|
||
CBLAS1 = icamax.o scasum.o caxpy.o ccopy.o scnrm2.o \ | ||
cscal.o | ||
CBLAS2 = cgemv.o chemv.o ctrsv.o cgerc.o cher2.o | ||
|
||
ZBLAS1 = izamax.o dzasum.o zaxpy.o zcopy.o dznrm2.o \ | ||
zscal.o dcabs1.o | ||
ZBLAS2 = zgemv.o zhemv.o ztrsv.o zgerc.o zher2.o | ||
|
||
|
||
all: double | ||
|
||
single: $(SBLAS1) $(SBLAS2) $(SBLAS3) $(MYSBLAS2) | ||
$(AR) $(ARFLAGS) $(CBLAS_LIBRARY) $(SBLAS1) $(ALLBLAS) \ | ||
$(SBLAS2) $(SBLAS3) $(MYSBLAS2) | ||
$(RANLIB) $(RANLIBFLAGS) $(CBLAS_LIBRARY) | ||
|
||
double: $(DBLAS1) $(DBLAS2) $(DBLAS3) $(MYDBLAS2) | ||
$(AR) $(ARFLAGS) $(CBLAS_LIBRARY) $(DBLAS1) $(ALLBLAS) \ | ||
$(DBLAS2) $(DBLAS3) $(MYDBLAS2) | ||
$(RANLIB) $(RANLIBFLAGS) $(CBLAS_LIBRARY) | ||
|
||
complex: $(CBLAS1) $(CBLAS2) $(CBLAS3) $(MYCBLAS2) | ||
$(AR) $(ARFLAGS) $(CBLAS_LIBRARY) $(CBLAS1) $(ALLBLAS) \ | ||
$(CBLAS2) $(CBLAS3) $(MYCBLAS2) | ||
$(RANLIB) $(RANLIBFLAGS) $(CBLAS_LIBRARY) | ||
|
||
complex16: $(ZBLAS1) $(ZBLAS2) $(ZBLAS3) $(MYZBLAS2) | ||
$(AR) $(ARFLAGS) $(CBLAS_LIBRARY) $(ZBLAS1) $(ALLBLAS) \ | ||
$(ZBLAS2) $(ZBLAS3) $(MYZBLAS2) | ||
$(RANLIB) $(RANLIBFLAGS) $(CBLAS_LIBRARY) | ||
|
||
clean: | ||
$(RM) $(RMFLAGS) *.o | ||
|
||
wipe: clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
|
||
#.c.o: | ||
# @$(ECHO) Making $@ from $< | ||
# $(CC) $(CFLAGS) -I. -c $< -o $@ | ||
# | ||
#LD = $(CC) -L. | ||
|
||
add_library(METIS) | ||
|
||
target_sources(METIS PUBLIC | ||
coarsen.c fm.c initpart.c match.c ccgraph.c memory.c | ||
pmetis.c pqueue.c refine.c util.c timing.c debug.c | ||
bucketsort.c graph.c stat.c kmetis.c kwayrefine.c | ||
kwayfm.c balance.c ometis.c srefine.c sfm.c separator.c | ||
mincover.c mmd.c mesh.c meshpart.c frename.c fortran.c | ||
myqsort.c compress.c parmetis.c estmem.c | ||
mpmetis.c mcoarsen.c mmatch.c minitpart.c mbalance.c | ||
mrefine.c mutil.c mfm.c mkmetis.c mkwayrefine.c mkwayfmh.c | ||
mrefine2.c minitpart2.c mbalance2.c mfm2.c | ||
kvmetis.c kwayvolrefine.c kwayvolfm.c subdomains.c | ||
) | ||
|
||
#all: $(OBJS) | ||
# @$(RM) $(RMFLAGS) $(METIS_LIBRARY) | ||
# @$(AR) $(ARFLAGS) $(METIS_LIBRARY) $(OBJS) | ||
# @$(RANLIB) $(RANLIBFLAGS) $(METIS_LIBRARY) | ||
# | ||
#clean: | ||
# rm -f *.o | ||
# | ||
#realclean: | ||
# rm -f *.o ; rm -f ../libmetis.a | ||
|
||
|