mirror of
https://github.com/LCPQ/quantum_package
synced 2024-11-03 20:54:00 +01:00
Simplified Makefiles
This commit is contained in:
parent
f9f3fac7ff
commit
20ed8c923a
@ -30,7 +30,7 @@ EOF
|
||||
cat << EOF > Makefile
|
||||
default: all
|
||||
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
NEEDED_MODULES=\$(shell cat NEEDED_MODULES)
|
||||
|
||||
# Define here all new external source files and objects.Don't forget to prefix the
|
||||
# object files with IRPF90_temp/
|
||||
@ -45,7 +45,7 @@ include irpf90.make
|
||||
irpf90.make: \$(filter-out IRPF90_temp/%, \$(wildcard */*.irp.f)) \$(wildcard *.irp.f) \$(wildcard *.inc.f) Makefile \$(EZFIO) NEEDED_MODULES
|
||||
\$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile
|
||||
Makefile.depend: NEEDED_MODULES
|
||||
\$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
EOF
|
||||
|
||||
|
@ -1,20 +1,8 @@
|
||||
default: all
|
||||
|
||||
# Define here all other modules on which the current module depends
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
|
||||
# Define here all new external source files and objects.Don't forget to prefix the
|
||||
# object files with IRPF90_temp/
|
||||
SRC=
|
||||
OBJ=
|
||||
|
||||
include Makefile.depend
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.config
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.common
|
||||
include irpf90.make
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES
|
||||
$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile
|
||||
$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
|
@ -1,20 +1,8 @@
|
||||
default: all
|
||||
|
||||
# Define here all other modules on which the current module depends
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
|
||||
# Define here all new external source files and objects.Don't forget to prefix the
|
||||
# object files with IRPF90_temp/
|
||||
SRC=bitmasks_module.f90
|
||||
OBJ=IRPF90_temp/bitmasks_module.o
|
||||
|
||||
include Makefile.depend
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.config
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.common
|
||||
include irpf90.make
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES
|
||||
$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile
|
||||
$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
|
@ -1,20 +1,8 @@
|
||||
default: all
|
||||
|
||||
# Define here all other modules on which the current module depends
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
|
||||
# Define here all new external source files and objects.Don't forget to prefix the
|
||||
# object files with IRPF90_temp/
|
||||
SRC=
|
||||
OBJ=
|
||||
|
||||
include Makefile.depend
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.config
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.common
|
||||
include irpf90.make
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES
|
||||
$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile
|
||||
$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
|
@ -1,20 +1,8 @@
|
||||
default: all
|
||||
|
||||
# Define here all other modules on which the current module depends
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
|
||||
# Define here all new external source files and objects.Don't forget to prefix the
|
||||
# object files with IRPF90_temp/
|
||||
SRC=
|
||||
OBJ=
|
||||
|
||||
include Makefile.depend
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.config
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.common
|
||||
include irpf90.make
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES
|
||||
$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile
|
||||
$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
|
@ -1,20 +1,8 @@
|
||||
default: all
|
||||
|
||||
# Define here all other modules on which the current module depends
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
|
||||
# Define here all new external source files and objects.Don't forget to prefix the
|
||||
# object files with IRPF90_temp/
|
||||
SRC=
|
||||
OBJ=
|
||||
|
||||
include Makefile.depend
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.config
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.common
|
||||
include irpf90.make
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES
|
||||
$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile
|
||||
$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
|
12
src/Makefile
12
src/Makefile
@ -1,29 +1,17 @@
|
||||
default: all
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
|
||||
SRC=
|
||||
OBJ=
|
||||
|
||||
include Makefile.depend
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.config
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.common
|
||||
include irpf90.make
|
||||
|
||||
all:$(ALL)
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES
|
||||
$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile NEEDED_MODULES
|
||||
$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
|
||||
all_clean:
|
||||
@for i in $(NEEDED_MODULES) ; do cd $$i ; make veryclean ; make clean_links ; cd .. ; done
|
||||
|
||||
all_modules: $(NEEDED_MODULES)
|
||||
|
||||
FORCE:
|
||||
|
||||
$(NEEDED_MODULES): FORCE
|
||||
@cd $@ ; unset NEEDED_MODULES INCLUDE_DIRS ; make
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.config
|
||||
ifndef QPACKAGE_ROOT
|
||||
$(error QPACKAGE_ROOT undefined. Run the setup_environment.sh script)
|
||||
endif
|
||||
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
|
||||
include Makefile.depend
|
||||
|
||||
NEEDED_MODULES_OK=$(shell X=`$(QPACKAGE_ROOT)/scripts/check_dependencies.sh $(NEEDED_MODULES)` && echo OK || echo $$X)
|
||||
ifneq ($(NEEDED_MODULES_OK),OK)
|
||||
$(info ---------------------)
|
||||
@ -45,3 +50,13 @@ endif
|
||||
LIB+=$(EZFIO) $(MKL)
|
||||
IRPF90+=$(patsubst %, -I %, $(INCLUDE_DIRS))
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES
|
||||
$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile
|
||||
$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
|
||||
include irpf90.make
|
||||
|
||||
FORCE:
|
||||
|
||||
|
@ -1,20 +1,8 @@
|
||||
default: all
|
||||
|
||||
# Define here all other modules on which the current module depends
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
|
||||
# Define here all new external source files and objects.Don't forget to prefix the
|
||||
# object files with IRPF90_temp/
|
||||
SRC=
|
||||
OBJ=
|
||||
|
||||
include Makefile.depend
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.config
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.common
|
||||
include irpf90.make
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES
|
||||
$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile
|
||||
$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
|
@ -1,20 +1,8 @@
|
||||
default: all
|
||||
|
||||
# Define here all other modules on which the current module depends
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
|
||||
# Define here all new external source files and objects.Don't forget to prefix the
|
||||
# object files with IRPF90_temp/
|
||||
SRC=
|
||||
OBJ=
|
||||
|
||||
include Makefile.depend
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.config
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.common
|
||||
include irpf90.make
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES
|
||||
$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile
|
||||
$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
|
@ -1,20 +1,8 @@
|
||||
default: all
|
||||
|
||||
# Define here all other modules on which the current module depends
|
||||
NEEDED_MODULES=$(shell cat NEEDED_MODULES)
|
||||
|
||||
# Define here all new external source files and objects.Don't forget to prefix the
|
||||
# object files with IRPF90_temp/
|
||||
SRC=
|
||||
OBJ=
|
||||
|
||||
include Makefile.depend
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.config
|
||||
include $(QPACKAGE_ROOT)/src/Makefile.common
|
||||
include irpf90.make
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile $(EZFIO) NEEDED_MODULES
|
||||
$(IRPF90)
|
||||
|
||||
Makefile.depend: Makefile
|
||||
$(QPACKAGE_ROOT)/scripts/create_Makefile_depend.sh
|
||||
|
Loading…
Reference in New Issue
Block a user