diff options
author | Pjotr Prins | 2021-08-24 12:47:35 +0200 |
---|---|---|
committer | Pjotr Prins | 2021-08-24 12:47:42 +0200 |
commit | ed93be1f03feb862d2bb342e46712ad194eefd4a (patch) | |
tree | 1fad5461c79659e6f35b4c27b776aa343fe59611 /Makefile.linux | |
parent | e18913d175cf1f21b1a8393e45c188342370b160 (diff) | |
download | pangemma-ed93be1f03feb862d2bb342e46712ad194eefd4a.tar.gz |
Removing older makefiles - note that the docker image works on macosx.
Diffstat (limited to 'Makefile.linux')
-rw-r--r-- | Makefile.linux | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/Makefile.linux b/Makefile.linux deleted file mode 100644 index ab6163d..0000000 --- a/Makefile.linux +++ /dev/null @@ -1,110 +0,0 @@ -#Makefile - -# Supported platforms -# Unix / Linux LNX -# Mac MAC -# Compilation options -# link to LAPACK WITH_LAPACK -# 32-bit binary FORCE_32BIT -# dynamic compilation FORCE_DYNAMIC - -# Set this variable to either LNX or MAC -SYS = LNX -# Leave blank after "=" to disable; put "= 1" to enable -# Disable WITH_LAPACK option can slow computation speed significantly and is not recommended -# Disable WITH_ARPACK option only disable -apprx option in the software -WITH_LAPACK = 1 -FORCE_32BIT = -FORCE_DYNAMIC = -DIST_NAME = gemma-0.97.1 - -# -------------------------------------------------------------------- -# Edit below this line with caution -# -------------------------------------------------------------------- - -BIN_DIR = ./bin - -SRC_DIR = ./src - -CPP = g++ - -CPPFLAGS = -O3 -std=gnu++11 -I./eigen - -LIBS = /software/gsl-1.16-el7-x86_64/lib/libgslcblas.a \ - /software/gsl-1.16-el7-x86_64/lib/libgsl.a \ - -pthread -lz - -# ifdef FORCE_DYNAMIC -# LIBS = -lgsl -lgslcblas -lblas -pthread -lz -# else -# LIBS = -lgsl -lgslcblas -pthread -lz -# endif - -OUTPUT = $(BIN_DIR)/gemma - -SOURCES = $(SRC_DIR)/main.cpp - -HDR = - -# Detailed libary paths, D for dynamic and S for static -LIBS_LNX_D_LAPACK = -llapack -LIBS_MAC_D_LAPACK = -framework Veclib -LIBS_LNX_S_LAPACK = /software/atlas-3.10.3-el7-x86_64/lib/liblapack.a \ - /software/atlas-3.10.3-el7-x86_64/lib/libcblas.a \ - /software/atlas-3.10.3-el7-x86_64/lib/libf77blas.a \ - /software/atlas-3.10.3-el7-x86_64/lib/libatlas.a -lgfortran \ - -Wl,--allow-multiple-definition - -SOURCES += $(SRC_DIR)/param.cpp $(SRC_DIR)/gemma.cpp $(SRC_DIR)/io.cpp $(SRC_DIR)/lm.cpp $(SRC_DIR)/lmm.cpp $(SRC_DIR)/vc.cpp $(SRC_DIR)/mvlmm.cpp $(SRC_DIR)/bslmm.cpp $(SRC_DIR)/prdt.cpp $(SRC_DIR)/mathfunc.cpp $(SRC_DIR)/gzstream.cpp $(SRC_DIR)/eigenlib.cpp $(SRC_DIR)/ldr.cpp $(SRC_DIR)/bslmmdap.cpp $(SRC_DIR)/logistic.cpp $(SRC_DIR)/varcov.cpp -HDR += $(SRC_DIR)/param.h $(SRC_DIR)/gemma.h $(SRC_DIR)/io.h $(SRC_DIR)/lm.h $(SRC_DIR)/lmm.h $(SRC_DIR)/vc.h $(SRC_DIR)/mvlmm.h $(SRC_DIR)/bslmm.h $(SRC_DIR)/prdt.h $(SRC_DIR)/mathfunc.h $(SRC_DIR)/gzstream.h $(SRC_DIR)/eigenlib.h - -ifdef WITH_LAPACK - OBJS += $(SRC_DIR)/lapack.o - CPPFLAGS += -DWITH_LAPACK -ifeq ($(SYS), MAC) - LIBS += $(LIBS_MAC_D_LAPACK) -else -ifdef FORCE_DYNAMIC - LIBS += $(LIBS_LNX_D_LAPACK) -else - LIBS += $(LIBS_LNX_S_LAPACK) -endif -endif - SOURCES += $(SRC_DIR)/lapack.cpp - HDR += $(SRC_DIR)/lapack.h -endif - -ifdef FORCE_32BIT - CPPFLAGS += -m32 -else - CPPFLAGS += -m64 -endif - -# all -OBJS = $(SOURCES:.cpp=.o) - -all: $(OUTPUT) - -$(OUTPUT): $(OBJS) - $(CPP) $(CPPFLAGS) $(OBJS) $(LIBS) -o $(OUTPUT) - -$(OBJS) : $(HDR) - -.cpp.o: - $(CPP) $(CPPFLAGS) $(HEADERS) -c $*.cpp -o $*.o -.SUFFIXES : .cpp .c .o $(SUFFIXES) - - -clean: - rm -rf ${SRC_DIR}/*.o ${SRC_DIR}/*~ *~ $(OUTPUT) - -DIST_COMMON = COPYING.txt README.txt Makefile -DIST_SUBDIRS = src doc example bin - -tar: - mkdir -p ./$(DIST_NAME) - cp $(DIST_COMMON) ./$(DIST_NAME)/ - cp -r $(DIST_SUBDIRS) ./$(DIST_NAME)/ - tar cvzf $(DIST_NAME).tar.gz ./$(DIST_NAME)/ - rm -r ./$(DIST_NAME) - |