https://github.com/ITensor/ITensor
Raw File
Tip revision: dea79340a5f450ff6fc270c5fe37dc4c725fcb97 authored by Miles Stoudenmire on 13 November 2018, 10:57:27 UTC
Removed empty file svdalgs.h
Tip revision: dea7934
Makefile
#
# Makefile for ITensor libraries
#
####################################

include options.mk

build: itensor 

itensor: configure
	@echo
	@echo Building ITensor library
	@echo
	@cd itensor && $(MAKE)
    

configure:
	@echo
	@echo Configure: Writing current dir to this_dir.mk
	@echo "THIS_DIR=${CURDIR}" > this_dir.mk
	@echo "#ifndef __ITENSOR_CONFIG_H" > itensor/config.h
	@echo "#define __ITENSOR_CONFIG_H" >> itensor/config.h
	@echo "" >> itensor/config.h
	@echo "#ifndef PLATFORM_$(PLATFORM)" >> itensor/config.h
	@echo "#define PLATFORM_$(PLATFORM)" >> itensor/config.h
	@echo "#endif" >> itensor/config.h
	@echo "" >> itensor/config.h
	@echo "#ifndef __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES" >> itensor/config.h
	@echo "#define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0" >> itensor/config.h
	@echo "#endif" >> itensor/config.h
	@echo "" >> itensor/config.h
	@echo "#endif " >> itensor/config.h

clean:
	@echo "Removing temporary build files"
	@touch this_dir.mk
	@cd itensor && $(MAKE) clean
	@cd sample && $(MAKE) clean
	@cd unittest && $(MAKE) clean
	@rm -f lib/*
	@rm -f this_dir.mk
	@rm -f itensor/config.h

distclean: clean
	@rm -f this_dir.mk options.mk
back to top