Project structure is changed

BLAS and LAPACK moved to dspl dir
ide moved to dspl dir and aded ide/test for debugging and testing
pull/6/merge
Dsplib 2020-10-02 14:50:18 +03:00
rodzic d249471f99
commit 6aa80e6c48
2167 zmienionych plików z 3303 dodań i 858 usunięć

Wyświetl plik

@ -2,8 +2,6 @@
include make.inc
all:
$(MAKE) -C blas
$(MAKE) -C lapack
$(MAKE) -C dspl
$(MAKE) -C examples
$(MAKE) -C performance
@ -13,4 +11,14 @@ clean:
$(MAKE) -C dspl clean
$(MAKE) -C examples clean
$(MAKE) -C performance clean
$(MAKE) -C verification 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/*.*

Wyświetl plik

@ -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