Advertisement
Guest User

Makefile fix

a guest
Jun 6th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.03 KB | None | 0 0
  1. # "make configure" will autodetect any variables not passed on the
  2. # command line, caching the result in config.mk to be used on any
  3. # subsequent invocations of make.  For example,
  4. #
  5. #   make configure CC=/path/to/my/cc CUDA_DIR=/opt/cuda
  6. #   make
  7. #   make prove
  8. configure :
  9.     @> config.mk
  10.     @echo "CC = $(CC)" | tee -a config.mk
  11.     @echo "FC = $(FC)" | tee -a config.mk
  12.     @echo "NVCC = $(NVCC)" | tee -a config.mk
  13.     @echo "CFLAGS = $(CFLAGS)" | tee -a config.mk
  14.     @echo "CPPFLAGS = $(CPPFLAGS)" | tee -a config.mk
  15.     @echo "FFLAGS = $(FFLAGS)" | tee -a config.mk
  16.     @echo "LDFLAGS = $(LDFLAGS)" | tee -a config.mk
  17.     @echo "LDLIBS = $(LDLIBS)" | tee -a config.mk
  18.     @echo "MAGMA_DIR = $(MAGMA_DIR)" | tee -a config.mk
  19.     @echo "XSMM_DIR = $(XSMM_DIR)" | tee -a config.mk
  20.     @echo "CUDA_DIR = $(CUDA_DIR)" | tee -a config.mk
  21.     @echo "MFEM_DIR = $(MFEM_DIR)" | tee -a config.mk
  22.     @echo "PETSC_DIR = $(PETSC_DIR)" | tee -a config.mk
  23.     @echo "NEK5K_DIR = $(NEK5K_DIR)" | tee -a config.mk
  24.     @echo "Configuration cached in config.mk"
  25.  
  26. .PHONY : configure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement