kopia lustrzana https://github.com/Dsplib/libdspl-2.0
Project structure is changed
BLAS and LAPACK moved to dspl dir ide moved to dspl dir and aded ide/test for debugging and testingpull/6/head
rodzic
d249471f99
commit
6aa80e6c48
12
Makefile
12
Makefile
|
@ -2,8 +2,6 @@
|
|||
include make.inc
|
||||
|
||||
all:
|
||||
$(MAKE) -C blas
|
||||
$(MAKE) -C lapack
|
||||
$(MAKE) -C dspl
|
||||
$(MAKE) -C examples
|
||||
$(MAKE) -C performance
|
||||
|
@ -14,3 +12,13 @@ clean:
|
|||
$(MAKE) -C examples clean
|
||||
$(MAKE) -C performance clean
|
||||
$(MAKE) -C verification clean
|
||||
rm -f _release/*.*
|
||||
|
||||
clean_all:
|
||||
$(MAKE) -C dspl clean
|
||||
$(MAKE) -C dspl/blas clean
|
||||
$(MAKE) -C dspl/lapack clean
|
||||
$(MAKE) -C examples clean
|
||||
$(MAKE) -C performance clean
|
||||
$(MAKE) -C verification clean
|
||||
rm -f _release/*.*
|
|
@ -8,17 +8,54 @@ CFLAGS = -c -fPIC -Wall -O3 -I$(INC_DIR) -DBUILD_LIB -D$(DEF_OS)
|
|||
DSPL_SRC_FILES = $(wildcard $(DSPL_SRC_DIR)/*.c)
|
||||
DSPL_OBJ_FILES = $(addprefix $(DSPL_OBJ_DIR)/,$(notdir $(DSPL_SRC_FILES:.c=.o)))
|
||||
|
||||
all: $(RELEASE_DIR)/$(LIB_NAME)
|
||||
|
||||
|
||||
all: $(RELEASE_DIR)/$(LIB_NAME)\
|
||||
$(EXAMPLE_BIN_DIR)/$(LIB_NAME)\
|
||||
$(PERFORMANCE_BIN_DIR)/$(LIB_NAME)\
|
||||
$(VERIFICATION_BIN_DIR)/$(LIB_NAME)\
|
||||
$(RELEASE_DIR)/dspl.c\
|
||||
$(RELEASE_DIR)/dspl.h
|
||||
|
||||
#Build libdspl.dll or libdspl.so
|
||||
$(RELEASE_DIR)/$(LIB_NAME): $(DSPL_OBJ_FILES) $(BLAS_LIB_NAME) $(LAPACK_DOUBLE_LIB_NAME) $(LAPACK_COMPLEX_LIB_NAME)
|
||||
$(CC) -shared -o $(RELEASE_DIR)/$(LIB_NAME) $(DSPL_OBJ_FILES) -lm -L$(LAPACK_RELEASE_DIR) -llapack_complex -llapack_double -L$(BLAS_RELEASE_DIR) -lblas -lgfortran -lquadmath
|
||||
|
||||
|
||||
#Compile libdspl obj files from c sources
|
||||
$(DSPL_OBJ_DIR)/%.o:$(DSPL_SRC_DIR)/%.c
|
||||
$(CC) $(CFLAGS) $< -o $@ -lm
|
||||
|
||||
#Copy libdspl.dll to the examples "bin" folder
|
||||
$(EXAMPLE_BIN_DIR)/$(LIB_NAME):$(RELEASE_DIR)/$(LIB_NAME)
|
||||
cp $(RELEASE_DIR)/$(LIB_NAME) $(EXAMPLE_BIN_DIR)/$(LIB_NAME)
|
||||
|
||||
#Copy libdspl.dll to the performance testing "bin" folder
|
||||
$(PERFORMANCE_BIN_DIR)/$(LIB_NAME):$(RELEASE_DIR)/$(LIB_NAME)
|
||||
cp $(RELEASE_DIR)/$(LIB_NAME) $(PERFORMANCE_BIN_DIR)/$(LIB_NAME)
|
||||
|
||||
#Copy libdspl.dll to the verification "bin" folder
|
||||
$(VERIFICATION_BIN_DIR)/$(LIB_NAME):$(RELEASE_DIR)/$(LIB_NAME)
|
||||
cp $(RELEASE_DIR)/$(LIB_NAME) $(VERIFICATION_BIN_DIR)/$(LIB_NAME)
|
||||
|
||||
#make BLAS library
|
||||
$(BLAS_LIB_NAME):
|
||||
$(MAKE) -C blas
|
||||
|
||||
#make LAPACK library for the real data
|
||||
$(LAPACK_DOUBLE_LIB_NAME):
|
||||
$(MAKE) -C lapack
|
||||
|
||||
#make LAPACK library for the complex data
|
||||
$(LAPACK_COMPLEX_LIB_NAME):
|
||||
$(MAKE) -C lapack
|
||||
|
||||
#Copy dspl.c source to the release folder
|
||||
$(RELEASE_DIR)/dspl.c:
|
||||
cp $(INC_DIR)/dspl.c $(RELEASE_DIR)/dspl.c
|
||||
|
||||
#Copy dspl.h header to the release folder
|
||||
$(RELEASE_DIR)/dspl.h:
|
||||
cp $(INC_DIR)/dspl.h $(RELEASE_DIR)/dspl.h
|
||||
|
||||
|
||||
clean:
|
||||
rm -f $(DSPL_OBJ_DIR)/*.o
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Ładowanie…
Reference in New Issue